kopete/libkopete
kopetecontactlist.cpp
Go to the documentation of this file.
244 connect( mc, SIGNAL(addedToGroup(Kopete::MetaContact*,Kopete::Group*)), SIGNAL(metaContactAddedToGroup(Kopete::MetaContact*,Kopete::Group*)) );
245 connect( mc, SIGNAL(removedFromGroup(Kopete::MetaContact*,Kopete::Group*)), SIGNAL(metaContactRemovedFromGroup(Kopete::MetaContact*,Kopete::Group*)) );
308 connect( g , SIGNAL (displayNameChanged(Kopete::Group*,QString)) , this , SIGNAL (groupRenamed(Kopete::Group*,QString)) ) ;
341 kDebug( 14010 ) << metaContacts.count() << " metacontacts, " << groups.count() << " groups selected";
MetaContact * myself()
return the metacontact that represent the user itself.
Definition: kopetecontactlist.cpp:349
static ContactList * self()
The contact list is a singleton object.
Definition: kopetecontactlist.cpp:71
void selectionChanged()
This signal is emit when the selection has changed, it is emitted after the following slot Warning: D...
void groupRenamed(Kopete::Group *, const QString &oldname)
A group has just been renamed.
MetaContact * findMetaContactByContactId(const QString &contactId) const
Find a meta contact by its contact id.
Definition: kopetecontactlist.cpp:182
QList< MetaContact * > members() const
child metacontact This function is not very efficient - it searches through all the metacontacts in t...
Definition: kopetegroup.cpp:98
Group::List groups() const
Get the Group list for this storage.
Definition: kopetecontactliststorage.cpp:47
void removeGroup(Kopete::Group *)
Remove a group this method delete the group.
Definition: kopetecontactlist.cpp:312
void setMetaContact(MetaContact *m)
Move this contact to a new MetaContact.
Definition: kopetecontact.cpp:380
Group * findGroup(const QString &displayName, int type=0)
find a group with his displayName If a group already exists with the given name and the given type...
Definition: kopetecontactlist.cpp:196
void removeFromGroup(Kopete::Group *from)
Remove a contact from one group.
Definition: kopetemetacontact.cpp:1014
void addGroup(Kopete::Group *)
Add a group each group must be added on the list after his creation.
Definition: kopetecontactlist.cpp:302
void metaContactSelected(bool)
This signal is emitted each time the selection has changed.
virtual bool isValid() const =0
Check if the current ContactListStorage.
QList< MetaContact * > metaContacts() const
return a list of all metacontact of the contact list Retrieve the list of all available meta contacts...
Definition: kopetecontactlist.cpp:112
static AccountManager * self()
Retrieve the instance of AccountManager.
Definition: kopeteaccountmanager.cpp:76
Account * findAccount(const QString &protocolId, const QString &accountId)
Return the account asked.
Definition: kopeteaccountmanager.cpp:328
virtual QString errorMessage() const =0
Get a nice error message.
Group * group(unsigned int groupId) const
return the group with the given unique id.
Definition: kopetecontactlist.cpp:139
void metaContactAdded(Kopete::MetaContact *mc)
A meta contact was added to the contact list.
QList< Contact * > contacts() const
Retrieve the list of contacts that are part of the meta contact.
Definition: kopetemetacontact.cpp:1270
void metaContactRemoved(Kopete::MetaContact *mc)
A metacontact has just been removed.
void metaContactRemovedFromGroup(Kopete::MetaContact *mc, Kopete::Group *from)
A contact has been removed from a group.
Definition: kopetegroup.h:56
Contact * findContact(const QString &protocolId, const QString &accountId, const QString &contactId) const
find a contact in the contact list.
Definition: kopetecontactlist.cpp:156
void mergeMetaContacts(QList< MetaContact * > src, Kopete::MetaContact *dst)
Merge one or more metacontacts into another one.
Definition: kopetecontactlist.cpp:279
Definition: kopetecontact.h:58
MetaContact * metaContact(const QString &metaContactId) const
Return the metacontact referenced by the given id.
Definition: kopetecontactlist.cpp:124
MetaContact::List contacts() const
Get the MetaContact list for this storage.
Definition: kopetecontactliststorage.cpp:52
void metaContactMovedToGroup(Kopete::MetaContact *mc, Kopete::Group *from, Kopete::Group *to)
A contact has been moved from one group to another.
void addMetaContact(Kopete::MetaContact *c)
Add the metacontact into the contact list When calling this method, the contact has to be already pla...
Definition: kopetecontactlist.cpp:235
void addMetaContacts(QList< MetaContact * > metaContacts)
Add metacontacts into the contact list When calling this method, contacts have to be already placed i...
Definition: kopetecontactlist.cpp:229
void metaContactAddedToGroup(Kopete::MetaContact *mc, Kopete::Group *to)
A contact has been added to a group.
MetaContact * metaContact() const
Get the metacontact for this contact.
Definition: kopetecontact.cpp:483
Definition: kopetegroup.h:56
QList< Group * > selectedGroups() const
return the list of groups actualy selected in the contact list UI
Definition: kopetecontactlist.cpp:224
QList< Group * > groups() const
The groups the contact is stored in.
Definition: kopetemetacontact.cpp:1061
void removeMetaContact(Kopete::MetaContact *contact)
Remove a metacontact from the contact list.
Definition: kopetecontactlist.cpp:251
Definition: kopetemetacontact.h:54
Definition: kopetegroup.h:56
void addGroups(QList< Group * > groups)
Add groups each group must be added on the list after his creation.
Definition: kopetecontactlist.cpp:296
Provide a storage for Kopete Contact List.
Definition: kopetecontactliststorage.h:34
const QHash< QString, Contact * > & contacts()
Retrieve the list of contacts for this account (except myself contact)
Definition: kopeteaccount.cpp:331
MetaContact * findMetaContactByDisplayName(const QString &displayName) const
Find a contact by display name.
Definition: kopetecontactlist.cpp:170
void setSelectedItems(QList< MetaContact * > metaContacts, QList< Group * > groups)
Set which items are selected in the ContactList GUI.
Definition: kopetecontactlist.cpp:339
void contactListLoaded()
QList< MetaContact * > selectedMetaContacts() const
return the list of metacontact actually selected in the contact list UI
Definition: kopetecontactlist.cpp:219
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.