00001 /* 00002 * This file is part of calendar-backend 00003 * 00004 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). 00005 * 00006 * Contact: Ilias Biris <ilias.biris@nokia.com> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * version 2.1 as published by the Free Software Foundation. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00020 * 02110-1301 USA 00021 * 00022 */ 00023 00024 #ifndef __CPARTICIPANT__H_ 00025 #define __CPARTICIPANT__H_ 00026 00027 /* Headers */ 00028 #include <string> 00029 using namespace::std; 00030 using std::string; 00031 00036 class CParticipant { 00037 00038 public: 00039 00046 bool setLanguage(string szLanguage); 00047 00054 bool setSentBy(string szBy); 00055 00062 bool setCommonName(string szCommonName); 00063 00070 bool setXparameters(string szXParameters); 00071 00078 bool setCalAddress(string szCalAddress); 00079 00086 bool setDirectoryParameter(string szDirParam); 00087 00091 const CParticipant & operator=(const CParticipant & right); 00092 00098 string getDirectoryParameter(); 00099 00106 string getCalAddress(); 00107 00114 string getXparameters(); 00115 00122 string getCommonName(); 00123 00130 string getSentBy(); 00131 00138 string getLanguage(); 00144 void setMailTo(string szMailTo); 00150 string getMailTo(); 00151 00155 CParticipant(string szSentBy, string szCommonName, string szDirectoryParameter, 00156 string szLanguage, string szCalAddress, string szCXparameter, 00157 string szMailTo); 00161 CParticipant(); 00162 00166 CParticipant(CParticipant & Cparef); 00167 00171 virtual ~ CParticipant(); 00175 string toString(); 00176 00177 00178 private: 00179 00180 /* Parameters are defined as per RFC */ 00181 00182 string szSentBy; 00184 string szCommonName; 00186 string szDirectoryParameter; 00188 string szLanguage; 00190 string szCalAddress; 00192 string szCXparameter; 00194 string szMailTo ;/* Mailto parameter for Organizer and Attendee*/ 00195 00196 }; 00197 00198 00199 #endif