You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

nekto

Beginner

  • "nekto" started this thread

Posts: 3

Location: Moscow, Russia

  • Send private message

1

Saturday, January 19th 2008, 7:10pm

[Kopete] Trouble with protocol development

Hi! I'm developing protocol plugin for kopete. I have a trouble with contact list.
Contact list has been downloaded, then I check if contact is already in the account's contact-list (by id, using account->contacts()). If nothing found add it with addContact method. List downloads well, new contacts appear in kopete. But kopete dont save them. After restart I see only meta-contacts :( account->contacts() contains only one record)
What is the reason of this problem?

2

Thursday, January 24th 2008, 2:18am

RE: [Kopete] Trouble with protocol development

Hey netko,

In order for Kopete to save your contact information locally you need to implement Kopete::Contact::Serialize, and then to restore it you need to also implement Kopete::Account::deserializeContact. These functions will save/restore your contact's information in Kopete's own format. There are examples of these functions in testbedcontact.cpp and testbedprotocol.cpp.

nekto

Beginner

  • "nekto" started this thread

Posts: 3

Location: Moscow, Russia

  • Send private message

3

Monday, January 28th 2008, 8:19pm

Thanks, now it works well!