#include <CDataStructures.h>
Inheritance diagram for CPerson::
Public Methods | |
CPerson () | |
CPerson (CPerson *p) | |
~CPerson () | |
string | getName (bool lastthenfirst=true) |
Returns full name in either order. More... | |
string | getLastName (void) |
string | getFirstName (void) |
string | getMiddleInitial (void) |
string | getHomePhoneNumber (void) |
string | getCellPhoneNumber (void) |
string | getWorkPhoneNumber (void) |
string | getDefaultPhoneNumber (void) |
Returns the default phone number to call. More... | |
string | getStreet (void) |
string | getCity (void) |
string | getState (void) |
string | getZip (void) |
string | getCountry (void) |
string | getEmail (void) |
string | getComment (void) |
string | getCategory (void) |
Used for supporting categories for people,. More... | |
void | setLastName (string lastname) |
void | setFirstName (string firstname) |
bool | setMiddleInitial (string initial) |
Set middle initial, must be one character length string. More... | |
void | setHomePhoneNumber (string homephone) |
void | setCellPhoneNumber (string cellphone) |
void | setWorkPhoneNumber (string workphone) |
bool | setDefaultPhoneNumber (string defaultphone) |
Sets the default phone number to return. More... | |
void | setStreet (string street) |
void | setCity (string city) |
void | setState (string state) |
void | setZip (string zip) |
void | setCountry (string country) |
void | setEmail (string email) |
void | setComment (string comment) |
bool | setCategory (string category) |
Sets the category of this CPerson. More... | |
void | inputData (string inputdata) |
string | outputData (void) |
and subclassed from CListItem to be a linked list node for the address book. Stores first name, last name, middle initial, home, cell and work phone numbers, email, comment, full address. Provides nice routine for outputing name in either first then last name or vice-versa. Also provides initialization and saving routines to be used for saving and initializing the device, up/downloading to PC and backup.
|
|
|
|
|
|
|
Used for supporting categories for people,.
|
|
|
|
|
|
|
|
|
|
Returns the default phone number to call.
|
|
|
|
|
|
|
|
|
|
|
|
Returns full name in either order. Returns either "Firstname I. Lastname" or "Lastname, Firstname I." for a CPerson depending on boolean value. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets the category of this CPerson. 'U' unfiled 'P' personal 'F' family 'B' business |
|
|
|
|
|
|
|
|
|
Sets the default phone number to return. getDefaultPhoneNumber(). 'H' for home 'C' for cell 'W' for work If none is set will, return first nonempty phonenumber, searching first home, than cell, than work. If no numbers are set, will return empty string |
|
|
|
|
|
|
|
|
|
Set middle initial, must be one character length string.
|
|
|
|
|
|
|
|
|