src/include/common/vocl/vCard/vCardProperty.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: vCardProperty.h,v 1.6 2007/06/06 08:36:11 mvitolo Exp $
00023 //
00024 #include <string.h>
00025 
00026 #ifndef INCL_PIM_PROPERTY
00027 #define INCL_PIM_PROPERTY
00028 
00030 #include "base/fscapi.h"
00031 
00036 class vCardProperty {
00037 
00038     // ------------------------------------------------------------ Private data
00039 
00040     private:
00041         WCHAR* encoding     ;
00042         WCHAR* language     ;
00043         WCHAR* value        ;
00044         WCHAR* chrset       ;
00045 
00055         void set(WCHAR** property, WCHAR* v);
00056 
00057     // -------------------------------------------- Constructors and Destructors
00058     public:
00062         vCardProperty (WCHAR* v = NULL);
00063 
00064         ~vCardProperty();
00065 
00066     // ---------------------------------------------------------- Public methods
00067 
00076         WCHAR* getEncoding (WCHAR* buf = NULL, int size = -1);
00077 
00086         WCHAR* getLanguage (WCHAR* buf = NULL, int size = -1);
00087 
00096         WCHAR* getValue (WCHAR* buf = NULL, int size = -1);
00097 
00106         WCHAR* getCharset (WCHAR* buf = NULL, int size = -1);
00107 
00113         void setEncoding (WCHAR* encoding);
00114 
00120         void setLanguage (WCHAR* language);
00121 
00127         void setValue (WCHAR* value);
00128 
00134         void setCharset (WCHAR* chrset);
00135 
00136 
00142         vCardProperty* clone();
00143 };
00144 
00146 #endif

Generated on Tue Oct 30 15:11:26 2007 for Funambol C++ Client Library by  doxygen 1.5.2