18 #ifndef KCALCORE_INCIDENCE_H 19 #define KCALCORE_INCIDENCE_H 21 #include "kcalendarcore_export.h" 25 #include "recurrence.h" 26 #include "conference.h" 32 #define INVALID_LATLON 255.0 //krazy:exclude=defines (part of the API) 61 Q_PROPERTY(
QString description READ description WRITE setDescription)
62 Q_PROPERTY(
QString summary READ summary WRITE setSummary)
63 Q_PROPERTY(
QString location READ location WRITE setLocation)
64 Q_PROPERTY(
bool hasGeo READ hasGeo WRITE setHasGeo)
65 Q_PROPERTY(
float geoLatitude READ geoLatitude WRITE setGeoLatitude)
66 Q_PROPERTY(
float geoLongitude READ geoLongitude WRITE setGeoLongitude)
67 Q_PROPERTY(
QStringList categories READ categories WRITE setCategories)
68 Q_PROPERTY(
int priority READ priority WRITE setPriority)
69 Q_PROPERTY(
QDateTime created READ created WRITE setCreated)
72 Q_PROPERTY(QVariantList attachments READ attachmentsVariant)
73 Q_PROPERTY(QVariantList conferences READ conferencesVariant)
148 Q_REQUIRED_RESULT
QString instanceIdentifier()
const;
156 void setReadOnly(
bool readonly)
override;
161 void setLastModified(
const QDateTime &lm)
override;
171 void setLocalOnly(
bool localonly);
179 Q_REQUIRED_RESULT
bool localOnly()
const;
184 void setAllDay(
bool allDay)
override;
205 Q_REQUIRED_RESULT
QDateTime created()
const;
213 void setRevision(
int rev);
219 Q_REQUIRED_RESULT
int revision()
const;
227 void setDtStart(
const QDateTime &dt)
override;
241 void setDescription(
const QString &description,
bool isRich);
250 void setDescription(
const QString &description);
257 Q_REQUIRED_RESULT
QString description()
const;
264 Q_REQUIRED_RESULT
QString richDescription()
const;
270 Q_REQUIRED_RESULT
bool descriptionIsRich()
const;
279 void setSummary(
const QString &summary,
bool isRich);
287 void setSummary(
const QString &summary);
294 Q_REQUIRED_RESULT
QString summary()
const;
301 Q_REQUIRED_RESULT
QString richSummary()
const;
307 Q_REQUIRED_RESULT
bool summaryIsRich()
const;
316 void setLocation(
const QString &location,
bool isRich);
325 void setLocation(
const QString &location);
332 Q_REQUIRED_RESULT
QString location()
const;
339 Q_REQUIRED_RESULT
QString richLocation()
const;
345 Q_REQUIRED_RESULT
bool locationIsRich()
const;
362 void setCategories(
const QString &catStr);
374 Q_REQUIRED_RESULT
QString categoriesStr()
const;
387 void setRelatedTo(
const QString &uid,
RelType relType = RelTypeParent);
400 Q_REQUIRED_RESULT
QString relatedTo(
RelType relType = RelTypeParent)
const;
409 void setColor(
const QString &colorName);
416 Q_REQUIRED_RESULT
QString color()
const;
426 Q_REQUIRED_RESULT
bool hasAltDescription()
const;
434 void setAltDescription(
const QString &altdescription);
440 Q_REQUIRED_RESULT
QString altDescription()
const;
455 void clearRecurrence();
460 Q_REQUIRED_RESULT
bool recurs()
const;
465 Q_REQUIRED_RESULT ushort recurrenceType()
const;
470 virtual bool recursOn(
const QDate &date,
const QTimeZone &timeZone)
const;
475 Q_REQUIRED_RESULT
bool recursAt(
const QDateTime &dt)
const;
522 void addAttachment(
const Attachment &attachment);
531 void deleteAttachments(
const QString &mime);
551 void clearAttachments();
563 void setSecrecy(
Secrecy secrecy);
569 Q_REQUIRED_RESULT
Secrecy secrecy()
const;
578 void setStatus(
Status status);
587 void setCustomStatus(
const QString &status);
593 Q_REQUIRED_RESULT
QString customStatus()
const;
599 Q_REQUIRED_RESULT
Status status()
const;
628 void setPriority(
int priority);
634 Q_REQUIRED_RESULT
int priority()
const;
640 Q_REQUIRED_RESULT
bool hasGeo()
const;
647 void setHasGeo(
bool hasGeo);
654 void setGeoLatitude(
float geolatitude);
661 Q_REQUIRED_RESULT
float geoLatitude()
const;
668 void setGeoLongitude(
float geolongitude);
675 Q_REQUIRED_RESULT
float geoLongitude()
const;
681 Q_REQUIRED_RESULT
bool hasRecurrenceId()
const;
690 void setRecurrenceId(
const QDateTime &recurrenceId);
697 Q_REQUIRED_RESULT
QDateTime recurrenceId()
const override;
706 void setThisAndFuture(
bool thisAndFuture);
714 Q_REQUIRED_RESULT
bool thisAndFuture()
const;
755 Q_REQUIRED_RESULT
bool hasEnabledAlarms()
const;
782 void addConference(
const Conference &conference);
788 void clearConferences();
818 void setSchedulingID(
const QString &sid,
826 Q_REQUIRED_RESULT
QString schedulingID()
const;
835 void recurrenceUpdated(
Recurrence *recurrence)
override;
850 virtual bool supportsGroupwareCommunication()
const = 0;
895 Q_DECL_HIDDEN QVariantList attachmentsVariant()
const;
896 Q_DECL_HIDDEN QVariantList conferencesVariant()
const;
909 return qHash(key.
data());
Secrecy
The different types of incidence access classifications.
RelType
The different types of RELTYPE values specified by the RFC.
QSharedPointer< Incidence > Ptr
A shared pointer to an Incidence.
Represents information related to a conference information of an Calendar Incidence, typically a meeting or task (to-do).
An abstract class that provides a common base for all calendar incidence classes. ...
The related incidence is a child.
Represents information related to an attachment for a Calendar Incidence.
The related incidence is a parent.
This file is part of the API for handling calendar data and defines the Attachment class...
This file is part of the API for handling calendar data and defines the Alarm class.
This class represents a recurrence rule for a calendar incidence.
This file is part of the API for handling calendar data and defines the IncidenceBase class...
event or to-do canceled; journal removed
QVector< Ptr > List
List of incidences.
Status
The different types of overall incidence status or confirmation.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Namespace for all KCalendarCore types.