Creating Jabber account at startup
Jan Kaláb
pitel at nomi.cz
Thu Aug 7 16:30:48 CEST 2008
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?)
-------------- 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/20080807/bf9a526c/attachment.pgp
More information about the QuteCom-dev
mailing list