KCal::ExchangeCalendar Class Reference
This class provides a calendar stored on a Microsoft Exchange 2000 server. More...
#include <exchangecalendar.h>
Public Member Functions | |
ExchangeCalendar (KPIM::ExchangeAccount *account) | |
constructs a new calendar, with variables initialized to sane values. | |
ExchangeCalendar (KPIM::ExchangeAccount *account, const QString &timeZoneId) | |
constructs a new calendar, with variables initialized to sane values. | |
bool | load (const QString &fileName) |
Semantics not yet defined. | |
bool | save (const QString &fileName, CalFormat *format=0) |
Writes out the calendar to disk in the specified format. | |
void | close () |
clears out the current calendar, freeing all used memory etc. | |
void | addEvent (Event *anEvent) |
Add Event to calendar. | |
void | deleteEvent (Event *) |
deletes an event from this calendar. | |
Event * | event (const QString &UniqueStr) |
Retrieves an event on the basis of the unique string ID. | |
QPtrList< Event > | rawEvents () |
Return unfiltered list of all events in calendar. | |
QString | getHolidayForDate (const QDate &qd) |
int | numEvents (const QDate &qd) |
returns the number of events that are present on the specified date. | |
void | addTodo (Todo *todo) |
Add a todo to the todolist. | |
void | deleteTodo (Todo *) |
Remove a todo from the todolist. | |
Todo * | todo (const QString &uid) |
Searches todolist for an event with this unique string identifier, returns a pointer or null. | |
QPtrList< Todo > | rawTodos () const |
Return list of all todos. | |
QPtrList< Todo > | todos (const QDate &date) |
Returns list of todos due on the specified date. | |
QPtrList< Todo > | todos () |
Return list of all todos. | |
virtual void | addJournal (Journal *) |
Add a Journal entry to calendar. | |
virtual Journal * | journal (const QDate &) |
Return Journal for given date. | |
virtual Journal * | journal (const QString &UID) |
Return Journal with given UID. | |
QPtrList< Journal > | journals () |
Return list of all Journals stored in calendar. | |
Alarm::List | alarms (const QDateTime &from, const QDateTime &to) |
Return all alarms, which ocur in the given time interval. | |
Alarm::List | alarmsTo (const QDateTime &to) |
Return all alarms, which ocur before given date. | |
Protected Member Functions | |
QPtrList< Event > | rawEventsForDate (const QDate &date, bool sorted=false) |
Builds and then returns a list of all events that match for the date specified. | |
QPtrList< Event > | rawEventsForDate (const QDateTime &qdt) |
Get unfiltered events for date qdt. | |
QPtrList< Event > | rawEvents (const QDate &start, const QDate &end, bool inclusive=false) |
Get unfiltered events in a range of dates. | |
void | update (IncidenceBase *incidence) |
this method should be called whenever a Event is modified directly via it's pointer. | |
void | incidenceUpdated (IncidenceBase *i) |
Notification function of IncidenceBase::Observer. | |
void | insertEvent (const Event *anEvent) |
inserts an event into its "proper place" in the calendar. |
Detailed Description
This class provides a calendar stored on a Microsoft Exchange 2000 server.
Definition at line 45 of file exchangecalendar.h.
Constructor & Destructor Documentation
|
constructs a new calendar, with variables initialized to sane values.
Definition at line 42 of file exchangecalendar.cpp. |
|
constructs a new calendar, with variables initialized to sane values.
Definition at line 49 of file exchangecalendar.cpp. |
Member Function Documentation
|
Semantics not yet defined. Should the Exchange calendar be wiped clean? Should the disk calendar be copied to the Exchange calendar? At the moment, does nothing.
Definition at line 86 of file exchangecalendar.cpp. |
|
Writes out the calendar to disk in the specified format. ExchangeCalendar takes ownership of the CalFormat object.
Definition at line 92 of file exchangecalendar.cpp. |
|
clears out the current calendar, freeing all used memory etc. etc. Definition at line 97 of file exchangecalendar.cpp. |
|
Add Event to calendar.
Definition at line 104 of file exchangecalendar.cpp. References insertEvent(). |
|
deletes an event from this calendar.
Definition at line 116 of file exchangecalendar.cpp. |
|
Retrieves an event on the basis of the unique string ID.
Definition at line 124 of file exchangecalendar.cpp. |
|
Return unfiltered list of all events in calendar. Use with care, since this causes a LOT of network activity Definition at line 266 of file exchangecalendar.cpp. |
|
returns the number of events that are present on the specified date.
Definition at line 162 of file exchangecalendar.cpp. |
|
Add a todo to the todolist.
Definition at line 131 of file exchangecalendar.cpp. |
|
Remove a todo from the todolist.
Definition at line 140 of file exchangecalendar.cpp. |
|
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Definition at line 152 of file exchangecalendar.cpp. |
|
Return list of all todos.
Definition at line 147 of file exchangecalendar.cpp. |
|
Returns list of todos due on the specified date.
Definition at line 157 of file exchangecalendar.cpp. |
|
Return list of all todos. Workaround because compiler does not recognize function of base class. Definition at line 127 of file exchangecalendar.h. |
|
Add a Journal entry to calendar.
Definition at line 272 of file exchangecalendar.cpp. |
|
Return Journal for given date.
Definition at line 282 of file exchangecalendar.cpp. |
|
Return Journal with given UID.
Definition at line 288 of file exchangecalendar.cpp. |
|
Return list of all Journals stored in calendar.
Definition at line 293 of file exchangecalendar.cpp. |
|
Return all alarms, which ocur in the given time interval.
Definition at line 174 of file exchangecalendar.cpp. References QDateTime::toString(). |
|
Return all alarms, which ocur before given date.
Definition at line 169 of file exchangecalendar.cpp. |
|
Builds and then returns a list of all events that match for the date specified. useful for dayView, etc. etc. Definition at line 199 of file exchangecalendar.cpp. References QDate::addMonths(), QPtrList::count(), QDateTime::currentDateTime(), QMap< QDate, QDateTime >::insert(), QDate::month(), QDate::toString(), and QDate::year(). Referenced by rawEventsForDate(). |
|
Get unfiltered events for date qdt.
Definition at line 260 of file exchangecalendar.cpp. References QDateTime::date(), and rawEventsForDate(). |
|
Get unfiltered events in a range of dates. If inclusive is set to true, only events are returned, which are completely included in the range. Definition at line 253 of file exchangecalendar.cpp. |
|
this method should be called whenever a Event is modified directly via it's pointer. It makes sure that the calendar is internally consistent. Definition at line 183 of file exchangecalendar.cpp. Referenced by incidenceUpdated(). |
|
Notification function of IncidenceBase::Observer.
Definition at line 167 of file exchangecalendar.h. References update(). |
|
inserts an event into its "proper place" in the calendar.
Definition at line 191 of file exchangecalendar.cpp. Referenced by addEvent(). |
The documentation for this class was generated from the following files: