KGAPI2::Reminder
KGAPI2::Reminder Class Reference
#include <reminder.h>
Public Member Functions | |
Reminder () | |
Reminder (const Reminder &other) | |
Reminder (KCalendarCore::Alarm::Type type, const KCalendarCore::Duration &startOffset=KCalendarCore::Duration(0)) | |
virtual | ~Reminder () |
bool | operator== (const Reminder &other) const |
void | setStartOffset (const KCalendarCore::Duration &startOffset) |
void | setType (KCalendarCore::Alarm::Type type) |
KCalendarCore::Duration | startOffset () const |
KCalendarCore::Alarm * | toAlarm (KCalendarCore::Incidence *incidence) const |
KCalendarCore::Alarm::Type | type () const |
Detailed Description
Constructor & Destructor Documentation
◆ Reminder() [1/3]
|
explicit |
Constructor.
Definition at line 22 of file reminder.cpp.
◆ Reminder() [2/3]
|
explicit |
Constructor.
- Parameters
-
type Type of the reminder (email, notification, etc.) startOffset How long before the event should the reminder be shown
Definition at line 27 of file reminder.cpp.
◆ Reminder() [3/3]
Reminder::Reminder | ( | const Reminder & | other | ) |
Copy constructor.
Definition at line 34 of file reminder.cpp.
◆ ~Reminder()
|
virtualdefault |
Destructor.
Member Function Documentation
◆ operator==()
bool Reminder::operator== | ( | const Reminder & | other | ) | const |
Definition at line 41 of file reminder.cpp.
◆ setStartOffset()
void Reminder::setStartOffset | ( | const KCalendarCore::Duration & | startOffset | ) |
Sets how long before the event should reminder be shown.
Definition at line 64 of file reminder.cpp.
◆ setType()
void Reminder::setType | ( | KCalendarCore::Alarm::Type | type | ) |
◆ startOffset()
|
nodiscard |
Returns how long before the event should reminder be shown.
Definition at line 69 of file reminder.cpp.
◆ toAlarm()
|
nodiscard |
Converts the reminder to a KCalendarCore::Alarm.
- Parameters
-
incidence An incidence on which the reminder should be applied
- Returns
- Returns a new KCalendarCore::Alarm
Definition at line 75 of file reminder.cpp.
◆ type()
|
nodiscard |
Returns type of the reminder.
Definition at line 59 of file reminder.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.