On Thu, Jul 31, 2008 at 02:25:28PM +0200, Jan Kaláb wrote:
> No, I just don't know what might be wrong :(. In all other source
> codes, you just do:
> 
> IMAccount imAccount = IMAccount(EnumIMProtocol::IMProtocolJabber);
> //
> // There you do some settings of account, like login/password ...
> //
> UserProfile userProfile;
> userProfile.addIMAccount(imAccount);
> 
> But it just doesn't work for me. I do it in QtAddWengoAccount.cpp in
> function void QtAddWengoAccount::loginClicked() {} (after creating
> SIP account). It compiles, it doesn't crash, it just doesn't work.
> It doesn't add Jabber account to new profile.

You need to add the new imAccount to a Contact not to the userProfile as
far as I remember. Something like 

IMAccount imAccount = IMAccount(EnumIMProtocol::IMProtocolJabber);
// You'll probably want to add some more parameters to the new imAccount
contact.addIMContact (imAccount);

Just declaring a new userProfile and adding the imAccount to that
profile will not save the new profile.

And yes, I've left out a crucial detail, how to get at the correct
contact -- maybe someone can fill that in.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  Fax:   +43/2243/26465-23
Reichergasse 131                        www:   http://www.runtux.com
A-3411 Weidling                         email: [EMAIL PROTECTED]
osAlliance member                       email: [EMAIL PROTECTED]
_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev

Reply via email to