calendarsupport
#include <calendarutils.h>
Signals | |
void | actionFailed (const Akonadi::Item &item, const QString &msg) |
void | actionFinished (const Akonadi::Item &item) |
Public Member Functions | |
CalendarUtils (const Akonadi::ETMCalendar::Ptr &calendar, QObject *parent=0) | |
~CalendarUtils () | |
Akonadi::ETMCalendar::Ptr | calendar () const |
bool | makeChildrenIndependent (const Akonadi::Item &item) |
bool | makeIndependent (const Akonadi::Item &item) |
void | purgeCompletedTodos () |
Detailed Description
Some calendar/Incidence related utilitly methods.
NOTE: this class will only start an modify job for an Item when no other job started by this class for the same Item is still running.
Definition at line 45 of file calendarutils.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new CalendarUtils instance.
The instance does not take owner ship over the Calendar.
Definition at line 168 of file calendarutils.cpp.
CalendarUtils::~CalendarUtils | ( | ) |
Definition at line 175 of file calendarutils.cpp.
Member Function Documentation
|
signal |
|
signal |
Akonadi::ETMCalendar::Ptr CalendarUtils::calendar | ( | ) | const |
Returns the Caledar on which this utils class is operating.
Definition at line 180 of file calendarutils.cpp.
bool CalendarUtils::makeChildrenIndependent | ( | const Akonadi::Item & | item | ) |
Makes all children of the incindence from.
- Parameters
-
item independent Returns true when one or more incidence(s) where made independent, false otherwise.
Definition at line 205 of file calendarutils.cpp.
bool CalendarUtils::makeIndependent | ( | const Akonadi::Item & | item | ) |
Makes the incidence from.
- Parameters
-
item independent from its parent. Returns true when the ModifyJob to make the incidence independent was actually started, false otherwise. This method is async, either actionFailed or actionFinished will be emitted when the operation finished or failed.
Definition at line 186 of file calendarutils.cpp.
void CalendarUtils::purgeCompletedTodos | ( | ) |
Todo specific methods.
Deletes the completed todos from all active collections in the Calendar.
Definition at line 238 of file calendarutils.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.