KCalCore Library
Go to the documentation of this file.
28 #ifndef KCALCORE_EVENT_H
29 #define KCALCORE_EVENT_H
31 #include "kcalcore_export.h"
33 #include "supertrait.h"
55 typedef QSharedPointer<Event>
Ptr;
96 QByteArray typeStr()
const;
101 Event *clone()
const;
109 virtual void setDtStart(
const KDateTime &dt);
119 void setDtEnd(
const KDateTime &dtEnd);
128 virtual KDateTime dtEnd()
const;
135 QDate dateEnd()
const;
142 KCALCORE_DEPRECATED
void setHasEndDate(
bool b);
147 bool hasEndDate()
const;
159 bool isMultiDay(
const KDateTime::Spec &spec = KDateTime::Spec())
const;
165 virtual void shiftTimes(
const KDateTime::Spec &oldSpec,
166 const KDateTime::Spec &newSpec);
183 void setDuration(
const Duration &duration);
189 void setAllDay(
bool allDay);
201 void setDateTime(
const KDateTime &dateTime,
DateTimeRole role);
207 QLatin1String mimeType()
const;
213 QLatin1String iconName(
const KDateTime &recurrenceId = KDateTime())
const;
218 static QLatin1String eventMimeType();
237 virtual void virtual_hook(
int id,
void *data);
255 void serialize(QDataStream &out);
256 void deserialize(QDataStream &in);
272 namespace KPIMUtils {
274 template <>
struct SuperClass<
KCalCore::Event> :
public SuperClassTrait<KCalCore::Incidence> {};
QSharedPointer< IncidenceBase > Ptr
A shared pointer to an IncidenceBase.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
@ Opaque
Event appears in free/busy time.
This class provides the interface for a visitor of calendar components.
DateTimeRole
The different types of incidence date/times roles.
QSharedPointer< Event > Ptr
A shared pointer to an Event object.
Transparency
The different Event transparency types.
Represents a span of time measured in seconds or days.
QVector< Ptr > List
List of events.
An abstract class that provides a common base for all calendar incidence classes.
This class provides an Event in the sense of RFC2445.
IncidenceType
The different types of incidences, per RFC2445.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by
doxygen 1.8.18 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.