00001 00020 #ifndef __CTODO_H__ 00021 #define __CTODO_H__ 00022 00023 /* Headers */ 00024 #include "CComponentDetails.h" 00025 00026 class CProperties; 00027 00028 00034 class CTodo:public CComponentDetails { 00035 00036 public: 00047 bool setGeo(string szGeo); 00048 00060 string getGeo(); 00061 00071 int getDue(); 00072 00083 bool setDue(int iDue); 00084 00093 int getCompleted(); 00094 00106 bool setCompleted(int iCompleted); 00107 00116 bool setPercentComplete(int iPercentComplete); 00117 00124 int getPercentComplete(); 00125 00126 00133 int getPriority(); 00134 00142 bool setPriority(int iPriority); 00143 00147 CTodo(CTodo & ref); 00148 00152 CTodo & operator=(CTodo & right); 00153 00154 /* Constructors and paramterized constructors */ 00155 CTodo(); 00156 /* overloaded constructor */ 00157 CTodo(string szSummary, int iDateStart, int iStatus); 00158 /* Destructors */ 00159 ~CTodo(); 00163 string toString(); 00164 00165 00166 private: 00167 00168 /* Member variables are defined as per ical rfc */ 00169 00170 string szGeo; 00172 int iDue; 00174 int iCompleted; 00176 int iPercentComplete; 00178 int iPriority; 00179 }; 00180 00181 #endif