• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KAlarm Library

  • kalarmcal
kaevent.h
1/*
2 * kaevent.h - represents calendar events
3 * This file is part of kalarmcal library, which provides access to KAlarm
4 * calendar data.
5 * Copyright © 2001-2013 by David Jarvie <djarvie@kde.org>
6 *
7 * This library is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Library General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15 * License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
21 */
22
23#ifndef KAEVENT_H
24#define KAEVENT_H
25
26#include "kalarmcal_export.h"
27
28#include "datetime.h"
29#include "karecurrence.h"
30#include "kacalendar.h"
31#include "repetition.h"
32
33#ifndef KALARMCAL_USE_KRESOURCES
34#include <akonadi/collection.h>
35#include <akonadi/item.h>
36#include <kcalcore/person.h>
37#include <kcalcore/calendar.h>
38#else
39#include <kcal/person.h>
40#endif
41
42#include <QtCore/QBitArray>
43#include <QColor>
44#include <QFont>
45#include <QtCore/QVector>
46#ifdef KALARMCAL_USE_KRESOURCES
47#include <QtCore/QList>
48#endif
49#include <QtCore/QSharedDataPointer>
50#include <QtCore/QMetaType>
51
52namespace KHolidays { class HolidayRegion; }
53#ifdef KALARMCAL_USE_KRESOURCES
54namespace KCal {
55 class CalendarLocal;
56 class Event;
57}
58class AlarmResource;
59#endif
60
61namespace KAlarmCal
62{
63
77class KALARMCAL_EXPORT KAAlarm
78{
79 public:
81 enum Action
82 {
83 MESSAGE,
84 FILE,
85 COMMAND,
86 EMAIL,
87 AUDIO
88 };
89
94 enum Type
95 {
96 INVALID_ALARM = 0,
97 MAIN_ALARM = 1,
98 REMINDER_ALARM = 0x02,
99 DEFERRED_ALARM = 0x04,
100 DEFERRED_REMINDER_ALARM = REMINDER_ALARM | DEFERRED_ALARM,
101 // The following values must be greater than the preceding ones, to
102 // ensure that in ordered processing they are processed afterwards.
103 AT_LOGIN_ALARM = 0x10,
104 DISPLAYING_ALARM = 0x20
105
106 // IMPORTANT: if any values are added to this list, ensure that the
107 // KAEventPrivate::AlarmType enum is adjusted similarly.
108 };
109
111 KAAlarm();
112
114 KAAlarm(const KAAlarm& other);
115
117 ~KAAlarm();
118
120 KAAlarm& operator=(const KAAlarm& other);
121
123 Action action() const;
124
126 bool isValid() const;
127
129 Type type() const;
130
137 DateTime dateTime(bool withRepeats = false) const;
138
143 QDate date() const;
144
151 QTime time() const;
152
154 void setTime(const DateTime& dt);
156 void setTime(const KDateTime& dt);
157
159 bool repeatAtLogin() const;
160
162 bool isReminder() const;
163
165 bool deferred() const;
166
171 bool timedDeferral() const;
172
176 static const char* debugType(Type);
177
178 private:
179 //@cond PRIVATE
180 class Private;
181 Private* const d;
182 //@endcond
183
184 friend class KAEvent;
185 friend class KAEventPrivate;
186};
187
188class KAEventPrivate;
189
210class KALARMCAL_EXPORT KAEvent
211{
212 public:
214 typedef QVector<KAEvent*> List;
215
217 enum Flag
218 {
219 BEEP = 0x02,
220 REPEAT_AT_LOGIN = 0x04,
221 ANY_TIME = 0x08,
222 CONFIRM_ACK = 0x10,
223 EMAIL_BCC = 0x20,
224 DEFAULT_FONT = 0x40,
225 REPEAT_SOUND = 0x80,
226 DISABLED = 0x100,
227 AUTO_CLOSE = 0x200,
228 SCRIPT = 0x400,
229 EXEC_IN_XTERM = 0x800,
230 SPEAK = 0x1000,
231 COPY_KORGANIZER = 0x2000,
232 EXCL_HOLIDAYS = 0x4000,
233 WORK_TIME_ONLY = 0x8000,
234 DISPLAY_COMMAND = 0x10000,
235 REMINDER_ONCE = 0x20000
236
237 // IMPORTANT: if any values are added to this list, ensure that the
238 // additional enum values in KAEventPrivate are also adjusted.
239 };
240 Q_DECLARE_FLAGS(Flags, Flag)
241
242
244 enum Actions
245 {
246 ACT_NONE = 0,
247 ACT_DISPLAY = 0x01,
248 ACT_COMMAND = 0x02,
249 ACT_EMAIL = 0x04,
250 ACT_AUDIO = 0x08,
251 ACT_DISPLAY_COMMAND = ACT_DISPLAY | ACT_COMMAND,
252 ACT_ALL = ACT_DISPLAY | ACT_COMMAND | ACT_EMAIL | ACT_AUDIO
253 };
254
256 enum SubAction
257 {
258 MESSAGE = KAAlarm::MESSAGE,
259 FILE = KAAlarm::FILE,
260 COMMAND = KAAlarm::COMMAND,
261 EMAIL = KAAlarm::EMAIL,
262 AUDIO = KAAlarm::AUDIO
263 };
264
266 enum OccurType
267 {
268 NO_OCCURRENCE = 0,
269 FIRST_OR_ONLY_OCCURRENCE = 0x01,
270 RECURRENCE_DATE = 0x02,
271 RECURRENCE_DATE_TIME = 0x03,
272 LAST_RECURRENCE = 0x04,
273 OCCURRENCE_REPEAT = 0x10,
274 FIRST_OR_ONLY_OCCURRENCE_REPEAT = OCCURRENCE_REPEAT | FIRST_OR_ONLY_OCCURRENCE,
275 RECURRENCE_DATE_REPEAT = OCCURRENCE_REPEAT | RECURRENCE_DATE,
276 RECURRENCE_DATE_TIME_REPEAT = OCCURRENCE_REPEAT | RECURRENCE_DATE_TIME,
277 LAST_RECURRENCE_REPEAT = OCCURRENCE_REPEAT | LAST_RECURRENCE
278 };
279
281 enum OccurOption
282 {
283 IGNORE_REPETITION,
284 RETURN_REPETITION,
285 ALLOW_FOR_REPETITION
286 };
287
289 enum DeferLimitType
290 {
291 LIMIT_NONE,
292 LIMIT_MAIN,
293 LIMIT_RECURRENCE,
294 LIMIT_REPETITION,
295 LIMIT_REMINDER
296 };
297
299 enum TriggerType
300 {
301 ALL_TRIGGER,
302 MAIN_TRIGGER,
303 WORK_TRIGGER,
304 ALL_WORK_TRIGGER,
305 DISPLAY_TRIGGER
306 };
307
309 enum CmdErrType
310 {
311 CMD_NO_ERROR = 0,
312 CMD_ERROR = 0x01,
313 CMD_ERROR_PRE = 0x02,
314 CMD_ERROR_POST = 0x04,
315 CMD_ERROR_PRE_POST = CMD_ERROR_PRE | CMD_ERROR_POST
316 };
317
321 enum ExtraActionOption
322 {
323 CancelOnPreActError = 0x01,
324 DontShowPreActError = 0x02,
325 ExecPreActOnDeferral = 0x04
326 };
327 Q_DECLARE_FLAGS(ExtraActionOptions, ExtraActionOption)
328
329
330 enum UidAction
331 {
332 UID_IGNORE,
333 UID_CHECK,
334 UID_SET
335 };
336
338 KAEvent();
339
358 KAEvent(const KDateTime&, const QString& text, const QColor& bg, const QColor& fg,
359 const QFont& f, SubAction, int lateCancel, Flags flags, bool changesPending = false);
360#ifndef KALARMCAL_USE_KRESOURCES
362 explicit KAEvent(const KCalCore::Event::Ptr&);
363
365 void set(const KCalCore::Event::Ptr&);
366#else
368 explicit KAEvent(const KCal::Event*);
369
371 void set(const KCal::Event*);
372#endif
373
374 KAEvent(const KAEvent& other);
375 ~KAEvent();
376
377 KAEvent& operator=(const KAEvent& other);
378
396 void set(const KDateTime& dt, const QString& text, const QColor& bg,
397 const QColor& fg, const QFont& font, SubAction action, int lateCancel,
398 Flags flags, bool changesPending = false);
399
400#ifndef KALARMCAL_USE_KRESOURCES
410 bool updateKCalEvent(const KCalCore::Event::Ptr& event, UidAction u, bool setCustomProperties = true) const;
411#else
416 bool updateKCalEvent(KCal::Event* event, UidAction u) const;
417#endif
418
420 bool isValid() const;
421
423 void setEnabled(bool enable);
425 bool enabled() const;
426
427#ifndef KALARMCAL_USE_KRESOURCES
429 void setReadOnly(bool ro);
431 bool isReadOnly() const;
432#endif
433
437 void setArchive();
439 bool toBeArchived() const;
440
442 bool mainExpired() const;
447 bool expired() const;
448
450 Flags flags() const;
451
453 void setCategory(CalEvent::Type type);
454
456 CalEvent::Type category() const;
457
461 void setEventId(const QString& id);
462
466 QString id() const;
467
469 void incrementRevision();
471 int revision() const;
472
473#ifndef KALARMCAL_USE_KRESOURCES
475 void setCollectionId(Akonadi::Collection::Id id);
483 void setCollectionId_const(Akonadi::Collection::Id id) const;
485 Akonadi::Collection::Id collectionId() const;
486
488 void setItemId(Akonadi::Item::Id id);
490 Akonadi::Item::Id itemId() const;
491
497 bool setItemPayload(Akonadi::Item&, const QStringList& collectionMimeTypes) const;
498
500 void setCompatibility(KACalendar::Compat c);
502 KACalendar::Compat compatibility() const;
503
505 QMap<QByteArray, QString> customProperties() const;
506#else
511 void setResource(AlarmResource* r);
512
516 AlarmResource* resource() const;
517#endif
518
525 SubAction actionSubType() const;
526
532 Actions actionTypes() const;
533
539 void setLateCancel(int minutes);
540
546 int lateCancel() const;
547
554 void setAutoClose(bool autoclose);
555
563 bool autoClose() const;
564
565 void setKMailSerialNumber(unsigned long n);
566 unsigned long kmailSerialNumber() const;
567
572 QString cleanText() const;
576 QString message() const;
579 QString displayMessage() const;
582 QString fileName() const;
583
585 QColor bgColour() const;
587 QColor fgColour() const;
588
590 static void setDefaultFont(const QFont& font);
593 bool useDefaultFont() const;
595 QFont font() const;
596
599 QString command() const;
601 bool commandScript() const;
603 bool commandXterm() const;
605 bool commandDisplay() const;
606#ifndef KALARMCAL_USE_KRESOURCES
608 void setCommandError(CmdErrType error) const;
609#else
613 void setCommandError(CmdErrType error, bool writeConfig = true) const;
617 void setCommandError(const QString& configString);
619 static QString commandErrorConfigGroup();
620#endif
622 CmdErrType commandError() const;
623
627 void setLogFile(const QString& logfile);
630 QString logFile() const;
631
633 bool confirmAck() const;
634
636 bool copyToKOrganizer() const;
637
639#ifndef KALARMCAL_USE_KRESOURCES
640 void setEmail(uint from, const KCalCore::Person::List&, const QString& subject,
641 const QStringList& attachments);
642#else
643 void setEmail(uint from, const QList<KCal::Person>&, const QString& subject,
644 const QStringList& attachments);
645#endif
646
650 QString emailMessage() const;
651
655 uint emailFromId() const;
656
658#ifndef KALARMCAL_USE_KRESOURCES
659 KCalCore::Person::List emailAddressees() const;
660#else
661 QList<KCal::Person> emailAddressees() const;
662#endif
663
665 QStringList emailAddresses() const;
666
670 QString emailAddresses(const QString& sep) const;
671
675#ifndef KALARMCAL_USE_KRESOURCES
676 static QString joinEmailAddresses(const KCalCore::Person::List& addresses, const QString& sep);
677#else
678 static QString joinEmailAddresses(const QList<KCal::Person>& addresses, const QString& sep);
679#endif
680
682 QStringList emailPureAddresses() const;
683
687 QString emailPureAddresses(const QString& sep) const;
688
690 QString emailSubject() const;
691
693 QStringList emailAttachments() const;
694
698 QString emailAttachments(const QString& sep) const;
699
701 bool emailBcc() const;
702
712 void setAudioFile(const QString& filename, float volume, float fadeVolume,
713 int fadeSeconds, int repeatPause = -1, bool allowEmptyFile = false);
714
718 QString audioFile() const;
719
724 float soundVolume() const;
725
730 float fadeVolume() const;
731
735 int fadeSeconds() const;
736
738 bool repeatSound() const;
739
743 int repeatSoundPause() const;
744
746 bool beep() const;
747
749 bool speak() const;
750
757 void setTemplate(const QString& name, int afterTime = -1);
758
762 bool isTemplate() const;
763
768 QString templateName() const;
769
774 bool usingDefaultTime() const;
775
783 int templateAfterTime() const;
784
792 void setActions(const QString& pre, const QString& post, ExtraActionOptions options);
793
802 void setActions(const QString& pre, const QString& post, bool cancelOnError, bool dontShowError);
803
805 QString preAction() const;
806
810 QString postAction() const;
811
816 ExtraActionOptions extraActionOptions() const;
817
822 bool cancelOnPreActionError() const;
823
829 bool dontShowPreActionError() const;
830
838 void setReminder(int minutes, bool onceOnly);
839
845 void activateReminderAfter(const DateTime& mainAlarmTime);
846
853 int reminderMinutes() const;
858 bool reminderActive() const;
862 bool reminderOnceOnly() const;
864 bool reminderDeferral() const;
865
875 void defer(const DateTime& dt, bool reminder, bool adjustRecurrence = false);
876
880 void cancelDefer();
886 void setDeferDefaultMinutes(int minutes, bool dateOnly = false);
890 bool deferred() const;
895 DateTime deferDateTime() const;
896
902 DateTime deferralLimit(DeferLimitType* limitType = 0) const;
903
907 int deferDefaultMinutes() const;
909 bool deferDefaultDateOnly() const;
910
915 DateTime startDateTime() const;
920 void setTime(const KDateTime& dt);
925 DateTime mainDateTime(bool withRepeats = false) const;
926
929 QTime mainTime() const;
935 DateTime mainEndRepeatTime() const;
936
941 static void setStartOfDay(const QTime&);
942
948 static void adjustStartOfDay(const KAEvent::List& events);
949
954 DateTime nextTrigger(TriggerType type) const;
955
959 void setCreatedDateTime(const KDateTime& dt);
963 KDateTime createdDateTime() const;
964
970 void setRepeatAtLogin(bool repeat);
971
977 bool repeatAtLogin(bool includeArchived = false) const;
978
985 void setExcludeHolidays(bool exclude);
989 bool holidaysExcluded() const;
990
1001 static void setHolidays(const KHolidays::HolidayRegion& region);
1002
1008 void setWorkTimeOnly(bool wto);
1012 bool workTimeOnly() const;
1013
1016 bool isWorkingTime(const KDateTime& dt) const;
1017
1024 static void setWorkTime(const QBitArray& days, const QTime& start, const QTime& end);
1025
1029 void setNoRecur();
1030
1035 void setRecurrence(const KARecurrence& r);
1036
1045 bool setRecurMinutely(int freq, int count, const KDateTime& end);
1046
1056 bool setRecurDaily(int freq, const QBitArray& days, int count, const QDate& end);
1057
1067 bool setRecurWeekly(int freq, const QBitArray& days, int count, const QDate& end);
1068
1078 bool setRecurMonthlyByDate(int freq, const QVector<int>& days, int count, const QDate& end);
1079
1082 struct MonthPos
1083 {
1084 MonthPos() : days(7) {} //krazy:exclude=inline (need default constructor)
1085 int weeknum;
1086 QBitArray days;
1087 };
1088
1099 bool setRecurMonthlyByPos(int freq, const QVector<MonthPos>& pos, int count, const QDate& end);
1100
1114 bool setRecurAnnualByDate(int freq, const QVector<int>& months, int day, KARecurrence::Feb29Type, int count, const QDate& end);
1115
1127 bool setRecurAnnualByPos(int freq, const QVector<MonthPos>& pos, const QVector<int>& months, int count, const QDate& end);
1128
1132 bool recurs() const;
1137 KARecurrence::Type recurType() const;
1142 KARecurrence* recurrence() const;
1143
1148 int recurInterval() const;
1149
1153#ifndef KALARMCAL_USE_KRESOURCES
1154 KCalCore::Duration longestRecurrenceInterval() const;
1155#else
1156 KCal::Duration longestRecurrenceInterval() const;
1157#endif
1158
1163 void setFirstRecurrence();
1164
1166 QString recurrenceText(bool brief = false) const;
1167
1174 bool setRepetition(const Repetition& r);
1175
1179 Repetition repetition() const;
1180
1185 int nextRepetition() const;
1186
1188 QString repetitionText(bool brief = false) const;
1189
1196 bool occursAfter(const KDateTime& preDateTime, bool includeRepetitions) const;
1197
1206 OccurType setNextOccurrence(const KDateTime& preDateTime);
1207
1214 OccurType nextOccurrence(const KDateTime& preDateTime, DateTime& result, OccurOption option = IGNORE_REPETITION) const;
1215
1225 OccurType previousOccurrence(const KDateTime& afterDateTime, DateTime& result, bool includeRepetitions = false) const;
1226
1241#ifndef KALARMCAL_USE_KRESOURCES
1242 bool setDisplaying(const KAEvent& event, KAAlarm::Type type, Akonadi::Collection::Id colId, const KDateTime& repeatAtLoginTime, bool showEdit, bool showDefer);
1243#else
1244 bool setDisplaying(const KAEvent& event, KAAlarm::Type type, const QString& resourceID, const KDateTime& repeatAtLoginTime, bool showEdit, bool showDefer);
1245#endif
1246
1247#ifndef KALARMCAL_USE_KRESOURCES
1257 void reinstateFromDisplaying(const KCalCore::Event::Ptr& event, Akonadi::Collection::Id& colId, bool& showEdit, bool& showDefer);
1258#else
1259 void reinstateFromDisplaying(const KCal::Event* event, QString& resourceID, bool& showEdit, bool& showDefer);
1260#endif
1261
1268 KAAlarm convertDisplayingAlarm() const;
1269
1271 bool displaying() const;
1272
1277 KAAlarm alarm(KAAlarm::Type type) const;
1278
1286 KAAlarm firstAlarm() const;
1287
1291 KAAlarm nextAlarm(const KAAlarm& previousAlarm) const;
1295 KAAlarm nextAlarm(KAAlarm::Type previousType) const;
1296
1304 int alarmCount() const;
1305
1310 void removeExpiredAlarm(KAAlarm::Type type);
1311
1318 void startChanges();
1322 void endChanges();
1323
1328 static int currentCalendarVersion();
1329
1334 static QByteArray currentCalendarVersionString();
1335
1348#ifndef KALARMCAL_USE_KRESOURCES
1349 static bool convertKCalEvents(const KCalCore::Calendar::Ptr&, int calendarVersion);
1350#else
1351 static bool convertKCalEvents(KCal::CalendarLocal&, int calendarVersion);
1352#endif
1353
1354#ifndef KALARMCAL_USE_KRESOURCES
1356 static List ptrList(QVector<KAEvent>& events);
1357#endif
1358
1360 void dumpDebug() const;
1361
1362 private:
1363 QSharedDataPointer<KAEventPrivate> d;
1364};
1365
1366} // namespace KAlarmCal
1367
1368Q_DECLARE_OPERATORS_FOR_FLAGS(KAlarmCal::KAEvent::Flags)
1369Q_DECLARE_METATYPE(KAlarmCal::KAEvent)
1370
1371#endif // KAEVENT_H
1372
1373// vim: et sw=4:
calendar.h
Akonadi::Entity::Id
qint64 Id
KAlarmCal::DateTime
As KDateTime, but with a configurable start-of-day time for date-only values.
Definition datetime.h:43
KAlarmCal::KAAlarm
KAAlarm represents individual alarms within a KAEvent.
Definition kaevent.h:78
KAlarmCal::KAAlarm::Action
Action
The basic KAAlarm action types.
Definition kaevent.h:82
KAlarmCal::KAAlarm::EMAIL
@ EMAIL
KCal::Alarm::Email type: send an email.
Definition kaevent.h:86
KAlarmCal::KAAlarm::MESSAGE
@ MESSAGE
KCal::Alarm::Display type: display a text message.
Definition kaevent.h:83
KAlarmCal::KAAlarm::FILE
@ FILE
KCal::Alarm::Display type: display a file (URL given by the alarm text)
Definition kaevent.h:84
KAlarmCal::KAAlarm::COMMAND
@ COMMAND
KCal::Alarm::Procedure type: execute a shell command.
Definition kaevent.h:85
KAlarmCal::KAAlarm::Type
Type
Alarm types.
Definition kaevent.h:95
KAlarmCal::KAEvent
KAEvent represents a KAlarm event.
Definition kaevent.h:211
KAlarmCal::KAEvent::OccurType
OccurType
What type of occurrence is due.
Definition kaevent.h:267
KAlarmCal::KAEvent::List
QVector< KAEvent * > List
A list of pointers to KAEvent objects.
Definition kaevent.h:214
KAlarmCal::KAEvent::SubAction
SubAction
The sub-action type for the event's main alarm.
Definition kaevent.h:257
KAlarmCal::KAEvent::Actions
Actions
The basic action type(s) for the event's main alarm.
Definition kaevent.h:245
KAlarmCal::KAEvent::OccurOption
OccurOption
How to treat sub-repetitions in nextOccurrence().
Definition kaevent.h:282
KAlarmCal::KAEvent::RETURN_REPETITION
@ RETURN_REPETITION
return a sub-repetition if it's the next occurrence
Definition kaevent.h:284
KAlarmCal::KAEvent::IGNORE_REPETITION
@ IGNORE_REPETITION
check for recurrences only, ignore sub-repetitions
Definition kaevent.h:283
KAlarmCal::KAEvent::UidAction
UidAction
How to deal with the event UID in updateKCalEvent().
Definition kaevent.h:331
KAlarmCal::KAEvent::UID_CHECK
@ UID_CHECK
verify that the KCal::Event UID is already the same as the KAEvent ID, if the latter is non-empty
Definition kaevent.h:333
KAlarmCal::KAEvent::UID_IGNORE
@ UID_IGNORE
leave KCal::Event UID unchanged
Definition kaevent.h:332
KAlarmCal::KAEvent::Flag
Flag
Flags for use in D-Bus calls, etc.
Definition kaevent.h:218
KAlarmCal::KAEvent::CmdErrType
CmdErrType
Command execution error type for last time the alarm was triggered.
Definition kaevent.h:310
KAlarmCal::KAEvent::fadeVolume
float fadeVolume() const
Return the initial volume which will fade to the final volume.
Definition kaevent.cpp:2322
KAlarmCal::KAEvent::DeferLimitType
DeferLimitType
What type of occurrence currently limits how long the alarm can be deferred.
Definition kaevent.h:290
KAlarmCal::KAEvent::LIMIT_MAIN
@ LIMIT_MAIN
the main alarm
Definition kaevent.h:292
KAlarmCal::KAEvent::LIMIT_RECURRENCE
@ LIMIT_RECURRENCE
a recurrence
Definition kaevent.h:293
KAlarmCal::KAEvent::LIMIT_NONE
@ LIMIT_NONE
there is no limit
Definition kaevent.h:291
KAlarmCal::KAEvent::LIMIT_REPETITION
@ LIMIT_REPETITION
a sub-repetition
Definition kaevent.h:294
KAlarmCal::KAEvent::ExtraActionOption
ExtraActionOption
Options for pre- or post-alarm actions.
Definition kaevent.h:322
KAlarmCal::KAEvent::TriggerType
TriggerType
Alarm trigger type.
Definition kaevent.h:300
KAlarmCal::KAEvent::MAIN_TRIGGER
@ MAIN_TRIGGER
next trigger, excluding reminders, ignoring working hours & holidays
Definition kaevent.h:302
KAlarmCal::KAEvent::WORK_TRIGGER
@ WORK_TRIGGER
next main working time trigger, excluding reminders
Definition kaevent.h:303
KAlarmCal::KAEvent::ALL_TRIGGER
@ ALL_TRIGGER
next trigger, including reminders, ignoring working hours & holidays
Definition kaevent.h:301
KAlarmCal::KAEvent::ALL_WORK_TRIGGER
@ ALL_WORK_TRIGGER
next actual working time trigger, including reminders
Definition kaevent.h:304
KAlarmCal::KAEvent::KAEvent
KAEvent()
Default constructor which creates an invalid event.
KAlarmCal::KARecurrence
Represents recurrences for KAlarm.
Definition karecurrence.h:62
KAlarmCal::KARecurrence::Type
Type
The recurrence's period type.
Definition karecurrence.h:68
KAlarmCal::KARecurrence::Feb29Type
Feb29Type
When annual February 29th recurrences should occur in non-leap years.
Definition karecurrence.h:80
KAlarmCal::Repetition
Represents a sub-repetition, defined by interval and repeat count.
Definition repetition.h:48
KCalCore::Calendar::Ptr
QSharedPointer< Calendar > Ptr
KCalCore::Duration
KCalCore::Event::Ptr
QSharedPointer< Event > Ptr
KCalCore::Person::List
QVector< Ptr > List
KAlarmCal::CalEvent::Type
Type
The category of an event, indicated by the middle part of its UID.
Definition kacalendar.h:156
KHolidays
person.h
KAlarmCal::KAEvent::MonthPos
Holds days of the week combined with a week number in the month, used to specify some monthly or annu...
Definition kaevent.h:1083
KAlarmCal::KAEvent::MonthPos::weeknum
int weeknum
Week in month, or < 0 to count from end of month.
Definition kaevent.h:1085
KAlarmCal::KAEvent::MonthPos::days
QBitArray days
Days in week, element 0 = Monday.
Definition kaevent.h:1086
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KAlarm Library

Skip menu "KAlarm Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal