src/include/common/vocl/vCard/Name.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: Name.h,v 1.4 2007/06/06 08:36:11 mvitolo Exp $
00023 //
00024 
00025 #ifndef INCL_PIM_NAME
00026 #define INCL_PIM_NAME
00027 
00029 #include "vCardProperty.h"
00030 
00031 class Name {
00032 
00033     // ------------------------------------------------------------ Private data
00034 
00035     private:
00036         vCardProperty* salutation ;
00037         vCardProperty* firstName  ;
00038         vCardProperty* middleName ;
00039         vCardProperty* lastName   ;
00040         vCardProperty* suffix     ;
00041         vCardProperty* displayName;
00042         vCardProperty* nickname   ;
00043 
00051         void set(vCardProperty** oldProperty, vCardProperty& newProperty);
00052 
00053     // -------------------------------------------- Constructors and Destructors
00054 
00055     public:
00056         Name();
00057         ~Name();
00058 
00059     // ---------------------------------------------------------- Public methods
00060 
00066         vCardProperty* getSalutation ();
00067 
00072         void setSalutation(vCardProperty& p);
00073 
00079         vCardProperty* getFirstName ();
00080 
00085         void setFirstName(vCardProperty& p);
00086 
00092         vCardProperty* getMiddleName ();
00093 
00098         void setMiddleName(vCardProperty& p);
00099 
00105         vCardProperty* getLastName ();
00106 
00111         void setLastName(vCardProperty& p);
00112 
00118         vCardProperty* getSuffix ();
00119 
00124         void setSuffix(vCardProperty& p);
00125 
00131         vCardProperty* getDisplayName ();
00132 
00137         void setDisplayName(vCardProperty& p);
00138 
00144         vCardProperty* getNickname ();
00145 
00150         void setNickname(vCardProperty& p);
00151 
00157         Name* clone();
00158 };
00159 
00161 #endif

Generated on Fri Nov 9 12:21:26 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2