author | zautrix <zautrix> | 2004-08-02 00:52:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-02 00:52:35 (UTC) |
commit | 54157cb44316de72d776cfae70bdadf6c52f4773 (patch) (unidiff) | |
tree | 953c8ae225a54fc43a7298d49b08e821bf741cb9 /libkcal/calendarlocal.h | |
parent | 3ebd85e83e6f9d4ac59ce1828548f7236e2b1af0 (diff) | |
download | kdepimpi-54157cb44316de72d776cfae70bdadf6c52f4773.zip kdepimpi-54157cb44316de72d776cfae70bdadf6c52f4773.tar.gz kdepimpi-54157cb44316de72d776cfae70bdadf6c52f4773.tar.bz2 |
Hack, hack, hack
-rw-r--r-- | libkcal/calendarlocal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkcal/calendarlocal.h b/libkcal/calendarlocal.h index 3257198..4728063 100644 --- a/libkcal/calendarlocal.h +++ b/libkcal/calendarlocal.h | |||
@@ -82,136 +82,136 @@ class CalendarLocal : public Calendar | |||
82 | */ | 82 | */ |
83 | Event *event( const QString &uid ); | 83 | Event *event( const QString &uid ); |
84 | /** | 84 | /** |
85 | Return unfiltered list of all events in calendar. | 85 | Return unfiltered list of all events in calendar. |
86 | */ | 86 | */ |
87 | QPtrList<Event> rawEvents(); | 87 | QPtrList<Event> rawEvents(); |
88 | QPtrList<Event> getExternLastSyncEvents(); | 88 | QPtrList<Event> getExternLastSyncEvents(); |
89 | /** | 89 | /** |
90 | Add a todo to the todolist. | 90 | Add a todo to the todolist. |
91 | */ | 91 | */ |
92 | bool addTodo( Todo *todo ); | 92 | bool addTodo( Todo *todo ); |
93 | bool addTodoNoDup( Todo *todo ); | 93 | bool addTodoNoDup( Todo *todo ); |
94 | /** | 94 | /** |
95 | Remove a todo from the todolist. | 95 | Remove a todo from the todolist. |
96 | */ | 96 | */ |
97 | void deleteTodo( Todo * ); | 97 | void deleteTodo( Todo * ); |
98 | /** | 98 | /** |
99 | Searches todolist for an event with this unique string identifier, | 99 | Searches todolist for an event with this unique string identifier, |
100 | returns a pointer or null. | 100 | returns a pointer or null. |
101 | */ | 101 | */ |
102 | Todo *todo( const QString &uid ); | 102 | Todo *todo( const QString &uid ); |
103 | /** | 103 | /** |
104 | Return list of all todos. | 104 | Return list of all todos. |
105 | */ | 105 | */ |
106 | QPtrList<Todo> rawTodos(); | 106 | QPtrList<Todo> rawTodos(); |
107 | /** | 107 | /** |
108 | Returns list of todos due on the specified date. | 108 | Returns list of todos due on the specified date. |
109 | */ | 109 | */ |
110 | QPtrList<Todo> todos( const QDate &date ); | 110 | QPtrList<Todo> todos( const QDate &date ); |
111 | /** | 111 | /** |
112 | Return list of all todos. | 112 | Return list of all todos. |
113 | 113 | ||
114 | Workaround because compiler does not recognize function of base class. | 114 | Workaround because compiler does not recognize function of base class. |
115 | */ | 115 | */ |
116 | QPtrList<Todo> todos() { return Calendar::todos(); } | 116 | QPtrList<Todo> todos() { return Calendar::todos(); } |
117 | 117 | ||
118 | /** | 118 | /** |
119 | Add a Journal entry to calendar. | 119 | Add a Journal entry to calendar. |
120 | */ | 120 | */ |
121 | bool addJournal( Journal * ); | 121 | bool addJournal( Journal * ); |
122 | /** | 122 | /** |
123 | Remove a Journal from the calendar. | 123 | Remove a Journal from the calendar. |
124 | */ | 124 | */ |
125 | void deleteJournal( Journal * ); | 125 | void deleteJournal( Journal * ); |
126 | /** | 126 | /** |
127 | Return Journal for given date. | 127 | Return Journal for given date. |
128 | */ | 128 | */ |
129 | Journal *journal( const QDate & ); | 129 | Journal *journal( const QDate & ); |
130 | /** | 130 | /** |
131 | Return Journal with given UID. | 131 | Return Journal with given UID. |
132 | */ | 132 | */ |
133 | Journal *journal( const QString &uid ); | 133 | Journal *journal( const QString &uid ); |
134 | /** | 134 | /** |
135 | Return list of all Journals stored in calendar. | 135 | Return list of all Journals stored in calendar. |
136 | */ | 136 | */ |
137 | QPtrList<Journal> journals(); | 137 | QPtrList<Journal> journals(); |
138 | 138 | ||
139 | /** | 139 | /** |
140 | Return all alarms, which ocur in the given time interval. | 140 | Return all alarms, which ocur in the given time interval. |
141 | */ | 141 | */ |
142 | Alarm::List alarms( const QDateTime &from, const QDateTime &to ); | 142 | Alarm::List alarms( const QDateTime &from, const QDateTime &to ); |
143 | 143 | ||
144 | /** | 144 | /** |
145 | Return all alarms, which ocur before given date. | 145 | Return all alarms, which ocur before given date. |
146 | */ | 146 | */ |
147 | Alarm::List alarmsTo( const QDateTime &to ); | 147 | Alarm::List alarmsTo( const QDateTime &to ); |
148 | 148 | ||
149 | QDateTime nextAlarm( int daysTo ) ; | 149 | QDateTime nextAlarm( int daysTo ) ; |
150 | QDateTime nextAlarmEventDateTime() const; | 150 | QDateTime nextAlarmEventDateTime() const; |
151 | void checkAlarmForIncidence( Incidence *, bool deleted ) ; | 151 | void checkAlarmForIncidence( Incidence *, bool deleted ) ; |
152 | void registerAlarm(); | 152 | void registerAlarm(); |
153 | void deRegisterAlarm(); | 153 | void deRegisterAlarm(); |
154 | QString getAlarmNotification(); | 154 | QString getAlarmNotification(); |
155 | QString nextSummary() const ; | 155 | QString nextSummary() const ; |
156 | /** | 156 | /** |
157 | This method should be called whenever a Event is modified directly | 157 | This method should be called whenever a Event is modified directly |
158 | via it's pointer. It makes sure that the calendar is internally | 158 | via it's pointer. It makes sure that the calendar is internally |
159 | consistent. | 159 | consistent. |
160 | */ | 160 | */ |
161 | void update( IncidenceBase *incidence ); | 161 | void update( IncidenceBase *incidence ); |
162 | 162 | ||
163 | /** | 163 | /** |
164 | Builds and then returns a list of all events that match for the | 164 | Builds and then returns a list of all events that match for the |
165 | date specified. useful for dayView, etc. etc. | 165 | date specified. useful for dayView, etc. etc. |
166 | */ | 166 | */ |
167 | QPtrList<Event> rawEventsForDate( const QDate &date, bool sorted = false ); | 167 | QPtrList<Event> rawEventsForDate( const QDate &date, bool sorted = false ); |
168 | /** | 168 | /** |
169 | Get unfiltered events for date \a qdt. | 169 | Get unfiltered events for date \a qdt. |
170 | */ | 170 | */ |
171 | QPtrList<Event> rawEventsForDate( const QDateTime &qdt ); | 171 | QPtrList<Event> rawEventsForDate( const QDateTime &qdt ); |
172 | /** | 172 | /** |
173 | Get unfiltered events in a range of dates. If inclusive is set to true, | 173 | Get unfiltered events in a range of dates. If inclusive is set to true, |
174 | only events are returned, which are completely included in the range. | 174 | only events are returned, which are completely included in the range. |
175 | */ | 175 | */ |
176 | QPtrList<Event> rawEvents( const QDate &start, const QDate &end, | 176 | QPtrList<Event> rawEvents( const QDate &start, const QDate &end, |
177 | bool inclusive = false ); | 177 | bool inclusive = false ); |
178 | Todo *CalendarLocal::todo( int uid ); | 178 | Todo *todo( QString, int uid ); |
179 | Event *CalendarLocal::event( int uid ); | 179 | Event *event( QString,int uid ); |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | protected: | 183 | protected: |
184 | 184 | ||
185 | // Event* mNextAlarmEvent; | 185 | // Event* mNextAlarmEvent; |
186 | QString mNextSummary; | 186 | QString mNextSummary; |
187 | QString mNextAlarmEventDateTimeString; | 187 | QString mNextAlarmEventDateTimeString; |
188 | QString mLastAlarmNotificationString; | 188 | QString mLastAlarmNotificationString; |
189 | QDateTime mNextAlarmEventDateTime; | 189 | QDateTime mNextAlarmEventDateTime; |
190 | QDateTime mNextAlarmDateTime; | 190 | QDateTime mNextAlarmDateTime; |
191 | void reInitAlarmSettings(); | 191 | void reInitAlarmSettings(); |
192 | 192 | ||
193 | /** Notification function of IncidenceBase::Observer. */ | 193 | /** Notification function of IncidenceBase::Observer. */ |
194 | void incidenceUpdated( IncidenceBase *i ) { update( i ); } | 194 | void incidenceUpdated( IncidenceBase *i ) { update( i ); } |
195 | 195 | ||
196 | /** inserts an event into its "proper place" in the calendar. */ | 196 | /** inserts an event into its "proper place" in the calendar. */ |
197 | void insertEvent( Event *event ); | 197 | void insertEvent( Event *event ); |
198 | 198 | ||
199 | /** Append alarms of incidence in interval to list of alarms. */ | 199 | /** Append alarms of incidence in interval to list of alarms. */ |
200 | void appendAlarms( Alarm::List &alarms, Incidence *incidence, | 200 | void appendAlarms( Alarm::List &alarms, Incidence *incidence, |
201 | const QDateTime &from, const QDateTime &to ); | 201 | const QDateTime &from, const QDateTime &to ); |
202 | 202 | ||
203 | /** Append alarms of recurring events in interval to list of alarms. */ | 203 | /** Append alarms of recurring events in interval to list of alarms. */ |
204 | void appendRecurringAlarms( Alarm::List &alarms, Incidence *incidence, | 204 | void appendRecurringAlarms( Alarm::List &alarms, Incidence *incidence, |
205 | const QDateTime &from, const QDateTime &to ); | 205 | const QDateTime &from, const QDateTime &to ); |
206 | 206 | ||
207 | private: | 207 | private: |
208 | void init(); | 208 | void init(); |
209 | 209 | ||
210 | QPtrList<Event> mEventList; | 210 | QPtrList<Event> mEventList; |
211 | QPtrList<Todo> mTodoList; | 211 | QPtrList<Todo> mTodoList; |
212 | QPtrList<Journal> mJournalList; | 212 | QPtrList<Journal> mJournalList; |
213 | }; | 213 | }; |
214 | 214 | ||
215 | } | 215 | } |
216 | 216 | ||
217 | #endif | 217 | #endif |