-rw-r--r-- | libopie2/opiepim/otodo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libopie2/opiepim/otodo.h b/libopie2/opiepim/otodo.h index 2f66f55..a58d9aa 100644 --- a/libopie2/opiepim/otodo.h +++ b/libopie2/opiepim/otodo.h | |||
@@ -83,126 +83,142 @@ public: | |||
83 | /** | 83 | /** |
84 | *destructor | 84 | *destructor |
85 | */ | 85 | */ |
86 | ~OTodo(); | 86 | ~OTodo(); |
87 | 87 | ||
88 | /** | 88 | /** |
89 | * Is this event completed? | 89 | * Is this event completed? |
90 | */ | 90 | */ |
91 | bool isCompleted() const; | 91 | bool isCompleted() const; |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * Does this Event have a deadline | 94 | * Does this Event have a deadline |
95 | */ | 95 | */ |
96 | bool hasDueDate() const; | 96 | bool hasDueDate() const; |
97 | bool hasStartDate()const; | 97 | bool hasStartDate()const; |
98 | bool hasCompletedDate()const; | 98 | bool hasCompletedDate()const; |
99 | 99 | ||
100 | /** | 100 | /** |
101 | * Does this Event has an alarm time ? | 101 | * Does this Event has an alarm time ? |
102 | */ | 102 | */ |
103 | bool hasAlarmDateTime() const; | 103 | bool hasAlarmDateTime() const; |
104 | 104 | ||
105 | /** | 105 | /** |
106 | * What is the priority? | 106 | * What is the priority? |
107 | */ | 107 | */ |
108 | int priority()const ; | 108 | int priority()const ; |
109 | 109 | ||
110 | /** | 110 | /** |
111 | * progress as ushort 0, 20, 40, 60, 80 or 100% | 111 | * progress as ushort 0, 20, 40, 60, 80 or 100% |
112 | */ | 112 | */ |
113 | ushort progress() const; | 113 | ushort progress() const; |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * The due Date | 116 | * The due Date |
117 | */ | 117 | */ |
118 | QDate dueDate()const; | 118 | QDate dueDate()const; |
119 | 119 | ||
120 | /** | 120 | /** |
121 | * When did it start? | 121 | * When did it start? |
122 | */ | 122 | */ |
123 | QDate startDate()const; | 123 | QDate startDate()const; |
124 | 124 | ||
125 | /** | 125 | /** |
126 | * When was it completed? | 126 | * When was it completed? |
127 | */ | 127 | */ |
128 | QDate completedDate()const; | 128 | QDate completedDate()const; |
129 | 129 | ||
130 | /** | 130 | /** |
131 | * does it have a state? | ||
132 | */ | ||
133 | bool hasState()const; | ||
134 | |||
135 | /** | ||
131 | * What is the state of this OTodo? | 136 | * What is the state of this OTodo? |
132 | */ | 137 | */ |
133 | OPimState state()const; | 138 | OPimState state()const; |
134 | 139 | ||
135 | /** | 140 | /** |
141 | * has recurrence? | ||
142 | */ | ||
143 | bool hasRecurrence()const; | ||
144 | |||
145 | /** | ||
136 | * the recurrance of this | 146 | * the recurrance of this |
137 | */ | 147 | */ |
138 | ORecur recurrence()const; | 148 | ORecur recurrence()const; |
139 | 149 | ||
140 | /** | 150 | /** |
151 | * does this OTodo have a maintainer? | ||
152 | */ | ||
153 | bool hasMaintainer()const; | ||
154 | |||
155 | /** | ||
141 | * the Maintainer of this OTodo | 156 | * the Maintainer of this OTodo |
142 | */ | 157 | */ |
143 | OPimMaintainer maintainer()const; | 158 | OPimMaintainer maintainer()const; |
144 | 159 | ||
145 | /** | 160 | /** |
146 | * The description of the todo | 161 | * The description of the todo |
147 | */ | 162 | */ |
148 | QString description()const; | 163 | QString description()const; |
149 | 164 | ||
150 | /** | 165 | /** |
151 | * A small summary of the todo | 166 | * A small summary of the todo |
152 | */ | 167 | */ |
153 | QString summary() const; | 168 | QString summary() const; |
154 | 169 | ||
155 | /** | 170 | /** |
156 | * @reimplemented | 171 | * @reimplemented |
157 | * Return this todoevent in a RichText formatted QString | 172 | * Return this todoevent in a RichText formatted QString |
158 | */ | 173 | */ |
159 | QString toRichText() const; | 174 | QString toRichText() const; |
160 | 175 | ||
176 | bool hasNotifiers()const; | ||
161 | /* | 177 | /* |
162 | * check if the sharing is still fine!! -zecke | 178 | * check if the sharing is still fine!! -zecke |
163 | */ | 179 | */ |
164 | /** | 180 | /** |
165 | * return a reference to our notifiers... | 181 | * return a reference to our notifiers... |
166 | */ | 182 | */ |
167 | OPimNotifyManager ¬ifiers(); | 183 | OPimNotifyManager ¬ifiers(); |
168 | 184 | ||
169 | /** | 185 | /** |
170 | * reimplementations | 186 | * reimplementations |
171 | */ | 187 | */ |
172 | QString type()const; | 188 | QString type()const; |
173 | QString toShortText()const; | 189 | QString toShortText()const; |
174 | QMap<QString, QString> toExtraMap()const; | 190 | QMap<QString, QString> toExtraMap()const; |
175 | QString recordField(int id )const; | 191 | QString recordField(int id )const; |
176 | 192 | ||
177 | /** | 193 | /** |
178 | * toMap puts all data into the map. int relates | 194 | * toMap puts all data into the map. int relates |
179 | * to ToDoEvent RecordFields enum | 195 | * to ToDoEvent RecordFields enum |
180 | */ | 196 | */ |
181 | QMap<int, QString> toMap()const; | 197 | QMap<int, QString> toMap()const; |
182 | 198 | ||
183 | /** | 199 | /** |
184 | * Set if this Todo is completed | 200 | * Set if this Todo is completed |
185 | */ | 201 | */ |
186 | void setCompleted(bool completed ); | 202 | void setCompleted(bool completed ); |
187 | 203 | ||
188 | /** | 204 | /** |
189 | * set if this todo got an end data | 205 | * set if this todo got an end data |
190 | */ | 206 | */ |
191 | void setHasDueDate( bool hasDate ); | 207 | void setHasDueDate( bool hasDate ); |
192 | // FIXME we do not have these for start, completed | 208 | // FIXME we do not have these for start, completed |
193 | // cause we'll use the isNull() of QDate for figuring | 209 | // cause we'll use the isNull() of QDate for figuring |
194 | // out if it's has a date... | 210 | // out if it's has a date... |
195 | // decide what to do here? -zecke | 211 | // decide what to do here? -zecke |
196 | 212 | ||
197 | /** | 213 | /** |
198 | * Set the priority of the Todo | 214 | * Set the priority of the Todo |
199 | */ | 215 | */ |
200 | void setPriority(int priority ); | 216 | void setPriority(int priority ); |
201 | 217 | ||
202 | /** | 218 | /** |
203 | * Set the progress. | 219 | * Set the progress. |
204 | */ | 220 | */ |
205 | void setProgress( ushort progress ); | 221 | void setProgress( ushort progress ); |
206 | 222 | ||
207 | /** | 223 | /** |
208 | * set the end date | 224 | * set the end date |