KCal::VCalFormat Class Reference
This class implements the vCalendar format. vCalendar format implementation. More...
#include <vcalformat.h>
Inheritance diagram for KCal::VCalFormat:

Public Methods | |
VCalFormat () | |
virtual | ~VCalFormat () |
bool | load (Calendar *calendar, const QString &fileName) |
bool | save (Calendar *, const QString &fileName) |
bool | fromString (Calendar *, const QString &) |
QString | toString (Calendar *) |
Protected Methods | |
Todo * | VTodoToEvent (VObject *vtodo) |
Event * | VEventToEvent (VObject *vevent) |
VObject * | eventToVTodo (const Todo *anEvent) |
VObject * | eventToVEvent (const Event *anEvent) |
QString | qDateToISO (const QDate &) |
QString | qDateTimeToISO (const QDateTime &, bool zulu=TRUE) |
QDateTime | ISOToQDateTime (const QString &dtStr) |
QDate | ISOToQDate (const QString &dtStr) |
void | populate (VObject *vcal) |
const char * | dayFromNum (int day) |
int | numFromDay (const QString &day) |
Attendee::PartStat | readStatus (const char *s) const |
QCString | writeStatus (Attendee::PartStat status) const |
Detailed Description
This class implements the vCalendar format. vCalendar format implementation.It provides methods for loading/saving/converting vCalendar format data into the internal KOrganizer representation as Calendar and Events.
Definition at line 43 of file vcalformat.h.
Member Function Documentation
|
Loads a calendar on disk in vCalendar format into the given calendar.
Implements KCal::CalFormat. Definition at line 57 of file vcalformat.cpp. References KCal::CalFormat::clearException(), QFile::encodeName(), populate(), and KCal::CalFormat::setException(). |
|
Writes out the given calendar to disk in vCalendar format.
Implements KCal::CalFormat. Definition at line 89 of file vcalformat.cpp. References QFile::encodeName(), eventToVEvent(), eventToVTodo(), QFile::exists(), KCal::CalFormat::productId(), KCal::Calendar::rawEvents(), and KCal::Calendar::rawTodos(). |
|
Parse string and populate calendar with that information.
Implements KCal::CalFormat. Definition at line 135 of file vcalformat.cpp. References KCal::Calendar::addEvent(), QString::utf8(), and VEventToEvent(). Referenced by KCal::VCalDrag::decode(). |
|
Return calendar information as string.
Implements KCal::CalFormat. Definition at line 170 of file vcalformat.cpp. References KCal::Calendar::events(), and eventToVEvent(). Referenced by KCal::VCalDrag::VCalDrag(). |
|
|
|
|
|
takes a QDate and returns a string in the format YYYYMMDDTHHMMSS.
Definition at line 1399 of file vcalformat.cpp. References QDate::day(), QDate::isValid(), QDate::month(), QString::sprintf(), and QDate::year(). Referenced by eventToVEvent(). |
|
takes a QDateTime and returns a string in format YYYYMMDDTHHMMSS.
Definition at line 1419 of file vcalformat.cpp. References QDateTime::addSecs(), QDateTime::date(), QString::sprintf(), QDateTime::time(), and KCal::Calendar::timeZoneId(). Referenced by eventToVEvent(), and eventToVTodo(). |
|
takes a string in the format YYYYMMDDTHHMMSS and returns a valid QDateTime.
Definition at line 1442 of file vcalformat.cpp. References QDateTime::addSecs(), QString::at(), QTime::isValid(), QDate::isValid(), QString::left(), QString::length(), QString::mid(), QTime::setHMS(), QDate::setYMD(), and KCal::Calendar::timeZoneId(). Referenced by VEventToEvent(), and VTodoToEvent(). |
|
takes a string in the format YYYYMMDD and returns a valid QDate.
Definition at line 1469 of file vcalformat.cpp. References QString::left(), and QString::mid(). Referenced by VEventToEvent(). |
|
takes a vCalendar tree of VObjects, and puts all of them that have the "event" property into the dictionary, todos in the todo-list, etc.
Definition at line 1483 of file vcalformat.cpp. References KCal::Calendar::addEvent(), KCal::Calendar::addTodo(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Calendar::event(), QDateTime::isValid(), KCal::CalFormat::productId(), KCal::Calendar::todo(), VEventToEvent(), and VTodoToEvent(). Referenced by load(). |
|
takes a number 0 - 6 and returns the two letter string of that day, i.e. MO, TU, WE, etc. Definition at line 1618 of file vcalformat.cpp. Referenced by eventToVEvent(). |
|
the reverse of the above function.
Definition at line 1625 of file vcalformat.cpp. Referenced by VEventToEvent(). |
The documentation for this class was generated from the following files: