KDeclarative
7 #ifndef CALENDAREVENTSPLUGIN_H 8 #define CALENDAREVENTSPLUGIN_H 13 #include <QSharedDataPointer> 15 #include "calendarevents_export.h" 19 class CALENDAREVENTS_EXPORT EventData
29 EventData(
const EventData &other);
32 EventData &operator=(
const EventData &other);
44 void setStartDateTime(
const QDateTime &startDateTime);
56 void setEndDateTime(
const QDateTime &endDateTime);
61 bool isAllDay()
const;
73 void setIsAllDay(
bool isAllDay);
91 void setIsMinor(
bool isMinor);
103 void setTitle(
const QString &title);
116 void setDescription(
const QString &description);
121 EventType
type()
const;
128 void setEventType(EventType type);
144 void setEventColor(
const QString &color);
160 void setUid(
const QString &uid);
167 class CALENDAREVENTS_EXPORT CalendarEventsPlugin :
public QObject 172 explicit CalendarEventsPlugin(
QObject *parent =
nullptr);
173 virtual ~CalendarEventsPlugin();
183 virtual void loadEventsForDateRange(
const QDate &startDate,
const QDate &endDate) = 0;
205 void eventModified(
const CalendarEvents::EventData &modifiedEvent);
213 void eventRemoved(
const QString &uid);
237 virtual bool showEvent(
const QString &uid) = 0;
242 Q_DECLARE_INTERFACE(CalendarEvents::CalendarEventsPlugin,
"org.kde.CalendarEventsPlugin")
Interface for displaying event details.
Type type(const QSqlDatabase &db)
QDateTime endDateTime(const QVariant &res)
QDateTime startDateTime(const QVariant &elem)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 22:44:28 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.