-rw-r--r-- | library/datebookdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/datebookdb.h b/library/datebookdb.h index aadb397..e4c251c 100644 --- a/library/datebookdb.h +++ b/library/datebookdb.h | |||
@@ -39,16 +39,17 @@ public: | |||
39 | // very depreciated now!!! | 39 | // very depreciated now!!! |
40 | QValueList<Event> getEvents( const QDate &from, const QDate &to ); | 40 | QValueList<Event> getEvents( const QDate &from, const QDate &to ); |
41 | QValueList<Event> getEvents( const QDateTime &start ); | 41 | QValueList<Event> getEvents( const QDateTime &start ); |
42 | 42 | ||
43 | // USE THESE!!! | 43 | // USE THESE!!! |
44 | QValueList<EffectiveEvent> getEffectiveEvents( const QDate &from, | 44 | QValueList<EffectiveEvent> getEffectiveEvents( const QDate &from, |
45 | const QDate &to ); | 45 | const QDate &to ); |
46 | QValueList<EffectiveEvent> getEffectiveEvents( const QDateTime &start ); | 46 | QValueList<EffectiveEvent> getEffectiveEvents( const QDateTime &start ); |
47 | Event getEvent( int uid ); | ||
47 | 48 | ||
48 | QValueList<Event> getRawRepeats() const; | 49 | QValueList<Event> getRawRepeats() const; |
49 | QValueList<Event> getNonRepeatingEvents( const QDate &from, | 50 | QValueList<Event> getNonRepeatingEvents( const QDate &from, |
50 | const QDate &to ) const; | 51 | const QDate &to ) const; |
51 | 52 | ||
52 | // Use these when dealing with adding removing events... | 53 | // Use these when dealing with adding removing events... |
53 | void addEvent( const Event &ev, bool doalarm=TRUE ); | 54 | void addEvent( const Event &ev, bool doalarm=TRUE ); |
54 | void removeEvent( const Event &ev ); | 55 | void removeEvent( const Event &ev ); |
@@ -73,13 +74,15 @@ private: | |||
73 | // function.. | 74 | // function.. |
74 | bool saveJournalEntry( const Event &ev, journal_action action, | 75 | bool saveJournalEntry( const Event &ev, journal_action action, |
75 | int key/* = -1*/, bool origHadRepeat = false ); | 76 | int key/* = -1*/, bool origHadRepeat = false ); |
76 | 77 | ||
77 | QValueList<Event> eventList; // non-repeating events... | 78 | QValueList<Event> eventList; // non-repeating events... |
78 | QValueList<Event> repeatEvents; // the repeating events... | 79 | QValueList<Event> repeatEvents; // the repeating events... |
79 | DateBookDBPrivate *d; | 80 | DateBookDBPrivate *d; |
80 | QFile journalFile; | 81 | QFile journalFile; |
82 | |||
83 | intrecordIdMax; // ADDITION | ||
81 | }; | 84 | }; |
82 | 85 | ||
83 | /* helper functions, also useful to other apps. */ | 86 | /* helper functions, also useful to other apps. */ |
84 | bool nextOccurance( const Event &e, const QDate &from, QDateTime &next); | 87 | bool nextOccurance( const Event &e, const QDate &from, QDateTime &next); |
85 | #endif | 88 | #endif |