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

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
00017  */
00018 
00019 
00020 //
00021 // @author Stefano Fornari @ Funambol
00022 // @version $Id: PersonalDetail.h,v 1.5 2007/06/06 08:36:11 mvitolo 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 Nov 9 12:21:26 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2