src/include/common/vocl/vCard/Address.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: Address.h,v 1.4 2007/06/06 08:36:11 mvitolo Exp $
00023 //
00024 
00025 #ifndef INCL_PIM_ADDRESS
00026 #define INCL_PIM_ADDRESS
00027 
00029 #include "vCardProperty.h"
00030 
00034 class Address {
00035 
00036     // ------------------------------------------------------------ Private data
00037 
00038     private:
00039         vCardProperty* postOfficeAddress;
00040         vCardProperty* roomNumber;
00041         vCardProperty* street;
00042         vCardProperty* city;
00043         vCardProperty* state;
00044         vCardProperty* postalCode;
00045         vCardProperty* country;
00046         vCardProperty* label;
00047 
00055         void set(vCardProperty** oldProperty, vCardProperty& newProperty);
00056 
00057     // -------------------------------------------- Constructors and Destructors
00058     public:
00062         Address();
00063         ~Address();
00064 
00065     // ---------------------------------------------------------- Public methods
00066 
00072         vCardProperty* getPostOfficeAddress ();
00073 
00078         void setPostOfficeAddress(vCardProperty& p);
00079 
00085         vCardProperty* getRoomNumber () ;
00086 
00091         void setRoomNumber(vCardProperty& p);
00092 
00098         vCardProperty* getStreet () ;
00099 
00104         void setStreet(vCardProperty& p);
00105 
00111         vCardProperty* getCity () ;
00112 
00117         void setCity(vCardProperty& p);
00118 
00124         vCardProperty* getState () ;
00125 
00130         void setState(vCardProperty& p);
00131 
00137         vCardProperty* getPostalCode () ;
00138 
00143         void setPostalCode(vCardProperty& p);
00144 
00150         vCardProperty* getCountry () ;
00151 
00156         void setCountry(vCardProperty& p);
00157 
00163         vCardProperty* getLabel () ;
00164 
00169         void setLabel(vCardProperty& p);
00170 
00176         Address* clone();
00177 
00178 };
00179 
00181 #endif

Generated on Fri Jun 15 11:38:30 2007 for Funambol C++ Client Library by  doxygen 1.5.2