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 <[email protected]> 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 __CTODO_H__ 00025 #define __CTODO_H__ 00026 00027 /* Headers */ 00028 #include "CComponentDetails.h" 00029 00030 class CProperties; 00031 00032 00038 class CTodo:public CComponentDetails { 00039 00040 public: 00051 bool setGeo(string szGeo); 00052 00064 string getGeo(); 00065 00075 int getDue(); 00076 00087 bool setDue(int iDue); 00088 00097 int getCompleted(); 00098 00110 bool setCompleted(int iCompleted); 00111 00120 bool setPercentComplete(int iPercentComplete); 00121 00128 int getPercentComplete(); 00129 00130 00137 int getPriority(); 00138 00146 bool setPriority(int iPriority); 00147 00151 CTodo(CTodo & ref); 00152 00156 CTodo & operator=(CTodo & right); 00157 00158 /* Constructors and paramterized constructors */ 00159 CTodo(); 00160 /* overloaded constructor */ 00161 CTodo(string szSummary, int iDateStart, int iStatus); 00162 /* Destructors */ 00163 ~CTodo(); 00167 string toString(); 00168 00169 00170 private: 00171 00172 /* Member variables are defined as per ical rfc */ 00173 00174 string szGeo; 00176 int iDue; 00178 int iCompleted; 00180 int iPercentComplete; 00182 int iPriority; 00183 }; 00184 00185 #endif