#include <contact_manager.h>
Collaboration diagram for GNUMessenger::ContactManager:

Public Types | |
| enum | Type { FOLDER, BASEFOLDER, CONTACT, CONTACTBASE, PROTOCOL } |
| The type of search, deprecated? | |
Public Member Functions | |
| ContactManager (XMLNode &xml) | |
| bool | addContact (const string &contactname, const string &folder="") |
| Adds a Contact to the Folder. | |
| bool | addContact (const Contact &contact, const string &folder="") |
| Adds a Contact to the Folder. | |
| bool | deleteContact (const string &contactname) |
| Deletes a Contact from the Folder. | |
| bool | moveContact (const string &name, const string &newbase) |
| Moves a Contact to a new Folder. | |
| bool | renameContact (const string &oldname, const string &newname) |
| Rename the Contact. | |
| Contact | getContact (const string &contactname) |
| Returns a contact in the tree. | |
| vector< Contact > | getAllContacts () |
| Returns a vector of contacts. | |
| bool | setInfo (const string &username, const string &infoname, const string &data, const string &childof="") |
| Sets info of type infoname to the given user. | |
| bool | deleteInfo (const string &username, const string &infoname) |
| Delete an info tage. | |
| string | getAvailableName () const |
| string | getInfo (const string &username, const string &infoname) |
| map< string, string > | getAllInfo (const string &username) |
| bool | addNet (const string &username, const string &netname, const string &login) |
| bool | deleteNet (const string &username, const string &netname) |
| bool | renameFolder (const string &oldname, const string &newname) |
| bool | addFolder (const string &folder_name, const string &base="") |
| bool | deleteFolder (const string &folder_name) |
| bool | moveFolder (const string &name, const string &newbase) |
| bool | folderExists (const string &name) const |
| bool | contactExists (const string &name) const |
| Folder | getFolder (const string &name="") |
| gets the folder named name, or the root if no name given | |
| void | getContactsOfProtocol (const string &protocol, vector< Contact > &contacts) |
| void | deleteAllNets (const string &contactname) |
| Deletes all net tags in XML, may trhow InvalidUserName and InvalidNode. | |
| void | deleteAllInfo (const string &contactname) |
| Deletes all info tags. | |
| unsigned long | getCount () |
| Returns the number of contacts in the tree. | |
| string | getPublicKey (const string &contactname) |
| Returns the public key for the given contact. | |
| bool | getInfoXML (const string &username, XMLNode &xml) |
| bool | setInfoXML (const string &username, const XMLNode &xml) |
| XMLNode | getXML (const string &name) |
| Debuging. | |
| XMLNode | getFolderXML (const string &name) |
The Contact Manager is able to add and remove Contacts from a session.
Definition at line 43 of file contact_manager.h.
|
||||||||||||
|
References GNUMessenger::XMLNode::addChild(), and GNUMessenger::XMLNode::child().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
References GNUMessenger::XMLNode::addChild(), GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::setProperty().
Here is the call graph for this function: ![]() |
|
|
Deletes a Contact from the Folder.
References GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::delChild().
Here is the call graph for this function: ![]() |
|
|
Definition at line 440 of file contact_manager.cpp. References GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::delChild().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Delete an info tage.
References GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::delChild().
Here is the call graph for this function: ![]() |
|
|
Returns a vector of contacts.
References GNUMessenger::XMLNode::child().
Here is the call graph for this function: ![]() |
|
|
Returns a contact in the tree.
References getXML().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Moves a Contact to a new Folder.
References GNUMessenger::XMLNode::addChild(), GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::delChild().
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Rename the Contact.
References GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::setProperty().
Here is the call graph for this function: ![]() |
|
||||||||||||||||||||
|
Sets info of type infoname to the given user.
References GNUMessenger::XMLNode::addChild(), GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::setProperty().
Here is the call graph for this function: ![]() |
1.3.8