Definition at line 56 of file r_contact.h.
Public Types | |
| typedef Barry::CategoryList | CategoryList |
| typedef ContactGroupLink | GroupLink |
| typedef std::vector< GroupLink > | GroupLinksType |
| typedef std::vector< UnknownField > | UnknownsType |
| typedef std::string | EmailType |
| typedef std::vector< EmailType > | EmailList |
Public Member Functions | |
| const unsigned char * | ParseField (const unsigned char *begin, const unsigned char *end) |
| Contact () | |
| ~Contact () | |
| uint32_t | GetID () const |
| std::string | GetFullName () const |
| Helper function that returns a formatted full name. | |
| const std::string & | GetEmail (unsigned int index=0) const |
| Helper function that always returns a valid string. | |
| uint8_t | GetRecType () const |
| uint32_t | GetUniqueId () const |
| void | SetIds (uint8_t Type, uint32_t Id) |
| void | ParseHeader (const Data &data, size_t &offset) |
| void | ParseFields (const Data &data, size_t &offset) |
| void | BuildHeader (Data &data, size_t &offset) const |
| void | BuildFields (Data &data, size_t &offset) const |
| Build fields part of record. | |
| void | Clear () |
| void | Dump (std::ostream &os) const |
| bool | operator< (const Contact &other) const |
Static Public Member Functions | |
| static const char * | GetDBName () |
| static uint8_t | GetDefaultRecType () |
| static void | SplitName (const std::string &full, std::string &first, std::string &last) |
| static void | CategoryStr2List (const std::string &str, Barry::CategoryList &list) |
| static void | CategoryList2Str (const Barry::CategoryList &list, std::string &str) |
Public Attributes | |
| uint8_t | RecType |
| uint32_t | RecordId |
| EmailList | EmailAddresses |
| std::string | Phone |
| std::string | Fax |
| std::string | WorkPhone |
| std::string | HomePhone |
| std::string | MobilePhone |
| std::string | Pager |
| std::string | PIN |
| std::string | Radio |
| std::string | WorkPhone2 |
| std::string | HomePhone2 |
| std::string | OtherPhone |
| std::string | FirstName |
| std::string | LastName |
| std::string | Company |
| std::string | DefaultCommunicationsMethod |
| std::string | JobTitle |
| std::string | PublicKey |
| std::string | URL |
| std::string | Prefix |
| std::string | Notes |
| std::string | UserDefined1 |
| std::string | UserDefined2 |
| std::string | UserDefined3 |
| std::string | UserDefined4 |
| std::string | Image |
| Date | Birthday |
| Date | Anniversary |
| PostalAddress | WorkAddress |
| PostalAddress | HomeAddress |
| CategoryList | Categories |
| GroupLinksType | GroupLinks |
| UnknownsType | Unknowns |
| std::string Barry::Contact::GetFullName | ( | ) | const |
Helper function that returns a formatted full name.
Definition at line 412 of file r_contact.cc.
References FirstName, and LastName.
Referenced by BuildFields(), and Barry::ContactLdif::FullName().
| const std::string & Barry::Contact::GetEmail | ( | unsigned int | index = 0 |
) | const |
Helper function that always returns a valid string.
The string may be empty if there is no address at the specified index.
Definition at line 427 of file r_contact.cc.
References EmailAddresses.
Referenced by Barry::ContactLdif::Email().
| void Barry::Contact::BuildFields | ( | Data & | data, | |
| size_t & | offset | |||
| ) | const |
Build fields part of record.
Definition at line 274 of file r_contact.cc.
References Barry::BuildField(), CFC_EMAIL, CFC_GROUP_FLAG, CFC_INVALID_FIELD, CFC_NAME, Company, Barry::ContactFieldLinks, EmailAddresses, FirstName, GetFullName(), GroupLinks, LastName, and Barry::Data::Zap().
1.5.1