KAlarm Library
Enumerations | |
enum | { CurrentFormat = 0, MixedFormat = -2, IncompatibleFormat = -1 } |
enum | Compatibility { Unknown = 0, Current = 0x02, Converted = Current | 0x01, Convertible = 0x04, Incompatible = 0x08 } |
Functions | |
QByteArray | icalProductId () |
void | setKAlarmVersion (const KCalCore::Calendar::Ptr &) |
void | setProductId (const QByteArray &progName, const QByteArray &progVersion) |
int | updateVersion (const KCalCore::FileStorage::Ptr &, QString &versionString) |
Variables | |
const QByteArray | APPNAME ("KALARM") |
Detailed Description
Class representing attributes of a KAlarm calendar.
KACalendar provides methods to check and convert the KAlarm calendar format version, and to get and set the iCalendar product ID (which contains the identity of the application which wrote the calendar).
Enumeration Type Documentation
anonymous enum |
Special calendar storage format version codes.
Positive version values are actual KAlarm format version numbers.
Enumerator | |
---|---|
CurrentFormat |
current KAlarm format |
MixedFormat |
calendar may contain more than one version |
IncompatibleFormat |
not written by KAlarm, or a newer KAlarm version |
Definition at line 95 of file kacalendar.h.
Compatibility of resource backend calendar format.
Definition at line 71 of file kacalendar.h.
Function Documentation
KALARMCAL_EXPORT QByteArray KAlarmCal::KACalendar::icalProductId | ( | ) |
Return the product ID string for use in calendars.
setProductId() must have been called previously.
Definition at line 100 of file kacalendar.cpp.
KALARMCAL_EXPORT void KAlarmCal::KACalendar::setKAlarmVersion | ( | const KCalCore::Calendar::Ptr & | ) |
Set the KAlarm version custom property for a calendar.
Definition at line 109 of file kacalendar.cpp.
KALARMCAL_EXPORT void KAlarmCal::KACalendar::setProductId | ( | const QByteArray & | progName, |
const QByteArray & | progVersion | ||
) |
Set the program name and version for use in calendars.
Definition at line 95 of file kacalendar.cpp.
KALARMCAL_EXPORT int KAlarmCal::KACalendar::updateVersion | ( | const KCalCore::FileStorage::Ptr & | , |
QString & | versionString | ||
) |
Check the version of KAlarm which wrote a calendar file, and convert it in memory to the current KAlarm format if possible.
The storage file is not updated. The compatibility of the calendar format is indicated by the return value.
- Parameters
-
calendar calendar stored in localFile
localFile full path of the calendar's file storage versionString receives calendar's KAlarm version as a string
- Returns
- CurrentFormat if the calendar is in the current KAlarm format; IncompatibleFormat calendar is not a KAlarm format or is an unknown KAlarm format; >0 the older KAlarm version which wrote the calendar
Definition at line 127 of file kacalendar.cpp.
Variable Documentation
const QByteArray KAlarmCal::KACalendar::APPNAME |
The application name ("KALARM") used in calendar properties.
Definition at line 138 of file kacalendar.h.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.