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

00001 
00020 //
00021 // @author Stefano Fornari @ Funambol
00022 // @version $Id: PersonalDetail.h,v 1.4 2007/03/06 20:51:05 pohly Exp $
00023 //
00024 
00025 
00026 #ifndef INCL_PIM_PERSONAL_DETAIL
00027 #define INCL_PIM_PERSONAL_DETAIL
00028 
00030 #include "Address.h"
00031 #include "ContactDetail.h"
00032 #include "vCardProperty.h"
00033 
00038 class PersonalDetail {
00039 
00040     // ------------------------------------------------------------ Private data
00041 
00042     private:
00043         Address*       address      ;
00044         Address*       otherAddress ;
00045         ContactDetail* contactDetail;
00046         vCardProperty* photo        ;
00047         WCHAR*       spouse       ;
00048         WCHAR*       children     ;
00049         WCHAR*       anniversary  ;
00050         WCHAR*       birthday     ;
00051         WCHAR*       gender       ;
00052 
00062         void set(WCHAR** p, WCHAR* v);
00063 
00064     // -------------------------------------------- Constructors and Destructors
00065     public:
00069         PersonalDetail();
00070         ~PersonalDetail();
00071 
00072     // ---------------------------------------------------------- Public methods
00073 
00079         ContactDetail* getContactDetail();
00080 
00085         void setContactDetail(ContactDetail& d);
00086 
00092         Address* getAddress();
00093 
00098         void setAddress(Address& a);
00099 
00105         Address* getOtherAddress();
00106 
00111         void setOtherAddress(Address& p);
00112 
00121         WCHAR* getSpouse(WCHAR* buf = NULL, int size = -1);
00122 
00131         WCHAR* getChildren(WCHAR* buf = NULL, int size = -1);
00132 
00141         WCHAR* getAnniversary(WCHAR* buf = NULL, int size = -1);
00142 
00151         WCHAR* getBirthday(WCHAR* buf = NULL, int size = -1);
00152 
00161         WCHAR* getGender(WCHAR* buf = NULL, int size = -1);
00162 
00168         vCardProperty* getPhoto();
00169 
00174         void setPhoto(vCardProperty& p);
00175 
00181         void setSpouse (WCHAR* spouse);
00182 
00188         void setChildren (WCHAR* children);
00189 
00195         void setAnniversary (WCHAR* anniversary);
00196 
00202         void setBirthday (WCHAR* birthday);
00203 
00209         void setGender (WCHAR* gender);
00210 
00216         PersonalDetail* clone();
00217 };
00218 
00220 #endif

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