KAlarm Library
kacalendar.cpp
78 static int readKAlarmVersion(const FileStorage::Ptr&, QString& subVersion, QString& versionString);
80 static int readKAlarmVersion(CalendarLocal&, const QString& localFile, QString& subVersion, QString& versionString);
97 Private::mIcalProductId = QByteArray("-//K Desktop Environment//NONSGML " + progName + " " + progVersion + "//EN");
102 return Private::mIcalProductId.isEmpty() ? QByteArray("-//K Desktop Environment//NONSGML //EN") : Private::mIcalProductId;
111 calendar->setCustomProperty(APPNAME, VERSION_PROPERTY, QString::fromLatin1(KAEvent::currentCalendarVersionString()));
116 calendar.setCustomProperty(APPNAME, VERSION_PROPERTY, QString::fromLatin1(KAEvent::currentCalendarVersionString()));
141 return IncompatibleFormat; // calendar was created by another program, or an unknown version of KAlarm
179 int Private::readKAlarmVersion(const FileStorage::Ptr& fileStorage, QString& subVersion, QString& versionString)
181 int Private::readKAlarmVersion(CalendarLocal& calendar, const QString& localFile, QString& subVersion, QString& versionString)
237 versionString = versionString.left(i); // 'versionString' now contains the KAlarm version string
408 const QString property = event->customProperty(KACalendar::APPNAME, staticStrings->STATUS_PROPERTY);
Type type(const QString &mimeType)
Return the alarm Type for a mime type string.
Definition: kacalendar.cpp:469
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
int updateVersion(const FileStorage::Ptr &fileStorage, QString &versionString)
Check the version of KAlarm which wrote a calendar file, and convert it in memory to the current KAla...
Definition: kacalendar.cpp:127
QList< QByteArray > split(char sep) const
bool isEmpty() const
not written by KAlarm, or a newer KAlarm version
Definition: kacalendar.h:101
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void clear()
QByteArray icalProductId()
Return the product ID string for use in calendars.
Definition: kacalendar.cpp:100
const QByteArray APPNAME("KALARM")
The application name ("KALARM") used in calendar properties.
Definition: kacalendar.h:138
int count(const T &value) const
void setKAlarmVersion(const Calendar::Ptr &calendar)
Set the KAlarm version custom property for a calendar.
Definition: kacalendar.cpp:109
bool isEmpty() const
QStringList mimeTypes(Types types)
Return the mime type strings corresponding to alarm Types.
Definition: kacalendar.cpp:506
QString & replace(int position, int n, QChar after)
QString mid(int position, int n) const
bool isEmpty() const
int length() const
QString left(int n) const
QString fromLatin1(const char *str, int size)
QString mimeType(Type type)
Return the mime type string corresponding to an alarm Type.
Definition: kacalendar.cpp:495
void setProductId(const QByteArray &progName, const QByteArray &progVersion)
Set the program name and version for use in calendars.
Definition: kacalendar.cpp:95
Types types(const QStringList &mimeTypes)
Return the alarm Types for a list of mime type strings.
Definition: kacalendar.cpp:480
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.