src/include/common/vocl/vCard/BusinessDetail.h

00001 
00020 #ifndef INCL_PIM_BUSINESS_DETAIL
00021 #define INCL_PIM_BUSINESS_DETAIL
00022 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayList.h"
00026 #include "vocl/vCard/Address.h"
00027 #include "vocl/vCard/ContactDetail.h"
00028 #include "vocl/vCard/vCardProperty.h"
00029 
00030 typedef WCHAR* WSTRING;
00035 class BusinessDetail {
00036 
00037     // ------------------------------------------------------------ Private data
00038     private:
00039         Address*       address;
00040         ContactDetail* contactDetail;
00041         vCardProperty*      role;
00042         ArrayList*     titles;
00043         vCardProperty*      company;
00044         vCardProperty*      department;
00045         vCardProperty*      logo;
00046         WCHAR*       manager;
00047         WCHAR*       assistant;
00048 
00056         void set(vCardProperty** oldProperty, vCardProperty& newProperty);
00057 
00058 
00068         void set(WCHAR** p, WCHAR* v);
00069 
00070 
00071     // -------------------------------------------- Constructors and Destructors
00072     public:
00076         BusinessDetail();
00077         ~BusinessDetail();
00078 
00079     // ---------------------------------------------------------- Public methods
00080 
00086         vCardProperty* getRole();
00087 
00092         void setRole(vCardProperty& p);
00093 
00099         ArrayList* getTitles();
00100 
00105         void setTitles(WCHAR* titleArray[], int n);
00106 
00112         Address* getAddress();
00113 
00118         void setAddress(Address& a);
00119 
00125         vCardProperty* getCompany();
00126 
00131         void setCompany(vCardProperty& a);
00132 
00138         vCardProperty* getDepartment();
00139 
00144         void setDepartment(vCardProperty& a);
00145 
00151         ContactDetail* getContactDetail();
00152 
00157         void setContactDetail(ContactDetail& a);
00158 
00168         WCHAR* getManager(WCHAR* manager = NULL, int size=-1);
00169 
00178         WCHAR* getAssistant(WCHAR* assistant = NULL, int size=-1);
00179 
00185         vCardProperty* getLogo();
00186 
00191         void setLogo(vCardProperty& a);
00192 
00198         void setManager (WCHAR* manager);
00199 
00205         void setAssistant (WCHAR* assistant);
00206 
00212         BusinessDetail* clone();
00213 
00214 };
00215 
00217 #endif

Generated on Fri Apr 27 12:29:19 2007 for Funambol C++ Client Library by  doxygen 1.5.2