src/include/common/vocl/vCard/BusinessDetail.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 #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 Jun 15 11:38:30 2007 for Funambol C++ Client Library by  doxygen 1.5.2