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

KAlarm Library

  • sources
  • kde-4.12
  • kdepimlibs
  • 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 
52 namespace KHolidays { class HolidayRegion; }
53 #ifdef KALARMCAL_USE_KRESOURCES
54 namespace KCal {
55  class CalendarLocal;
56  class Event;
57 }
58 class AlarmResource;
59 #endif
60 class AlarmData;
61 
62 namespace KAlarmCal
63 {
64 
78 class KALARMCAL_EXPORT KAAlarm
79 {
80  public:
82  enum Action
83  {
84  MESSAGE,
85  FILE,
86  COMMAND,
87  EMAIL,
88  AUDIO
89  };
90 
95  enum Type
96  {
97  INVALID_ALARM = 0,
98  MAIN_ALARM = 1,
99  REMINDER_ALARM = 0x02,
100  DEFERRED_ALARM = 0x04,
101  DEFERRED_REMINDER_ALARM = REMINDER_ALARM | DEFERRED_ALARM,
102  // The following values must be greater than the preceding ones, to
103  // ensure that in ordered processing they are processed afterwards.
104  AT_LOGIN_ALARM = 0x10,
105  DISPLAYING_ALARM = 0x20
106 
107  // IMPORTANT: if any values are added to this list, ensure that the
108  // KAEventPrivate::AlarmType enum is adjusted similarly.
109  };
110 
112  KAAlarm();
113 
115  KAAlarm(const KAAlarm& other);
116 
118  ~KAAlarm();
119 
121  KAAlarm& operator=(const KAAlarm& other);
122 
124  Action action() const;
125 
127  bool isValid() const;
128 
130  Type type() const;
131 
138  DateTime dateTime(bool withRepeats = false) const;
139 
144  QDate date() const;
145 
152  QTime time() const;
153 
155  void setTime(const DateTime& dt);
157  void setTime(const KDateTime& dt);
158 
160  bool repeatAtLogin() const;
161 
163  bool isReminder() const;
164 
166  bool deferred() const;
167 
172  bool timedDeferral() const;
173 
177  static const char* debugType(Type);
178 
179  private:
180  //@cond PRIVATE
181  class Private;
182  Private* const d;
183  //@endcond
184 
185  friend class KAEvent;
186  friend class KAEventPrivate;
187 };
188 
189 class KAEventPrivate;
190 
211 class KALARMCAL_EXPORT KAEvent
212 {
213  public:
215  typedef QVector<KAEvent*> List;
216 
218  enum Flag
219  {
220  BEEP = 0x02,
221  REPEAT_AT_LOGIN = 0x04,
222  ANY_TIME = 0x08,
223  CONFIRM_ACK = 0x10,
224  EMAIL_BCC = 0x20,
225  DEFAULT_FONT = 0x40,
226  REPEAT_SOUND = 0x80,
227  DISABLED = 0x100,
228  AUTO_CLOSE = 0x200,
229  SCRIPT = 0x400,
230  EXEC_IN_XTERM = 0x800,
231  SPEAK = 0x1000,
232  COPY_KORGANIZER = 0x2000,
233  EXCL_HOLIDAYS = 0x4000,
234  WORK_TIME_ONLY = 0x8000,
235  DISPLAY_COMMAND = 0x10000,
236  REMINDER_ONCE = 0x20000
237 
238  // IMPORTANT: if any values are added to this list, ensure that the
239  // additional enum values in KAEventPrivate are also adjusted.
240  };
241  Q_DECLARE_FLAGS(Flags, Flag)
242 
243 
245  enum Actions
246  {
247  ACT_NONE = 0,
248  ACT_DISPLAY = 0x01,
249  ACT_COMMAND = 0x02,
250  ACT_EMAIL = 0x04,
251  ACT_AUDIO = 0x08,
252  ACT_DISPLAY_COMMAND = ACT_DISPLAY | ACT_COMMAND,
253  ACT_ALL = ACT_DISPLAY | ACT_COMMAND | ACT_EMAIL | ACT_AUDIO
254  };
255 
257  enum SubAction
258  {
259  MESSAGE = KAAlarm::MESSAGE,
260  FILE = KAAlarm::FILE,
261  COMMAND = KAAlarm::COMMAND,
262  EMAIL = KAAlarm::EMAIL,
263  AUDIO = KAAlarm::AUDIO
264  };
265 
267  enum OccurType
268  {
269  NO_OCCURRENCE = 0,
270  FIRST_OR_ONLY_OCCURRENCE = 0x01,
271  RECURRENCE_DATE = 0x02,
272  RECURRENCE_DATE_TIME = 0x03,
273  LAST_RECURRENCE = 0x04,
274  OCCURRENCE_REPEAT = 0x10,
275  FIRST_OR_ONLY_OCCURRENCE_REPEAT = OCCURRENCE_REPEAT | FIRST_OR_ONLY_OCCURRENCE,
276  RECURRENCE_DATE_REPEAT = OCCURRENCE_REPEAT | RECURRENCE_DATE,
277  RECURRENCE_DATE_TIME_REPEAT = OCCURRENCE_REPEAT | RECURRENCE_DATE_TIME,
278  LAST_RECURRENCE_REPEAT = OCCURRENCE_REPEAT | LAST_RECURRENCE
279  };
280 
282  enum OccurOption
283  {
284  IGNORE_REPETITION,
285  RETURN_REPETITION,
286  ALLOW_FOR_REPETITION
287  };
288 
290  enum DeferLimitType
291  {
292  LIMIT_NONE,
293  LIMIT_MAIN,
294  LIMIT_RECURRENCE,
295  LIMIT_REPETITION,
296  LIMIT_REMINDER
297  };
298 
300  enum TriggerType
301  {
302  ALL_TRIGGER,
303  MAIN_TRIGGER,
304  WORK_TRIGGER,
305  ALL_WORK_TRIGGER,
306  DISPLAY_TRIGGER
307  };
308 
310  enum CmdErrType
311  {
312  CMD_NO_ERROR = 0,
313  CMD_ERROR = 0x01,
314  CMD_ERROR_PRE = 0x02,
315  CMD_ERROR_POST = 0x04,
316  CMD_ERROR_PRE_POST = CMD_ERROR_PRE | CMD_ERROR_POST
317  };
318 
322  enum ExtraActionOption
323  {
324  CancelOnPreActError = 0x01,
325  DontShowPreActError = 0x02,
326  ExecPreActOnDeferral = 0x04
327  };
328  Q_DECLARE_FLAGS(ExtraActionOptions, ExtraActionOption)
329 
330 
331  enum UidAction
332  {
333  UID_IGNORE,
334  UID_CHECK,
335  UID_SET
336  };
337 
339  KAEvent();
340 
359  KAEvent(const KDateTime&, const QString& text, const QColor& bg, const QColor& fg,
360  const QFont& f, SubAction, int lateCancel, Flags flags, bool changesPending = false);
361 #ifndef KALARMCAL_USE_KRESOURCES
362 
363  explicit KAEvent(const KCalCore::Event::Ptr&);
364 
366  void set(const KCalCore::Event::Ptr&);
367 #else
368 
369  explicit KAEvent(const KCal::Event*);
370 
372  void set(const KCal::Event*);
373 #endif
374 
375  KAEvent(const KAEvent& other);
376  ~KAEvent();
377 
378  KAEvent& operator=(const KAEvent& other);
379 
397  void set(const KDateTime& dt, const QString& text, const QColor& bg,
398  const QColor& fg, const QFont& font, SubAction action, int lateCancel,
399  Flags flags, bool changesPending = false);
400 
401 #ifndef KALARMCAL_USE_KRESOURCES
402 
411  bool updateKCalEvent(const KCalCore::Event::Ptr& event, UidAction u, bool setCustomProperties = true) const;
412 #else
413 
417  bool updateKCalEvent(KCal::Event* event, UidAction u) const;
418 #endif
419 
421  bool isValid() const;
422 
424  void setEnabled(bool enable);
426  bool enabled() const;
427 
428 #ifndef KALARMCAL_USE_KRESOURCES
429 
430  void setReadOnly(bool ro);
432  bool isReadOnly() const;
433 #endif
434 
438  void setArchive();
440  bool toBeArchived() const;
441 
443  bool mainExpired() const;
448  bool expired() const;
449 
451  Flags flags() const;
452 
454  void setCategory(CalEvent::Type type);
455 
457  CalEvent::Type category() const;
458 
462  void setEventId(const QString& id);
463 
467  QString id() const;
468 
470  void incrementRevision();
472  int revision() const;
473 
474 #ifndef KALARMCAL_USE_KRESOURCES
475 
476  void setCollectionId(Akonadi::Collection::Id id);
484  void setCollectionId_const(Akonadi::Collection::Id id) const;
486  Akonadi::Collection::Id collectionId() const;
487 
489  void setItemId(Akonadi::Item::Id id);
491  Akonadi::Item::Id itemId() const;
492 
498  bool setItemPayload(Akonadi::Item&, const QStringList& collectionMimeTypes) const;
499 
501  void setCompatibility(KACalendar::Compat c);
503  KACalendar::Compat compatibility() const;
504 
506  QMap<QByteArray, QString> customProperties() const;
507 #else
508 
512  void setResource(AlarmResource* r);
513 
517  AlarmResource* resource() const;
518 #endif
519 
526  SubAction actionSubType() const;
527 
533  Actions actionTypes() const;
534 
540  void setLateCancel(int minutes);
541 
547  int lateCancel() const;
548 
555  void setAutoClose(bool autoclose);
556 
564  bool autoClose() const;
565 
566  void setKMailSerialNumber(unsigned long n);
567  unsigned long kmailSerialNumber() const;
568 
573  QString cleanText() const;
577  QString message() const;
580  QString displayMessage() const;
583  QString fileName() const;
584 
586  QColor bgColour() const;
588  QColor fgColour() const;
589 
591  static void setDefaultFont(const QFont& font);
594  bool useDefaultFont() const;
596  QFont font() const;
597 
600  QString command() const;
602  bool commandScript() const;
604  bool commandXterm() const;
606  bool commandDisplay() const;
607 #ifndef KALARMCAL_USE_KRESOURCES
608 
609  void setCommandError(CmdErrType error) const;
610 #else
611 
614  void setCommandError(CmdErrType error, bool writeConfig = true) const;
618  void setCommandError(const QString& configString);
620  static QString commandErrorConfigGroup();
621 #endif
622 
623  CmdErrType commandError() const;
624 
628  void setLogFile(const QString& logfile);
631  QString logFile() const;
632 
634  bool confirmAck() const;
635 
637  bool copyToKOrganizer() const;
638 
640 #ifndef KALARMCAL_USE_KRESOURCES
641  void setEmail(uint from, const KCalCore::Person::List&, const QString& subject,
642  const QStringList& attachments);
643 #else
644  void setEmail(uint from, const QList<KCal::Person>&, const QString& subject,
645  const QStringList& attachments);
646 #endif
647 
651  QString emailMessage() const;
652 
656  uint emailFromId() const;
657 
659 #ifndef KALARMCAL_USE_KRESOURCES
660  KCalCore::Person::List emailAddressees() const;
661 #else
662  QList<KCal::Person> emailAddressees() const;
663 #endif
664 
666  QStringList emailAddresses() const;
667 
671  QString emailAddresses(const QString& sep) const;
672 
676 #ifndef KALARMCAL_USE_KRESOURCES
677  static QString joinEmailAddresses(const KCalCore::Person::List& addresses, const QString& sep);
678 #else
679  static QString joinEmailAddresses(const QList<KCal::Person>& addresses, const QString& sep);
680 #endif
681 
683  QStringList emailPureAddresses() const;
684 
688  QString emailPureAddresses(const QString& sep) const;
689 
691  QString emailSubject() const;
692 
694  QStringList emailAttachments() const;
695 
699  QString emailAttachments(const QString& sep) const;
700 
702  bool emailBcc() const;
703 
713  void setAudioFile(const QString& filename, float volume, float fadeVolume,
714  int fadeSeconds, int repeatPause = -1, bool allowEmptyFile = false);
715 
719  QString audioFile() const;
720 
725  float soundVolume() const;
726 
731  float fadeVolume() const;
732 
736  int fadeSeconds() const;
737 
739  bool repeatSound() const;
740 
744  int repeatSoundPause() const;
745 
747  bool beep() const;
748 
750  bool speak() const;
751 
758  void setTemplate(const QString& name, int afterTime = -1);
759 
763  bool isTemplate() const;
764 
769  QString templateName() const;
770 
775  bool usingDefaultTime() const;
776 
784  int templateAfterTime() const;
785 
793  void setActions(const QString& pre, const QString& post, ExtraActionOptions options);
794 
803  void setActions(const QString& pre, const QString& post, bool cancelOnError, bool dontShowError);
804 
806  QString preAction() const;
807 
811  QString postAction() const;
812 
817  ExtraActionOptions extraActionOptions() const;
818 
823  bool cancelOnPreActionError() const;
824 
830  bool dontShowPreActionError() const;
831 
839  void setReminder(int minutes, bool onceOnly);
840 
846  void activateReminderAfter(const DateTime& mainAlarmTime);
847 
854  int reminderMinutes() const;
859  bool reminderActive() const;
863  bool reminderOnceOnly() const;
865  bool reminderDeferral() const;
866 
876  void defer(const DateTime& dt, bool reminder, bool adjustRecurrence = false);
877 
881  void cancelDefer();
887  void setDeferDefaultMinutes(int minutes, bool dateOnly = false);
891  bool deferred() const;
896  DateTime deferDateTime() const;
897 
903  DateTime deferralLimit(DeferLimitType* limitType = 0) const;
904 
908  int deferDefaultMinutes() const;
910  bool deferDefaultDateOnly() const;
911 
916  DateTime startDateTime() const;
921  void setTime(const KDateTime& dt);
926  DateTime mainDateTime(bool withRepeats = false) const;
927 
930  QTime mainTime() const;
936  DateTime mainEndRepeatTime() const;
937 
942  static void setStartOfDay(const QTime&);
943 
949  static void adjustStartOfDay(const KAEvent::List& events);
950 
955  DateTime nextTrigger(TriggerType type) const;
956 
960  void setCreatedDateTime(const KDateTime& dt);
964  KDateTime createdDateTime() const;
965 
971  void setRepeatAtLogin(bool repeat);
972 
978  bool repeatAtLogin(bool includeArchived = false) const;
979 
986  void setExcludeHolidays(bool exclude);
990  bool holidaysExcluded() const;
991 
1002  static void setHolidays(const KHolidays::HolidayRegion& region);
1003 
1009  void setWorkTimeOnly(bool wto);
1013  bool workTimeOnly() const;
1014 
1017  bool isWorkingTime(const KDateTime& dt) const;
1018 
1025  static void setWorkTime(const QBitArray& days, const QTime& start, const QTime& end);
1026 
1030  void setNoRecur();
1031 
1036  void setRecurrence(const KARecurrence& r);
1037 
1046  bool setRecurMinutely(int freq, int count, const KDateTime& end);
1047 
1057  bool setRecurDaily(int freq, const QBitArray& days, int count, const QDate& end);
1058 
1068  bool setRecurWeekly(int freq, const QBitArray& days, int count, const QDate& end);
1069 
1079  bool setRecurMonthlyByDate(int freq, const QVector<int>& days, int count, const QDate& end);
1080 
1083  struct MonthPos
1084  {
1085  MonthPos() : days(7) {} //krazy:exclude=inline (need default constructor)
1086  int weeknum;
1087  QBitArray days;
1088  };
1089 
1100  bool setRecurMonthlyByPos(int freq, const QVector<MonthPos>& pos, int count, const QDate& end);
1101 
1115  bool setRecurAnnualByDate(int freq, const QVector<int>& months, int day, KARecurrence::Feb29Type, int count, const QDate& end);
1116 
1128  bool setRecurAnnualByPos(int freq, const QVector<MonthPos>& pos, const QVector<int>& months, int count, const QDate& end);
1129 
1133  bool recurs() const;
1138  KARecurrence::Type recurType() const;
1143  KARecurrence* recurrence() const;
1144 
1149  int recurInterval() const;
1150 
1154 #ifndef KALARMCAL_USE_KRESOURCES
1155  KCalCore::Duration longestRecurrenceInterval() const;
1156 #else
1157  KCal::Duration longestRecurrenceInterval() const;
1158 #endif
1159 
1164  void setFirstRecurrence();
1165 
1167  QString recurrenceText(bool brief = false) const;
1168 
1175  bool setRepetition(const Repetition& r);
1176 
1180  Repetition repetition() const;
1181 
1186  int nextRepetition() const;
1187 
1189  QString repetitionText(bool brief = false) const;
1190 
1197  bool occursAfter(const KDateTime& preDateTime, bool includeRepetitions) const;
1198 
1207  OccurType setNextOccurrence(const KDateTime& preDateTime);
1208 
1215  OccurType nextOccurrence(const KDateTime& preDateTime, DateTime& result, OccurOption option = IGNORE_REPETITION) const;
1216 
1226  OccurType previousOccurrence(const KDateTime& afterDateTime, DateTime& result, bool includeRepetitions = false) const;
1227 
1242 #ifndef KALARMCAL_USE_KRESOURCES
1243  bool setDisplaying(const KAEvent& event, KAAlarm::Type type, Akonadi::Collection::Id colId, const KDateTime& repeatAtLoginTime, bool showEdit, bool showDefer);
1244 #else
1245  bool setDisplaying(const KAEvent& event, KAAlarm::Type type, const QString& resourceID, const KDateTime& repeatAtLoginTime, bool showEdit, bool showDefer);
1246 #endif
1247 
1248 #ifndef KALARMCAL_USE_KRESOURCES
1249 
1258  void reinstateFromDisplaying(const KCalCore::Event::Ptr& event, Akonadi::Collection::Id& colId, bool& showEdit, bool& showDefer);
1259 #else
1260  void reinstateFromDisplaying(const KCal::Event* event, QString& resourceID, bool& showEdit, bool& showDefer);
1261 #endif
1262 
1269  KAAlarm convertDisplayingAlarm() const;
1270 
1272  bool displaying() const;
1273 
1278  KAAlarm alarm(KAAlarm::Type type) const;
1279 
1287  KAAlarm firstAlarm() const;
1288 
1292  KAAlarm nextAlarm(const KAAlarm& previousAlarm) const;
1296  KAAlarm nextAlarm(KAAlarm::Type previousType) const;
1297 
1305  int alarmCount() const;
1306 
1311  void removeExpiredAlarm(KAAlarm::Type type);
1312 
1319  void startChanges();
1323  void endChanges();
1324 
1329  static int currentCalendarVersion();
1330 
1335  static QByteArray currentCalendarVersionString();
1336 
1349 #ifndef KALARMCAL_USE_KRESOURCES
1350  static bool convertKCalEvents(const KCalCore::Calendar::Ptr&, int calendarVersion);
1351 #else
1352  static bool convertKCalEvents(KCal::CalendarLocal&, int calendarVersion);
1353 #endif
1354 
1355 #ifndef KALARMCAL_USE_KRESOURCES
1356 
1357  static List ptrList(QVector<KAEvent>& events);
1358 #endif
1359 
1361  void dumpDebug() const;
1362 
1363  private:
1364  QSharedDataPointer<KAEventPrivate> d;
1365 };
1366 
1367 } // namespace KAlarmCal
1368 
1369 Q_DECLARE_OPERATORS_FOR_FLAGS(KAlarmCal::KAEvent::Flags)
1370 Q_DECLARE_METATYPE(KAlarmCal::KAEvent)
1371 
1372 #endif // KAEVENT_H
1373 
1374 // vim: et sw=4:
KAlarmCal::KAEvent::MonthPos::days
QBitArray days
Days in week, element 0 = Monday.
Definition: kaevent.h:1087
KAlarmCal::KAAlarm::Type
Type
Alarm types.
Definition: kaevent.h:95
KAlarmCal::KARecurrence::Type
Type
The recurrence's period type.
Definition: karecurrence.h:67
KCalCore::Duration
KAlarmCal::KAAlarm
KAAlarm represents individual alarms within a KAEvent.
Definition: kaevent.h:78
KAlarmCal::KAEvent::ExtraActionOption
ExtraActionOption
Options for pre- or post-alarm actions.
Definition: kaevent.h:322
KCalCore::Event::Ptr
QSharedPointer< Event > Ptr
KAlarmCal::Repetition
Represents a sub-repetition, defined by interval and repeat count.
Definition: repetition.h:47
Akonadi::Collection::Id
qint64 Id
KCalCore::Person::List
QVector< Ptr > List
KAlarmCal::KAEvent::LIMIT_NONE
there is no limit
Definition: kaevent.h:292
KAlarmCal::KARecurrence::Feb29Type
Feb29Type
When annual February 29th recurrences should occur in non-leap years.
Definition: karecurrence.h:79
KAlarmCal::KAEvent::LIMIT_RECURRENCE
a recurrence
Definition: kaevent.h:294
KAlarmCal::KAEvent::List
QVector< KAEvent * > List
A list of pointers to KAEvent objects.
Definition: kaevent.h:215
KAlarmCal::CalEvent::Type
Type
The category of an event, indicated by the middle part of its UID.
Definition: kacalendar.h:155
person.h
KAlarmCal::KAEvent::IGNORE_REPETITION
check for recurrences only, ignore sub-repetitions
Definition: kaevent.h:284
KAlarmCal::KARecurrence
Represents recurrences for KAlarm.
Definition: karecurrence.h:61
KAlarmCal::KAAlarm::MESSAGE
KCal::Alarm::Display type: display a text message.
Definition: kaevent.h:84
KAlarmCal::KAAlarm::Action
Action
The basic KAAlarm action types.
Definition: kaevent.h:82
calendar.h
KAlarmCal::KAEvent::DeferLimitType
DeferLimitType
What type of occurrence currently limits how long the alarm can be deferred.
Definition: kaevent.h:290
KAlarmCal::KAEvent::CmdErrType
CmdErrType
Command execution error type for last time the alarm was triggered.
Definition: kaevent.h:310
KAlarmCal::KAEvent::WORK_TRIGGER
next main working time trigger, excluding reminders
Definition: kaevent.h:304
KAlarmCal::KAAlarm::AUDIO
KCal::Alarm::Audio type: play a sound file.
Definition: kaevent.h:88
KAlarmCal::KAEvent::TriggerType
TriggerType
Alarm trigger type.
Definition: kaevent.h:300
KAlarmCal::KAAlarm::FILE
KCal::Alarm::Display type: display a file (URL given by the alarm text)
Definition: kaevent.h:85
KAlarmCal::KAEvent::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:334
KCalCore::Calendar::Ptr
QSharedPointer< Calendar > Ptr
KAlarmCal::KAEvent::ALL_WORK_TRIGGER
next actual working time trigger, including reminders
Definition: kaevent.h:305
KAlarmCal::KAEvent::OccurOption
OccurOption
How to treat sub-repetitions in nextOccurrence().
Definition: kaevent.h:282
KAlarmCal::KAAlarm::EMAIL
KCal::Alarm::Email type: send an email.
Definition: kaevent.h:87
KAlarmCal::KAEvent::UID_IGNORE
leave KCal::Event UID unchanged
Definition: kaevent.h:333
KAlarmCal::KAEvent::OccurType
OccurType
What type of occurrence is due.
Definition: kaevent.h:267
KAlarmCal::KAEvent::Flag
Flag
Flags for use in D-Bus calls, etc.
Definition: kaevent.h:218
KAlarmCal::KAEvent
KAEvent represents a KAlarm event.
Definition: kaevent.h:211
KAlarmCal::KAEvent::LIMIT_MAIN
the main alarm
Definition: kaevent.h:293
KAlarmCal::KAEvent::MonthPos::weeknum
int weeknum
Week in month, or < 0 to count from end of month.
Definition: kaevent.h:1086
KAlarmCal::KAEvent::UidAction
UidAction
How to deal with the event UID in updateKCalEvent().
Definition: kaevent.h:331
KAlarmCal::KAEvent::Actions
Actions
The basic action type(s) for the event's main alarm.
Definition: kaevent.h:245
KAlarmCal::KAEvent::LIMIT_REPETITION
a sub-repetition
Definition: kaevent.h:295
KAlarmCal::KAAlarm::COMMAND
KCal::Alarm::Procedure type: execute a shell command.
Definition: kaevent.h:86
KAlarmCal::KAEvent::RETURN_REPETITION
return a sub-repetition if it's the next occurrence
Definition: kaevent.h:285
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::SubAction
SubAction
The sub-action type for the event's main alarm.
Definition: kaevent.h:257
KAlarmCal::DateTime
As KDateTime, but with a configurable start-of-day time for date-only values.
Definition: datetime.h:42
KAlarmCal::KAEvent::ALL_TRIGGER
next trigger, including reminders, ignoring working hours & holidays
Definition: kaevent.h:302
KAlarmCal::KAEvent::MAIN_TRIGGER
next trigger, excluding reminders, ignoring working hours & holidays
Definition: kaevent.h:303
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:14 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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