author | zecke <zecke> | 2004-11-18 22:20:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-11-18 22:20:17 (UTC) |
commit | 770e76de2e039300a1e89f3cb0c4785a8d1c16a7 (patch) (unidiff) | |
tree | 2e0ffedac20db3e5adc0e6ab216f9121fe7e91ca /libopie2/opiepim/core/opimevent.h | |
parent | ea24c0654cab6eb62ad4be717c7a2380ad1aa978 (diff) | |
download | opie-770e76de2e039300a1e89f3cb0c4785a8d1c16a7.zip opie-770e76de2e039300a1e89f3cb0c4785a8d1c16a7.tar.gz opie-770e76de2e039300a1e89f3cb0c4785a8d1c16a7.tar.bz2 |
Remove obsoleted OPimEffectiveEvent as it is superseeded
by the generic OPimOccurrence
Diffstat (limited to 'libopie2/opiepim/core/opimevent.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimevent.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/libopie2/opiepim/core/opimevent.h b/libopie2/opiepim/core/opimevent.h index 32f648f..1d12530 100644 --- a/libopie2/opiepim/core/opimevent.h +++ b/libopie2/opiepim/core/opimevent.h | |||
@@ -174,116 +174,51 @@ class OPimEvent : public OPimRecord | |||
174 | QArray<int> children() const; | 174 | QArray<int> children() const; |
175 | void setChildren( const QArray<int>& ); | 175 | void setChildren( const QArray<int>& ); |
176 | void addChild( int uid ); | 176 | void addChild( int uid ); |
177 | void removeChild( int uid ); | 177 | void removeChild( int uid ); |
178 | //@} | 178 | //@} |
179 | 179 | ||
180 | /** return the parent OPimEvent */ | 180 | /** return the parent OPimEvent */ |
181 | int parent() const; | 181 | int parent() const; |
182 | void setParent( int uid ); | 182 | void setParent( int uid ); |
183 | 183 | ||
184 | 184 | ||
185 | /* needed reimp */ | 185 | /* needed reimp */ |
186 | //@{ Reimplementations | 186 | //@{ Reimplementations |
187 | virtual bool match( const QRegExp& ) const; | 187 | virtual bool match( const QRegExp& ) const; |
188 | QString toRichText() const; | 188 | QString toRichText() const; |
189 | QString toShortText() const; | 189 | QString toShortText() const; |
190 | QString type() const; | 190 | QString type() const; |
191 | 191 | ||
192 | QMap<int, QString> toMap() const; | 192 | QMap<int, QString> toMap() const; |
193 | void fromMap( const QMap<int, QString>& map ); | 193 | void fromMap( const QMap<int, QString>& map ); |
194 | QString recordField( int ) const; | 194 | QString recordField( int ) const; |
195 | 195 | ||
196 | bool loadFromStream( QDataStream& ); | 196 | bool loadFromStream( QDataStream& ); |
197 | bool saveToStream( QDataStream& ) const; | 197 | bool saveToStream( QDataStream& ) const; |
198 | //@} | 198 | //@} |
199 | 199 | ||
200 | //@{ | 200 | //@{ |
201 | int rtti() const; | 201 | int rtti() const; |
202 | static OPimEvent* safeCast( const OPimRecord* ); | 202 | static OPimEvent* safeCast( const OPimRecord* ); |
203 | //@} | 203 | //@} |
204 | 204 | ||
205 | /* bool operator==( const OPimEvent& ); | 205 | /* bool operator==( const OPimEvent& ); |
206 | bool operator!=( const OPimEvent& ); | 206 | bool operator!=( const OPimEvent& ); |
207 | bool operator<( const OPimEvent& ); | 207 | bool operator<( const OPimEvent& ); |
208 | bool operator<=( const OPimEvent& ); | 208 | bool operator<=( const OPimEvent& ); |
209 | bool operator>( const OPimEvent& ); | 209 | bool operator>( const OPimEvent& ); |
210 | bool operator>=(const OPimEvent& ); | 210 | bool operator>=(const OPimEvent& ); |
211 | */ | 211 | */ |
212 | 212 | ||
213 | private: | 213 | private: |
214 | inline void changeOrModify(); | 214 | inline void changeOrModify(); |
215 | void deref(); | 215 | void deref(); |
216 | struct Data; | 216 | struct Data; |
217 | Data* data; | 217 | Data* data; |
218 | class Private; | 218 | class Private; |
219 | Private* priv; | 219 | Private* priv; |
220 | 220 | ||
221 | }; | 221 | }; |
222 | |||
223 | /** | ||
224 | * AN Event can span through multiple days. We split up a multiday eve | ||
225 | */ | ||
226 | class OEffectiveEvent | ||
227 | { | ||
228 | |||
229 | public: | ||
230 | typedef QValueList<OEffectiveEvent> ValueList; | ||
231 | enum Position { MidWay, Start, End, StartEnd }; | ||
232 | // If we calculate the effective event of a multi-day event | ||
233 | // we have to figure out whether we are at the first day, | ||
234 | // at the end, or anywhere else ("middle"). This is important | ||
235 | // for the start/end times (00:00/23:59) | ||
236 | // MidWay: 00:00 -> 23:59, as we are "in the middle" of a multi- | ||
237 | // day event | ||
238 | // Start: start time -> 23:59 | ||
239 | // End: 00:00 -> end time | ||
240 | // Start | End == StartEnd: for single-day events (default) | ||
241 | // here we draw start time -> end time | ||
242 | OEffectiveEvent(); | ||
243 | OEffectiveEvent( const OPimEvent& event, const QDate& startDate, Position pos = StartEnd ); | ||
244 | OEffectiveEvent( const OEffectiveEvent& ); | ||
245 | OEffectiveEvent &operator=( const OEffectiveEvent& ); | ||
246 | ~OEffectiveEvent(); | ||
247 | |||
248 | void setStartTime( const QTime& ); | ||
249 | void setEndTime( const QTime& ); | ||
250 | void setEvent( const OPimEvent& ); | ||
251 | void setDate( const QDate& ); | ||
252 | |||
253 | void setEffectiveDates( const QDate& from, const QDate& to ); | ||
254 | |||
255 | QString description() const; | ||
256 | QString location() const; | ||
257 | QString note() const; | ||
258 | OPimEvent event() const; | ||
259 | QTime startTime() const; | ||
260 | QTime endTime() const; | ||
261 | QDate date() const; | ||
262 | |||
263 | /* return the length in hours */ | ||
264 | int length() const; | ||
265 | int size() const; | ||
266 | |||
267 | QDate startDate() const; | ||
268 | QDate endDate() const; | ||
269 | |||
270 | bool operator<( const OEffectiveEvent &e ) const; | ||
271 | bool operator<=( const OEffectiveEvent &e ) const; | ||
272 | bool operator==( const OEffectiveEvent &e ) const; | ||
273 | bool operator!=( const OEffectiveEvent &e ) const; | ||
274 | bool operator>( const OEffectiveEvent &e ) const; | ||
275 | bool operator>= ( const OEffectiveEvent &e ) const; | ||
276 | |||
277 | private: | ||
278 | void deref(); | ||
279 | inline void changeOrModify(); | ||
280 | class Private; | ||
281 | Private* priv; | ||
282 | struct Data; | ||
283 | Data* data; | ||
284 | |||
285 | }; | ||
286 | |||
287 | } | 222 | } |
288 | 223 | ||
289 | #endif | 224 | #endif |