summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/event.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/library/backend/event.h b/library/backend/event.h
index 4610d85..118523f 100644
--- a/library/backend/event.h
+++ b/library/backend/event.h
@@ -99,23 +99,21 @@ public:
99 void setType( Type t ); // Don't use me. 99 void setType( Type t ); // Don't use me.
100 Type type() const; // Don't use me. 100 Type type() const; // Don't use me.
101 101
102 void setAllDay(bool); 102 void setAllDay(bool);
103 bool isAllDay() const; 103 bool isAllDay() const;
104 104
105 void setStart( const QDateTime &d ); 105 void setStart( const QDateTime &d );
106 void setStart( time_t time ); // don't use me. 106 void setStart( time_t time ); // don't use me.
107 QDateTime start( ) const; 107 QDateTime start( bool actual = FALSE) const; // don't use me.
108 QDateTime start( bool actual ) const; // don't use me.
109 time_t startTime() const { return startUTC; } // don't use me. 108 time_t startTime() const { return startUTC; } // don't use me.
110 void setEnd( const QDateTime &e ); 109 void setEnd( const QDateTime &e );
111 void setEnd( time_t time ); // don't use me 110 void setEnd( time_t time ); // don't use me
112 QDateTime end( ) const; 111 QDateTime end( bool actual = FALSE ) const; // don't use me.
113 QDateTime end( bool actual ) const; // don't use me.
114 time_t endTime() const { return endUTC; } // don't use me. 112 time_t endTime() const { return endUTC; } // don't use me.
115 void setTimeZone( const QString & ); 113 void setTimeZone( const QString & );
116 const QString &timeZone() const; 114 const QString &timeZone() const;
117 void setAlarm( int minutes, SoundTypeChoice ); 115 void setAlarm( int minutes, SoundTypeChoice );
118 void clearAlarm(); 116 void clearAlarm();
119 void setAlarm( bool b, int minutes, SoundTypeChoice ); // Don't use me. 117 void setAlarm( bool b, int minutes, SoundTypeChoice ); // Don't use me.
120 bool hasAlarm() const; 118 bool hasAlarm() const;
121 int alarmDelay() const; 119 int alarmDelay() const;
@@ -336,27 +334,16 @@ inline bool Event::repeatOnWeekDay(int day) const
336 return ( (1 << (day - 1)) & pattern.days ) != 0; 334 return ( (1 << (day - 1)) & pattern.days ) != 0;
337} 335}
338 336
339inline void Event::setRepeatOnWeekDay(int day, bool enable) 337inline void Event::setRepeatOnWeekDay(int day, bool enable)
340{ 338{
341 if ( repeatOnWeekDay( day ) != enable ) 339 if ( repeatOnWeekDay( day ) != enable )
342 pattern.days ^= 1 << (day - 1); 340 pattern.days ^= 1 << (day - 1);
343} 341}
344
345inline QDateTime Event::start( ) const
346{
347 return start(FALSE);
348}
349
350inline QDateTime Event::end( ) const
351{
352 return end(FALSE);
353}
354
355#ifdef PALMTOPCENTER 342#ifdef PALMTOPCENTER
356class QPC_EXPORT EffectiveEventSizeSorter : public QSorter<EffectiveEvent> 343class QPC_EXPORT EffectiveEventSizeSorter : public QSorter<EffectiveEvent>
357{ 344{
358public: 345public:
359 int compare( const EffectiveEvent& a, const EffectiveEvent& b ) const 346 int compare( const EffectiveEvent& a, const EffectiveEvent& b ) const
360 { 347 {
361 return a.size() - b.size(); 348 return a.size() - b.size();
362 } 349 }