KCalendarCore
Go to the documentation of this file.
18 #ifndef KCALCORE_INCIDENCE_H
19 #define KCALCORE_INCIDENCE_H
23 #include "conference.h"
25 #include "kcalendarcore_export.h"
26 #include "recurrence.h"
32 #define INVALID_LATLON 255.0 // krazy:exclude=defines (part of the API)
38 class IncidencePrivate;
62 Q_PROPERTY(
QString description READ description WRITE setDescription)
63 Q_PROPERTY(
QString summary READ summary WRITE setSummary)
64 Q_PROPERTY(
QString location READ location WRITE setLocation)
65 #if KCALENDARCORE_BUILD_DEPRECATED_SINCE(5, 89)
66 Q_PROPERTY(
bool hasGeo READ hasGeo WRITE setHasGeo)
68 Q_PROPERTY(
bool hasGeo READ hasGeo)
70 Q_PROPERTY(
float geoLatitude READ geoLatitude WRITE setGeoLatitude)
71 Q_PROPERTY(
float geoLongitude READ geoLongitude WRITE setGeoLongitude)
72 Q_PROPERTY(
QStringList categories READ categories WRITE setCategories)
73 Q_PROPERTY(
int priority READ priority WRITE setPriority)
74 Q_PROPERTY(
QDateTime created READ created WRITE setCreated)
77 Q_PROPERTY(QVariantList attachments READ attachmentsVariant)
78 Q_PROPERTY(QVariantList conferences READ conferencesVariant)
128 #if KCALENDARCORE_BUILD_DEPRECATED_SINCE(5, 91)
165 Q_REQUIRED_RESULT
QString instanceIdentifier()
const;
173 void setReadOnly(
bool readonly)
override;
178 void setLastModified(
const QDateTime &lm)
override;
188 void setLocalOnly(
bool localonly);
196 Q_REQUIRED_RESULT
bool localOnly()
const;
201 void setAllDay(
bool allDay)
override;
222 Q_REQUIRED_RESULT
QDateTime created()
const;
230 void setRevision(
int rev);
236 Q_REQUIRED_RESULT
int revision()
const;
244 void setDtStart(
const QDateTime &dt)
override;
258 void setDescription(
const QString &description,
bool isRich);
267 void setDescription(
const QString &description);
274 Q_REQUIRED_RESULT
QString description()
const;
281 Q_REQUIRED_RESULT
QString richDescription()
const;
287 Q_REQUIRED_RESULT
bool descriptionIsRich()
const;
296 void setSummary(
const QString &summary,
bool isRich);
304 void setSummary(
const QString &summary);
311 Q_REQUIRED_RESULT
QString summary()
const;
318 Q_REQUIRED_RESULT
QString richSummary()
const;
324 Q_REQUIRED_RESULT
bool summaryIsRich()
const;
333 void setLocation(
const QString &location,
bool isRich);
342 void setLocation(
const QString &location);
349 Q_REQUIRED_RESULT
QString location()
const;
356 Q_REQUIRED_RESULT
QString richLocation()
const;
362 Q_REQUIRED_RESULT
bool locationIsRich()
const;
379 void setCategories(
const QString &catStr);
391 Q_REQUIRED_RESULT
QString categoriesStr()
const;
404 void setRelatedTo(
const QString &uid,
RelType relType = RelTypeParent);
417 Q_REQUIRED_RESULT
QString relatedTo(
RelType relType = RelTypeParent)
const;
426 void setColor(
const QString &colorName);
433 Q_REQUIRED_RESULT
QString color()
const;
443 Q_REQUIRED_RESULT
bool hasAltDescription()
const;
451 void setAltDescription(
const QString &altdescription);
457 Q_REQUIRED_RESULT
QString altDescription()
const;
472 void clearRecurrence();
477 Q_REQUIRED_RESULT
bool recurs()
const;
482 Q_REQUIRED_RESULT ushort recurrenceType()
const;
487 virtual bool recursOn(
const QDate &date,
const QTimeZone &timeZone)
const;
492 Q_REQUIRED_RESULT
bool recursAt(
const QDateTime &dt)
const;
538 void addAttachment(
const Attachment &attachment);
547 void deleteAttachments(
const QString &mime);
567 void clearAttachments();
579 void setSecrecy(
Secrecy secrecy);
585 Q_REQUIRED_RESULT
Secrecy secrecy()
const;
611 Q_REQUIRED_RESULT
QString customStatus()
const;
646 void setPriority(
int priority);
652 Q_REQUIRED_RESULT
int priority()
const;
658 Q_REQUIRED_RESULT
bool hasGeo()
const;
660 #if KCALENDARCORE_BUILD_DEPRECATED_SINCE(5, 89)
668 KCALENDARCORE_DEPRECATED_VERSION(5, 89,
"Use setGeoLatitude() and setGeoLongitude()")
669 void setHasGeo(
bool hasGeo);
678 void setGeoLatitude(
float geolatitude);
686 Q_REQUIRED_RESULT
float geoLatitude()
const;
694 void setGeoLongitude(
float geolongitude);
702 Q_REQUIRED_RESULT
float geoLongitude()
const;
708 Q_REQUIRED_RESULT
bool hasRecurrenceId()
const;
717 void setRecurrenceId(
const QDateTime &recurrenceId);
724 Q_REQUIRED_RESULT
QDateTime recurrenceId()
const override;
733 void setThisAndFuture(
bool thisAndFuture);
741 Q_REQUIRED_RESULT
bool thisAndFuture()
const;
782 Q_REQUIRED_RESULT
bool hasEnabledAlarms()
const;
808 void addConference(
const Conference &conference);
814 void clearConferences();
851 Q_REQUIRED_RESULT
QString schedulingID()
const;
860 void recurrenceUpdated(
Recurrence *recurrence)
override;
875 virtual bool supportsGroupwareCommunication()
const = 0;
889 #if KCALENDARCORE_BUILD_DEPRECATED_SINCE(5, 91)
932 Q_DECL_HIDDEN QVariantList attachmentsVariant()
const;
933 Q_DECL_HIDDEN QVariantList conferencesVariant()
const;
937 #if KCALENDARCORE_BUILD_DEPRECATED_SINCE(5, 91)
938 KCALENDARCORE_DEPRECATED_VERSION(5, 91,
"Do not use")
939 IncidencePrivate *const _ =
nullptr;
Status
The different types of overall incidence status or confirmation.
@ StatusInProcess
to-do in process
Namespace for all KCalendarCore types.
@ StatusFinal
journal is final
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
@ StatusTentative
event is tentative
@ RelTypeChild
The related incidence is a child.
An abstract class that provides a common base for all calendar incidence classes.
@ SecrecyPublic
Not secret (default)
QSharedPointer< Incidence > Ptr
A shared pointer to an Incidence.
@ StatusCompleted
to-do completed
@ RelTypeParent
The related incidence is a parent.
Q_SCRIPTABLE CaptureState status()
Represents information related to an attachment for a Calendar Incidence.
uint qHash(Qt3DCore::QNodeId id, uint seed)
Represents information related to a conference information of an Calendar Incidence,...
@ SecrecyConfidential
Secret to the owner and some others.
QVector< Ptr > List
List of incidences.
@ StatusCanceled
event or to-do canceled; journal removed
This class represents a recurrence rule for a calendar incidence.
@ RelTypeSibling
The related incidence is a peer.
Secrecy
The different types of incidence access classifications.
@ SecrecyPrivate
Secret to the owner.
@ StatusConfirmed
event is definite
@ StatusX
a non-standard status string
@ StatusNeedsAction
to-do needs action
RelType
The different types of RELTYPE values specified by the RFC.
@ StatusDraft
journal is draft
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:53:18 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.