KCal Library
Go to the documentation of this file.
54 #ifndef KCAL_INCIDENCEBASE_H
55 #define KCAL_INCIDENCEBASE_H
62 #include <kdatetime.h>
64 #include <QtCore/QStringList>
65 #include <QtCore/QByteArray>
123 virtual bool visit(
Event *event );
130 virtual bool visit(
Todo *todo );
137 virtual bool visit(
Journal *journal );
144 virtual bool visit(
FreeBusy *freebusy );
237 virtual QByteArray
type()
const = 0;
251 void setUid(
const QString &uid );
273 void setLastModified(
const KDateTime &lm );
280 KDateTime lastModified()
const;
288 void setOrganizer(
const Person &organizer );
296 void setOrganizer(
const QString &organizer );
312 virtual void setReadOnly(
bool readOnly );
328 virtual void setDtStart(
const KDateTime &dtStart );
334 virtual KDateTime dtStart()
const;
347 virtual KCAL_DEPRECATED QString dtStartTimeStr(
348 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
361 virtual KCAL_DEPRECATED QString dtStartDateStr(
362 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
375 virtual KCAL_DEPRECATED QString dtStartStr(
376 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
385 virtual void setDuration(
const Duration &duration );
401 void setHasDuration(
bool hasDuration );
408 bool hasDuration()
const;
426 void setAllDay(
bool allDay );
442 virtual void shiftTimes(
const KDateTime::Spec &oldSpec,
443 const KDateTime::Spec &newSpec );
452 void addComment(
const QString &comment );
462 bool removeComment(
const QString &comment );
467 void clearComments();
472 QStringList comments()
const;
481 void addAttendee(
Attendee *attendee,
bool doUpdate =
true );
486 void clearAttendees();
496 int attendeeCount()
const;
505 Attendee *attendeeByMail(
const QString &email )
const;
517 Attendee *attendeeByMails(
const QStringList &emails,
518 const QString &email = QString() )
const;
526 Attendee *attendeeByUid(
const QString &uid )
const;
536 void registerObserver( IncidenceObserver *observer );
545 void unRegisterObserver( IncidenceObserver *observer );
572 virtual void customPropertyUpdated();
Provides information about the free/busy time of a calendar.
A class to manage custom calendar properties.
virtual void incidenceUpdated(IncidenceBase *incidenceBase)=0
The IncidenceObserver interface.
Visitor()
Constructor is protected to prevent direct creation of visitor base class.
Represents a person, by name ane email address.
A QList which can be sorted.
This class provides an Event in the sense of RFC2445.
Provides a To-do in the sense of RFC2445.
bool isReadOnly() const
Returns true the object is read-only; false otherwise.
This class provides a template for lists of pointers.
Represents information related to an attendee of an Calendar Incidence, typically a meeting or task (...
virtual bool accept(Visitor &v)
Accept IncidenceVisitor.
virtual QByteArray type() const =0
Prints the type of Incidence as a string.
virtual ~IncidenceObserver()
Destroys the IncidenceObserver.
This class provides the interface for a visitor of calendar components.
Provides a Journal in the sense of RFC2445.
virtual ~Visitor()
Destruct Incidence::Visitor.
Represents a span of time measured in seconds or days.
The IncidenceObserver class.
An abstract class that provides a common base for all calendar incidence classes.
bool mReadOnly
Identifies a read-only incidence.
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.