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 __CEVENT_H__ 00025 #define __CEVENT_H__ 00026 00027 /* Headers */ 00028 #include "CComponentDetails.h" 00029 class CAttendee; 00030 class CProperties; 00036 class CEvent:public CComponentDetails { 00037 00038 public: 00039 00043 CEvent(); 00044 00045 /* Paramterized constructor */ 00046 CEvent(string szSummary, string szDescription, string szLocation, int iDateStart, int iDateEnd); 00047 00051 ~CEvent(); 00052 00060 bool setGeo(string szGeo); 00061 00069 string getGeo(); 00070 00078 string getTransparency(); 00090 bool setTransparency(string szTransparency); 00097 int getPriority(); 00098 00107 bool setPriority(int iPriority); 00108 00113 CEvent(CEvent & ref); 00114 00119 const CEvent & operator=(const CEvent & right); 00123 string toString(); 00124 00125 00126 private: 00127 00128 /* Member variables are defined as per RFC */ 00129 00130 string szGeo; 00132 string szTransparency; 00134 int iPriority; 00135 }; 00136 00137 #endif