31 #ifndef KCALCORE_INCIDENCE_H
32 #define KCALCORE_INCIDENCE_H
34 #include "kcalcore_export.h"
38 #include "recurrence.h"
40 #include <QtCore/QMetaType>
44 #define INVALID_LATLON 255.0
112 typedef QSharedPointer<Incidence>
Ptr;
143 void setReadOnly(
bool readonly );
149 void setLastModified(
const KDateTime &lm );
159 void setLocalOnly(
bool localonly );
167 bool localOnly()
const;
173 void setAllDay(
bool allDay );
188 void setCreated(
const KDateTime &dt );
194 KDateTime created()
const;
202 void setRevision(
int rev );
208 int revision()
const;
216 virtual void setDtStart(
const KDateTime &dt );
222 virtual void shiftTimes(
const KDateTime::Spec &oldSpec,
223 const KDateTime::Spec &newSpec );
232 void setDescription(
const QString &description,
bool isRich );
241 void setDescription(
const QString &description );
248 QString description()
const;
255 QString richDescription()
const;
261 bool descriptionIsRich()
const;
270 void setSummary(
const QString &summary,
bool isRich );
278 void setSummary(
const QString &summary );
285 QString summary()
const;
292 QString richSummary()
const;
298 bool summaryIsRich()
const;
307 void setLocation(
const QString &location,
bool isRich );
316 void setLocation(
const QString &location );
323 QString location()
const;
330 QString richLocation()
const;
336 bool locationIsRich()
const;
344 void setCategories(
const QStringList &categories );
353 void setCategories(
const QString &catStr );
359 QStringList categories()
const;
365 QString categoriesStr()
const;
378 void setRelatedTo(
const QString &uid,
RelType relType = RelTypeParent );
391 QString relatedTo(
RelType relType = RelTypeParent )
const;
401 bool hasAltDescription()
const;
409 void setAltDescription(
const QString &altdescription );
415 QString altDescription()
const;
430 void clearRecurrence();
442 ushort recurrenceType()
const;
448 virtual bool recursOn(
const QDate &date,
const KDateTime::Spec &timeSpec )
const;
454 bool recursAt(
const KDateTime &dt )
const;
467 virtual QList<KDateTime> startDateTimesForDate(
469 const KDateTime::Spec &timeSpec = KDateTime::LocalZone )
const;
480 virtual QList<KDateTime> startDateTimesForDateTime(
481 const KDateTime &datetime )
const;
492 virtual KDateTime endDateForStart(
const KDateTime &startDt )
const;
522 void deleteAttachments(
const QString &mime );
542 void clearAttachments();
552 QString writeAttachmentToTempFile(
const Attachment::Ptr &attachment )
const;
558 void clearTempFiles();
570 void setSecrecy(
Secrecy secrecy );
585 void setStatus(
Status status );
594 void setCustomStatus(
const QString &status );
600 QString customStatus()
const;
619 void setResources(
const QStringList &resources );
625 QStringList resources()
const;
635 void setPriority(
int priority );
641 int priority()
const;
654 void setHasGeo(
bool hasGeo );
661 void setGeoLatitude(
float geolatitude );
668 float geoLatitude()
const;
675 void setGeoLongitude(
float geolongitude );
682 float geoLongitude()
const;
688 bool hasRecurrenceId()
const;
695 void setRecurrenceId(
const KDateTime &recurrenceId );
702 KDateTime recurrenceId()
const;
743 bool hasEnabledAlarms()
const;
773 void setSchedulingID(
const QString &sid,
774 const QString &uid = QString() );
781 QString schedulingID()
const;
790 virtual void recurrenceUpdated(
Recurrence *recurrence );
799 virtual QLatin1String iconName(
const KDateTime &recurrenceId = KDateTime() )
const = 0;
805 bool supportsGroupwareCommunication() const;
846 inline uint
qHash( const QSharedPointer<KCalCore::
Incidence> &key )
848 return qHash<KCalCore::Incidence>( key.data() );
QSharedPointer< Attachment > Ptr
A shared pointer to an Attachment object.
QSharedPointer< Alarm > Ptr
A shared pointer to an Alarm object.
An abstract class that provides a common base for all calendar incidence classes. ...
QVector< Ptr > List
List of attachments.
QVector< Ptr > List
List of alarms.
QSharedPointer< Incidence > Ptr
A shared pointer to an Incidence.
The related incidence is a child.
The related incidence is a parent.
This class represents a recurrence rule for a calendar incidence.
event or to-do canceled; journal removed
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 file is part of the API for handling calendar data and defines the IncidenceBase class...
QVector< Ptr > List
List of incidences.
uint qHash(const KCalCore::Period &key)
Return a hash value for a Period argument.
Secrecy
The different types of incidence access classifications.
Status
The different types of overall incidence status or confirmation.
RelType
The different types of RELTYPE values specified by the RFC.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...