Public Member Functions | Static Public Member Functions | Public Attributes

Barry::Contact Class Reference
[RecordParserClasses]

Represents a single record in the Address Book Blackberry database. More...

#include <r_contact.h>

Collaboration diagram for Barry::Contact:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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.
void BuildFields (Data &data, size_t &offset, const IConverter *ic=0) const
 Build fields part of record.

Static Public Member Functions

static void CommaString2Email (const std::string &list, EmailList &result)
 Replaces the EmailAddresses list with the parsed results of list.

Public Attributes

std::string Phone
 This field, Phone, is deprecated.

Detailed Description

Represents a single record in the Address Book Blackberry database.

Definition at line 62 of file r_contact.h.


Member Function Documentation

void Barry::Contact::BuildFields ( Data data,
size_t &  offset,
const IConverter ic = 0 
) const

Build fields part of record.

Definition at line 311 of file r_contact.cc.

References Barry::CategoryList::CategoryList2Str(), GetFullName(), Barry::Date::ToBBString(), and Barry::Data::Zap().

Here is the call graph for this function:

void Barry::Contact::CommaString2Email ( const std::string &  list,
EmailList result 
) [static]

Replaces the EmailAddresses list with the parsed results of list.

If list is empty, then EmailAddresses will also be empty. Note that incoming addresses need to be in simple format, not complex formats like "Name <user@example.com>" but just "user@example.com". This is a device limitation.

Any complex email addresses found in the list will be dropped, with a message sent to the debug output stream.

Definition at line 729 of file r_contact.cc.

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 585 of file r_contact.cc.

std::string Barry::Contact::GetFullName (  )  const

Helper function that returns a formatted full name.

Definition at line 570 of file r_contact.cc.

Referenced by BuildFields().

Here is the caller graph for this function:


Member Data Documentation

std::string Barry::Contact::Phone

This field, Phone, is deprecated.

It is possible to write to this field to the Blackberry, but modern devices won't let you add it through their GUIs. This field only seems to exist on the 7750. While other devices accept the field and display it, it is not accessible by default.

Definition at line 88 of file r_contact.h.


The documentation for this class was generated from the following files: