Le lundi 9 juin 2008, Roman Bukovac a écrit : > Hi all, > > I'm writing on a seperate application (telepathy-wrapper for > kopete-protocols) that uses the libkopete-api and I got into several > problems: > > -How to add a contact (preferred temporary) to the contactlist of an > account? > > I tried Kopete::Account::addContact() with all types of AddModes but i only > get QObject(0x0) added to the contactlist which results in a segfault > later.
Yes, addContact is the way and should work. Make sure the reimplementation of Kopete::Account::createContact do the right thing. (You can add debug in that function to be sure it is called) > -How to send messages to multiple contacts? > > I created a new ChatSession with > Kopete::ChatSessionManager::create(Kopete::Contact*, > Kopete::ContactPtrList, Kopete::Protocol*, Kopete::ChatSession::Form) with > the desired recipients in Kopete::ContactPtrList. > Then I created a Kopete::Message with the myself contact as fromKC and the > same list of contacts then used above as contacts. > With the ChatSession I get returned from ChatSessionManager::create() I > used the method ChatSession::sendMessage() with the message created above. > But none of the contacts get this message... You have to handle that yourself by connecting to some slot of the ChatSession.
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ kopete-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kopete-devel
