class MAPIContact : public MAPIObject
Outlook contact.
MAPIContact()
Default constructor.
String GetName(ULONG ulNameID = PR_DISPLAY_NAME)
Gets contact name.
String GetEmail(int nIndex = 1)
Gets contact email index nIndex (1, 2, or 3).
String GetEmailDisplayAs(int nIndex = 1)
Gets contact email display text index nIndex (1, 2 or 3).
String GetHomePage(bool bBusiness = true)
Gets contact web page address. If bBusiness is true it returns the business home page. If not, it returns the personal home page.
String GetPhoneNumber(ULONG ulPhoneNumberID)
Gets contact phone number index ulPhoneNumberID. Valid values are:
PR_BUSINESS_TELEPHONE_NUMBER
PR_BUSINESS2_TELEPHONE_NUMBER
PR_CALLBACK_TELEPHONE_NUMBER
PR_ASSISTANT_TELEPHONE_NUMBER
PR_BUSINESS_FAX_NUMBER
String GetPostalAddress()
Gets contact postal address.
String GetIMAddress()
Gets contact instant messenger address.
String GetFileAs()
Gets the contact filling string.
String GetTitle()
Gets contact company title
String GetCompany()
Gets contact company name
String GetProfession()
Gets contact profession
String GetDisplayNamePrefix()
Gets contact display name prefix
String GetGeneration()
Gets the contact generational abbreviation that follows the full name of the recipient.
String GetDepartment()
Gets contact department.
String GetOffice()
Gets contact office location.
String GetManagerName()
Gets contact manager name.
String GetAssistantName()
Gets contact assistant name.
String GetNickName()
Gets contact nickname.
String GetSpouseName()
Gets contact spouse name.
Time GetBirthday()
Gets contact birthday date.
Time GetAnniversary()
Gets contact anniversary date.
String GetCategories()
Gets a String with all contact categories.
bool SetName(const String &szName, ULONG ulNameID = PR_DISPLAY_NAME)
Sets contact name with szName.
bool SetEmail(const String &szEmail, int nIndex = 1)
Sets contact email index nIndex with szEmail.
bool SetEmailDisplayAs(const String &szDisplayAs, int nIndex = 1)
Sets contact email display text index nIndex with szDisplayAs.
bool SetHomePage(const String &szHomePage, bool bBusiness = true)
Sets contact home name szHomePage. If bBusiness.is true it returns the business home page. If not, it returns the personal home page.
bool SetPhoneNumber(const String &szPhoneNumber, ULONG ulPhoneNumberID)
Sets contact phone number index ulPhoneNumberID with szPhoneNumber. Valid indexes are:
PR_BUSINESS_TELEPHONE_NUMBER
PR_BUSINESS2_TELEPHONE_NUMBER
PR_CALLBACK_TELEPHONE_NUMBER
PR_ASSISTANT_TELEPHONE_NUMBER
PR_BUSINESS_FAX_NUMBER
bool SetPostalAddress(ContactAddress::AddressType nType)
Sets contact postal address type from nType.
bool SetNotes(const String &szNotes, bool bRTF=false)
Sets contact notes from szNotes. In bRTF it indicates if text is RTF.
bool SetFileAs(const String &szFileAs)
Sets contact file as from szFileAs.
bool SetTitle(const String &szTitle)
Sets contact title from szTitle.
bool SetCompany(const String &szCompany)
Sets contact company from szCompany.
bool SetProfession(const String &szProfession)
Sets contact profession from szProfession.
bool SetDisplayNamePrefix(const String &szPrefix)
Sets contact display name prefix from szPrefix.
bool SetGeneration(const String &szGeneration)
Sets contact generation from szGeneration.
bool SetDepartment(const String &szDepartment)
Sets contact department from szDepartment.
bool SetOffice(const String &szOffice)
Sets contact office from szOffice.
bool SetManagerName(const String &szManagerName)
Sets contact manager name from szManagerName.
bool SetAssistantName(const String &szAssistantName)
Sets contact assistant name from szAssistantName.
bool SetNickName(const String &szNickName)
Sets contact nickname from szNickName.
bool SetSpouseName(const String &szSpouseName)
Sets contact spouse name from szSpouseName.
bool SetBirthday(const Time &tm)
Sets contact birthday from tm.
bool SetAnniversary(const Time &tm)
Sets contact anniversary from tm.
bool SetCategories(const String &szCategories)
Sets contact categories from szCategories.
bool HasPicture()
Indicates if contact has a picture.
bool SetPicture(const String &szPath)
Sets contact picture from image file in szPath.
|