Creating Jabber account at startup
Jan Kaláb
pitel at nomi.cz
Fri Aug 8 11:18:19 CEST 2008
The whole function is in attachemt. I didn't change anything else
which might be connected with this problem. I also changed the wengo
account creation window, screenshot in attachement.
P.S. All settings are hardcoded, to make customer's life easier. I
also hardcoded my jabber ID (except password), so feel free to
change it.
Darshaka Pathirana napsal(a):
> On 07.08.2008 16:30, Jan Kaláb wrote:
>> I made a little progress! Jabber account is finally added to
>> profile, but it crashes QuteCom. I use this code in
>> QtAddWengoAccount.cpp:
>>
>> UserProfile userProfile;
>> userProfile.setSipAccount(sipAccount, false);
>> userProfile.addIMAccount(jabberAccount);
>> UserProfileFileStorage userProfileStorage(userProfile);
>> userProfileStorage.save(sipAccount.getFullIdentity());
>> _cUserProfileHandler.setCurrentUserProfile(sipAccount.getFullIdentity(),
>> sipAccount);
>>
>> It executes all this code, so sip and jabber accounts are created
>> and current sip account is used. But after about 3 seconds, it
>> crashes. But if you are fast enough, you can see the sip connected
>> and jabber trying to connect in profile bar above contact list. If
>> you start qutecom again, everything is fine, jabber and sip connects
>> and jabber roster is loaded. Just as it should be.
>>
>> I tried commenting out the last line setCurrentUserProfile() to avod
>> the crash and play with it a little. These are the results:
>>
>> 1. remove ~/.qutecom, start qutecom, create account
>> 2. Select Log on from menu and choose just created account
>> 3. Crash!
>> 4. Start qutecom again, everything is ok
>>
>> 1. remove ~/.qutecom, start qutecom, create account
>> 2. Close qutecom manually
>> 3. Start qutecom again
>> 4. Select Log on from menu and choose just created account
>> 5. Everything is ok
>>
>> I don't understand this behaviour... any idea what might cause the
>> crash? (And how to avoid it or fix it?)
>
> We also have the same problem here! I don't think anybody can help
> with modified QuteCom-code. So the first step is to reproduce the
> problem in (native) QuteCom. Can you reproduce the problem?
>
> Here we can reproduce the problem but instead of crashing the client
> is just not able to connect. We also have to restart qutecom again
> and everything is ok then...
>
> We're tracing the problem but any help would be highly welcome!
>
> Greetings,
> - Darsha
>
> _______________________________________________
> QuteCom-dev mailing list
> QuteCom-dev at lists.qutecom.org
> http://lists.qutecom.org/mailman/listinfo/qutecom-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Obrazovka-VoIPEX - spojen?.png
Type: image/png
Size: 32360 bytes
Desc: not available
Url : http://lists.qutecom.org/pipermail/qutecom-dev/attachments/20080808/35b931d2/attachment-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QtAssWengoAccount.loginClicked.cpp
Type: text/x-c++src
Size: 3363 bytes
Desc: not available
Url : http://lists.qutecom.org/pipermail/qutecom-dev/attachments/20080808/35b931d2/attachment-0001.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.qutecom.org/pipermail/qutecom-dev/attachments/20080808/35b931d2/attachment-0001.pgp
More information about the QuteCom-dev
mailing list