KCalendarCore
compat.cpp
Go to the documentation of this file.
33 Compat *CompatFactory::createCompat(const QString &productId, const QString &implementationVersion)
43 int versionStop = productId.indexOf(QRegularExpression(QStringLiteral("[ /]")), versionStart + 1);
47 int versionNum = version.section(QLatin1Char('.'), 0, 0).toInt() * 10000 + version.section(QLatin1Char('.'), 1, 1).toInt() * 100
78 && (productId.contains(QLatin1String("libkcal")) || productId.contains(QLatin1String("KOrganizer")) || productId.contains(QLatin1String("KAlarm")))) {
174 void CompatDecorator::setCreatedToDtStamp(const Incidence::Ptr &incidence, const QDateTime &dtstamp)
314 void CompatPre410::setCreatedToDtStamp(const Incidence::Ptr &incidence, const QDateTime &dtstamp)
void append(const T &value)
int month() const const
Represents a span of time measured in seconds or days.
Definition: duration.h:43
virtual void release(quint64 objid)
int year() const const
bool contains(const T &value) const const
AKONADI_CALENDAR_EXPORT KCalendarCore::Incidence::Ptr incidence(const Akonadi::Item &item)
int size() const const
uint frequency() const
Returns the recurrence frequency, in terms of the recurrence time period type.
Definition: recurrencerule.cpp:2091
Q_SCRIPTABLE Q_NOREPLY void start()
bool isEmpty() const const
const T & at(int i) const const
bool isEmpty() const const
void setDuration(int duration)
Sets the total number of times the event is to occur, including both the first and last.
Definition: recurrence.cpp:504
QDate addDays(qint64 ndays) const const
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
This class represents a recurrence rule for a calendar incidence.
Definition: recurrencerule.h:31
void setDuration(int duration)
Sets the total number of times the event is to occur, including both the first and last.
Definition: recurrencerule.cpp:959
int duration() const
Returns -1 if the event recurs infinitely, 0 if the end date is set, otherwise the total number of re...
Definition: recurrence.cpp:486
int duration() const
Returns -1 if the event recurs infinitely, 0 if the end date is set, otherwise the total number of re...
Definition: recurrencerule.cpp:2096
KDB_EXPORT KDbVersionInfo version()
bool dateMatchesRules(const QDateTime &dt) const
Returns true if the date matches the rules.
Definition: recurrencerule.cpp:1353
This class represents a recurrence rule for a calendar incidence.
Definition: recurrence.h:76
QDate date() const const
bool isValid() const const
void clear()
int durationTo(const QDateTime &dt) const
Returns the number of recurrences up to and including the date/time specified.
Definition: recurrencerule.cpp:1555
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
QString mid(int position, int n) const const
const QList< QKeySequence > & end()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:00:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:00:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.