#include <contact.h>
Inheritance diagram for GNUMessenger::Contact:
Public Types | |
enum | Status { Offline, Online, Away, Occupied, DND, NA, FFC, Error, Custom } |
Contact status is associated with each Protocol that the object is associated with. More... | |
Public Member Functions | |
Contact () | |
Default. Initialized to a new, empty node. | |
Contact (const Contact &contact) | |
Copy constructor. | |
Contact (const XMLNode &config) | |
XMLNode constructor. | |
virtual | ~Contact () |
Virtual destructor. | |
bool | isOK () const |
Returns true if the contact is valid and without error. | |
void | Destroy () |
bool | isOnline () const |
Checks to see if the Contact object is registered as Online. | |
void | addProtocol (const string &proto) |
Add a protocol to the contact, never throws. | |
void | removeProtocol (const string &proto) |
Removes a protocol, never throws. | |
virtual XMLNode & | setName (const string &name) |
Sets the "real name" of the contact. | |
virtual const string & | name () const |
Returns the "name" of the Contact. | |
virtual const string | type () const |
Type ID of this node. | |
string | getProtocol () const |
Gets whatever protocol is online, or nothing. | |
bool | hasProtocol (const string &str) const |
Do I have this protocol. | |
void | setServerId (const string &proto, const string &id) |
Sets the contact's server ID for specified protocol. | |
string | getServerId (const string &proto) const |
Returns the server id for the contact for specified protocol. | |
void | setStatus (const string &proto, Status state) |
Sets a protocol status. | |
Status | getStatus (const string &proto) const |
Returns the status of a specified protocol. | |
Status | getOverallStatus () const |
Contact & | operator= (const Contact &other) |
Assignment operator, shallow copy. | |
Friends | |
bool | operator!= (const Contact &lhs, const Contact &rhs) |
Not-equal binary operator. | |
bool | operator== (const Contact &lhs, const Contact &rhs) |
Equality binary operator. | |
bool | operator< (const Contact &lhs, const Contact &c2) |
Less-than binary operator. |
Jesse Lovelace
Definition at line 21 of file contact.h.
|
Contact status is associated with each Protocol that the object is associated with.
Referenced by getOverallStatus(), and getStatus().
|
|
Copy constructor.
References m_session.
|
|
XMLNode constructor.
|
|
Add a protocol to the contact, never throws.
References GNUMessenger::XMLNode::addChild(), GNUMessenger::XMLNode::child(), and GNUMessenger::XMLNode::hasChild().
Here is the call graph for this function: |
|
Definition at line 88 of file contact.cpp. References GNUMessenger::XMLNode::child(), GNUMessenger::XMLNode::const_children(), Error, GNUMessenger::XMLNode::hasChild(), Offline, Online, and Status.
Here is the call graph for this function: |
|
Gets whatever protocol is online, or nothing.
References GNUMessenger::XMLNode::child(), GNUMessenger::XMLNode::const_children(), GNUMessenger::XMLNode::hasChild(), Offline, and Online. Referenced by GNUMessenger::ProtocolManager::sendMessage().
Here is the call graph for this function: |
|
Returns the server id for the contact for specified protocol.
References GNUMessenger::XMLNode::child(), GNUMessenger::XMLNode::hasChild(), and GNUMessenger::XMLNode::property(). Referenced by GNUMessenger::TocProtocol::addContact(), GNUMessenger::TocProtocol::delContact(), GNUMessenger::ProtocolManager::getInfo(), and GNUMessenger::TocProtocol::sendMessage().
Here is the call graph for this function: |
|
Returns the status of a specified protocol.
References GNUMessenger::XMLNode::child(), Error, GNUMessenger::XMLNode::hasChild(), GNUMessenger::XMLNode::intProperty(), and Status.
Here is the call graph for this function: |
|
Returns true if the contact is valid and without error.
References GNUMessenger::XMLNode::property().
Here is the call graph for this function: |
|
Checks to see if the Contact object is registered as Online.
|
|
Returns the "name" of the Contact.
Reimplemented from GNUMessenger::XMLNode. Definition at line 87 of file contact.h. References GNUMessenger::XMLNode::property(). Referenced by GNUMessenger::ProtocolManager::addContact().
Here is the call graph for this function: |
|
Assignment operator, shallow copy.
References m_session, and GNUMessenger::XMLNode::m_xmlData.
|
|
Removes a protocol, never throws.
|
|
Sets the "real name" of the contact. Never throws.
Reimplemented from GNUMessenger::XMLNode. Definition at line 83 of file contact.h. References GNUMessenger::XMLNode::setProperty().
Here is the call graph for this function: |
|
Sets the contact's server ID for specified protocol.
References GNUMessenger::XMLNode::addChild(), GNUMessenger::XMLNode::child(), GNUMessenger::XMLNode::hasChild(), and GNUMessenger::XMLNode::setProperty().
Here is the call graph for this function: |
|
Sets a protocol status.
References GNUMessenger::XMLNode::child(), GNUMessenger::XMLNode::hasChild(), and GNUMessenger::XMLNode::setProperty().
Here is the call graph for this function: |