#include <contact.h>
Public Types | |
| enum | Status { Offline, Online, Busy, Away } |
| Enumeration used to describe contact state. More... | |
Public Member Functions | |
| Contact () | |
| Default constructor. | |
| Contact (int ID, const std::string &address, const std::string &pseudo, const Status status) | |
| Constructor. | |
| ~Contact () | |
| Destructor. | |
| const std::string & | getAdresse () const |
| Returns contact mail address. | |
| void | setAdresse (const std::string &address) |
| Sets contact mail address. | |
| void | setID (const int iID) |
| Sets contact ID. | |
| int | getID () const |
| Returns contact ID. | |
| const std::string & | getPseudo () const |
| Returns contact nickname. | |
| void | setPseudo (const std::string &pseudo) |
| Sets contact nickname. | |
| const Status | getStatus () const |
| Returns contact status. | |
| void | setStatus (const Status status) |
| Sets contact status. | |
| std::string | toString () const |
| Returns a string representation of the answer. | |
| bool | operator== (const Contact &contact) const |
| Compares two contacts. | |
| bool | operator>= (const Contact &contact) const |
| Compares two contacts. | |
| bool | operator> (const Contact &contact) const |
| Compares two contacts. | |
| bool | operator< (const Contact &contact) const |
| Compares two contacts. | |
| bool | operator<= (const Contact &contact) const |
| Compares two contacts. | |
Static Public Member Functions | |
| static Status | getStatus (const int statusID) |
| Returns Status corresponding to int. | |
| static std::string | getStatusAsString (const Status status) |
| Returns a string representation of the status. | |
Static Public Attributes | |
| static const char * | ROOT_NODE = "contact" |
| Name of the root node representing a Contact. | |
| static const char * | CONTACTID_NODE = "contact-id" |
| Name of the node for contact id member. | |
| static const char * | USERNAME_NODE = "username" |
| Name of the node for username member. | |
| static const char * | ADDRESS_NODE = "address" |
| Name of the node for address member. | |
| static const char * | STATE_NODE = "state" |
| Name of the node for status member. | |
Yves Houpert <yves.houpert@insa-rouen.fr>
|
|
Enumeration used to describe contact state.
|
|
||||||||||||||||||||
|
Constructor.
|
|
|
Returns contact mail address.
|
|
|
Returns contact ID.
|
|
|
Returns contact nickname.
|
|
|
Returns Status corresponding to int.
|
|
|
Returns contact status.
|
|
|
Returns a string representation of the status.
|
|
|
Compares two contacts. The comparaison is base on contact ID.
|
|
|
Compares two contacts. The comparaison is base on contact ID.
|
|
|
Compares two contacts. The comparaison is base on contact ID.
|
|
|
Compares two contacts. The comparaison is base on contact ID.
|
|
|
Compares two contacts. The comparaison is base on contact ID.
|
|
|
Sets contact mail address.
|
|
|
Sets contact ID.
|
|
|
Sets contact nickname.
|
|
|
Sets contact status.
|
|
|
Returns a string representation of the answer.
|
1.4.6