summaryrefslogtreecommitdiff
path: root/library/backend/event.h
authorzecke <zecke>2002-09-21 11:06:13 (UTC)
committer zecke <zecke>2002-09-21 11:06:13 (UTC)
commit90b5f15ac863d5eb833d2d9e832b43d05c4079a4 (patch) (side-by-side diff)
tree7ef87033f2e204d29090f0fe40b9ae0c296a1b5f /library/backend/event.h
parent51f94f502b2b9a92d562a3ad726ad58372860c5e (diff)
downloadopie-90b5f15ac863d5eb833d2d9e832b43d05c4079a4.zip
opie-90b5f15ac863d5eb833d2d9e832b43d05c4079a4.tar.gz
opie-90b5f15ac863d5eb833d2d9e832b43d05c4079a4.tar.bz2
Make end inline again
Diffstat (limited to 'library/backend/event.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/backend/event.h b/library/backend/event.h
index 2b275a4..4610d85 100644
--- a/library/backend/event.h
+++ b/library/backend/event.h
@@ -248,128 +248,128 @@ private:
mEnd;
};
inline void Event::setAlarm( int minutes, SoundTypeChoice s )
{
setAlarm(TRUE, minutes, s);
}
inline void Event::clearAlarm()
{
setAlarm(FALSE, 0, Silent);
}
inline int Event::alarmDelay() const
{
return alarmTime();
}
inline void Event::setAllDay(bool enable)
{
if (enable)
setType(AllDay);
else
setType(Normal);
};
inline bool Event::isAllDay() const
{
return type() == AllDay;
}
inline Event::RepeatType Event::repeatType() const
{
return repeatPattern().type;
}
inline int Event::frequency() const
{
return repeatPattern().frequency;
}
inline int Event::weekOffset() const
{
if (start().date().day() == 1)
return 1;
return (start().date().day() - 1) / 7 + 1;
}
inline QDate Event::repeatTill() const
{
return repeatPattern().endDate();
}
inline bool Event::repeatForever() const
{
return !repeatPattern().hasEndDate;
}
inline void Event::setRepeatType(RepeatType t)
{
pattern.type = t;
}
inline void Event::setFrequency(int f)
{
pattern.frequency = f;
}
inline void Event::setRepeatTill(const QDate &d)
{
pattern.setEndDate(d);
pattern.hasEndDate = TRUE;
}
inline void Event::setRepeatForever(bool b)
{
if (!b == pattern.hasEndDate)
return;
if (!b && !pattern.hasEndDate)
pattern.setEndDate(end().date());
pattern.hasEndDate = !b;
}
inline bool Event::repeatOnWeekDay(int day) const
{
if (pattern.type != Weekly)
return FALSE;
return ( (1 << (day - 1)) & pattern.days ) != 0;
}
inline void Event::setRepeatOnWeekDay(int day, bool enable)
{
if ( repeatOnWeekDay( day ) != enable )
pattern.days ^= 1 << (day - 1);
}
-/*
+
inline QDateTime Event::start( ) const
{
return start(FALSE);
}
inline QDateTime Event::end( ) const
{
return end(FALSE);
}
-*/
+
#ifdef PALMTOPCENTER
class QPC_EXPORT EffectiveEventSizeSorter : public QSorter<EffectiveEvent>
{
public:
int compare( const EffectiveEvent& a, const EffectiveEvent& b ) const
{
return a.size() - b.size();
}
};
class QPC_EXPORT EffectiveEventTimeSorter : public QSorter<EffectiveEvent>
{
public:
int compare( const EffectiveEvent& a, const EffectiveEvent& b ) const
{
return a.start().secsTo( b.start() );
}
};
#endif
#endif