|
typedef QVector< Ptr > | List |
|
typedef QSharedPointer< Event > | Ptr |
|
enum | Transparency { Opaque
, Transparent
} |
|
typedef QVector< Ptr > | List |
|
typedef QSharedPointer< Incidence > | Ptr |
|
enum | RelType { RelTypeParent
, RelTypeChild
, RelTypeSibling
} |
|
enum | Secrecy { SecrecyPublic
, SecrecyPrivate
, SecrecyConfidential
} |
|
enum | Status {
StatusNone
, StatusTentative
, StatusConfirmed
, StatusCompleted
,
StatusNeedsAction
, StatusCanceled
, StatusInProcess
, StatusDraft
,
StatusFinal
, StatusX
} |
|
enum | DateTimeRole {
RoleAlarmStartOffset = 0
, RoleAlarmEndOffset
, RoleSort
, RoleCalendarHashing
,
RoleStartTimeZone
, RoleEndTimeZone
, RoleEndRecurrenceBase
, RoleEnd
,
RoleDisplayEnd
, RoleAlarm
, RoleRecurrenceStart
, RoleDisplayStart
,
RoleDnD
} |
|
enum | Field {
FieldDtStart
, FieldDtEnd
, FieldLastModified
, FieldDescription
,
FieldSummary
, FieldLocation
, FieldCompleted
, FieldPercentComplete
,
FieldDtDue
, FieldCategories
, FieldRelatedTo
, FieldRecurrence
,
FieldAttachment
, FieldSecrecy
, FieldStatus
, FieldTransparency
,
FieldResources
, FieldPriority
, FieldGeoLatitude
, FieldGeoLongitude
,
FieldRecurrenceId
, FieldAlarms
, FieldSchedulingId
, FieldAttendees
,
FieldOrganizer
, FieldCreated
, FieldRevision
, FieldDuration
,
FieldContact
, FieldComment
, FieldUid
, FieldUnknown
,
FieldUrl
} |
|
enum | IncidenceType {
TypeEvent = 0
, TypeTodo
, TypeJournal
, TypeFreeBusy
,
TypeUnknown
} |
|
typedef QSharedPointer< IncidenceBase > | Ptr |
|
|
| Event () |
|
| Event (const Event &other) |
|
| Event (const Incidence &other) |
|
| ~Event () |
|
Event * | clone () const |
|
QDate | dateEnd () const |
|
KDateTime | dateTime (DateTimeRole role) const |
|
virtual KDateTime | dtEnd () const |
|
bool | hasEndDate () const |
|
QLatin1String | iconName (const KDateTime &recurrenceId=KDateTime()) const |
|
bool | isMultiDay (const KDateTime::Spec &spec=KDateTime::Spec()) const |
|
QLatin1String | mimeType () const |
|
void | setAllDay (bool allDay) |
|
void | setDateTime (const KDateTime &dateTime, DateTimeRole role) |
|
void | setDtEnd (const KDateTime &dtEnd) |
|
virtual void | setDtStart (const KDateTime &dt) |
|
void | setDuration (const Duration &duration) |
|
KCALCORE_DEPRECATED void | setHasEndDate (bool b) |
|
void | setTransparency (Transparency transparency) |
|
virtual void | shiftTimes (const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec) |
|
Transparency | transparency () const |
|
IncidenceType | type () const |
|
QByteArray | typeStr () const |
|
| Incidence () |
|
virtual | ~Incidence () |
|
void | addAlarm (const Alarm::Ptr &alarm) |
|
void | addAttachment (const Attachment::Ptr &attachment) |
|
Alarm::List | alarms () const |
|
QString | altDescription () const |
|
Attachment::List | attachments () const |
|
Attachment::List | attachments (const QString &mime) const |
|
QStringList | categories () const |
|
QString | categoriesStr () const |
|
void | clearAlarms () |
|
void | clearAttachments () |
|
void | clearRecurrence () |
|
void | clearTempFiles () |
|
KDateTime | created () const |
|
QString | customStatus () const |
|
void | deleteAttachment (const Attachment::Ptr &attachment) |
|
void | deleteAttachments (const QString &mime) |
|
QString | description () const |
|
bool | descriptionIsRich () const |
|
virtual KDateTime | endDateForStart (const KDateTime &startDt) const |
|
float | geoLatitude () const |
|
float | geoLongitude () const |
|
bool | hasAltDescription () const |
|
bool | hasEnabledAlarms () const |
|
bool | hasGeo () const |
|
bool | hasRecurrenceId () const |
|
QString | instanceIdentifier () const |
|
bool | localOnly () const |
|
QString | location () const |
|
bool | locationIsRich () const |
|
Alarm::Ptr | newAlarm () |
|
int | priority () const |
|
void | recreate () |
|
Recurrence * | recurrence () const |
|
KDateTime | recurrenceId () const |
|
ushort | recurrenceType () const |
|
virtual void | recurrenceUpdated (Recurrence *recurrence) |
|
bool | recurs () const |
|
bool | recursAt (const KDateTime &dt) const |
|
virtual bool | recursOn (const QDate &date, const KDateTime::Spec &timeSpec) const |
|
QString | relatedTo (RelType relType=RelTypeParent) const |
|
void | removeAlarm (const Alarm::Ptr &alarm) |
|
QStringList | resources () const |
|
int | revision () const |
|
QString | richDescription () const |
|
QString | richLocation () const |
|
QString | richSummary () const |
|
QString | schedulingID () const |
|
Secrecy | secrecy () const |
|
void | setAllDay (bool allDay) |
|
void | setAltDescription (const QString &altdescription) |
|
void | setCategories (const QString &catStr) |
|
void | setCategories (const QStringList &categories) |
|
void | setCreated (const KDateTime &dt) |
|
void | setCustomStatus (const QString &status) |
|
void | setDescription (const QString &description) |
|
void | setDescription (const QString &description, bool isRich) |
|
void | setGeoLatitude (float geolatitude) |
|
void | setGeoLongitude (float geolongitude) |
|
void | setHasGeo (bool hasGeo) |
|
void | setLastModified (const KDateTime &lm) |
|
void | setLocalOnly (bool localonly) |
|
void | setLocation (const QString &location) |
|
void | setLocation (const QString &location, bool isRich) |
|
void | setPriority (int priority) |
|
void | setReadOnly (bool readonly) |
|
void | setRecurrenceId (const KDateTime &recurrenceId) |
|
void | setRelatedTo (const QString &uid, RelType relType=RelTypeParent) |
|
void | setResources (const QStringList &resources) |
|
void | setRevision (int rev) |
|
void | setSchedulingID (const QString &sid, const QString &uid=QString()) |
|
void | setSecrecy (Secrecy secrecy) |
|
void | setStatus (Status status) |
|
void | setSummary (const QString &summary) |
|
void | setSummary (const QString &summary, bool isRich) |
|
void | setThisAndFuture (bool thisAndFuture) |
|
virtual QList< KDateTime > | startDateTimesForDate (const QDate &date, const KDateTime::Spec &timeSpec=KDateTime::LocalZone) const |
|
virtual QList< KDateTime > | startDateTimesForDateTime (const KDateTime &datetime) const |
|
Status | status () const |
|
QString | summary () const |
|
bool | summaryIsRich () const |
|
bool | supportsGroupwareCommunication () const |
|
bool | thisAndFuture () const |
|
QString | writeAttachmentToTempFile (const Attachment::Ptr &attachment) const |
|
| IncidenceBase () |
|
virtual | ~IncidenceBase () |
|
void | addAttendee (const Attendee::Ptr &attendee, bool doUpdate=true) |
|
void | addComment (const QString &comment) |
|
void | addContact (const QString &contact) |
|
bool | allDay () const |
|
Attendee::Ptr | attendeeByMail (const QString &email) const |
|
Attendee::Ptr | attendeeByMails (const QStringList &emails, const QString &email=QString()) const |
|
Attendee::Ptr | attendeeByUid (const QString &uid) const |
|
int | attendeeCount () const |
|
Attendee::List | attendees () const |
|
void | clearAttendees () |
|
void | clearComments () |
|
void | clearContacts () |
|
QStringList | comments () const |
|
QStringList | contacts () const |
|
void | deleteAttendee (const Attendee::Ptr &attendee, bool doUpdate=true) |
|
QSet< IncidenceBase::Field > | dirtyFields () const |
|
virtual KDateTime | dtStart () const |
|
Duration | duration () const |
|
void | endUpdates () |
|
bool | hasDuration () const |
|
bool | isReadOnly () const |
|
KDateTime | lastModified () const |
|
bool | operator!= (const IncidenceBase &ib) const |
|
IncidenceBase & | operator= (const IncidenceBase &other) |
|
bool | operator== (const IncidenceBase &ib) const |
|
Person::Ptr | organizer () const |
|
void | registerObserver (IncidenceObserver *observer) |
|
bool | removeComment (const QString &comment) |
|
bool | removeContact (const QString &contact) |
|
void | resetDirtyFields () |
|
void | setAllDay (bool allDay) |
|
void | setDirtyFields (const QSet< IncidenceBase::Field > &) |
|
void | setHasDuration (bool hasDuration) |
|
void | setOrganizer (const Person::Ptr &organizer) |
|
void | setOrganizer (const QString &organizer) |
|
void | setUid (const QString &uid) |
|
void | setUrl (const QUrl &url) |
|
void | startUpdates () |
|
QString | uid () const |
|
void | unRegisterObserver (IncidenceObserver *observer) |
|
void | update () |
|
void | updated () |
|
KUrl | uri () const |
|
QUrl | url () const |
|
| CustomProperties () |
|
| CustomProperties (const CustomProperties &other) |
|
virtual | ~CustomProperties () |
|
QMap< QByteArray, QString > | customProperties () const |
|
QString | customProperty (const QByteArray &app, const QByteArray &key) const |
|
QString | nonKDECustomProperty (const QByteArray &name) const |
|
QString | nonKDECustomPropertyParameters (const QByteArray &name) const |
|
CustomProperties & | operator= (const CustomProperties &other) |
|
bool | operator== (const CustomProperties &properties) const |
|
void | removeCustomProperty (const QByteArray &app, const QByteArray &key) |
|
void | removeNonKDECustomProperty (const QByteArray &name) |
|
void | setCustomProperties (const QMap< QByteArray, QString > &properties) |
|
void | setCustomProperty (const QByteArray &app, const QByteArray &key, const QString &value) |
|
void | setNonKDECustomProperty (const QByteArray &name, const QString &value, const QString ¶meters=QString()) |
|
This class provides an Event in the sense of RFC2445.
Definition at line 41 of file event.h.
bool Event::isMultiDay |
( |
const KDateTime::Spec & | spec = KDateTime::Spec() | ) |
const |
Returns true if the event spans multiple days, otherwise return false.
For recurring events, it returns true if the first occurrence spans multiple days, otherwise returns false. Other occurrences might have a different span due to day light savings changes.
- Parameters
-
spec | If set, looks if the event is multiday for the given spec. If not set, looks if event this multiday for its spec. |
Definition at line 198 of file event.cpp.