54#ifndef KCAL_INCIDENCEBASE_H
55#define KCAL_INCIDENCEBASE_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();
This file is part of the API for handling calendar data and defines the Attendee class.
Represents information related to an attendee of an Calendar Incidence, typically a meeting or task (...
A class to manage custom calendar properties.
Represents a span of time measured in seconds or days.
This class provides an Event in the sense of RFC2445.
Provides information about the free/busy time of a calendar.
The IncidenceObserver class.
virtual void incidenceUpdated(IncidenceBase *incidenceBase)=0
The IncidenceObserver interface.
virtual ~IncidenceObserver()
Destroys the IncidenceObserver.
This class provides the interface for a visitor of calendar components.
Visitor()
Constructor is protected to prevent direct creation of visitor base class.
virtual ~Visitor()
Destruct Incidence::Visitor.
An abstract class that provides a common base for all calendar incidence classes.
bool mReadOnly
Identifies a read-only incidence.
virtual QByteArray type() const =0
Prints the type of Incidence as a string.
virtual bool accept(Visitor &v)
Accept IncidenceVisitor.
bool isReadOnly() const
Returns true the object is read-only; false otherwise.
Provides a Journal in the sense of RFC2445.
This class provides a template for lists of pointers.
Represents a person, by name ane email address.
A QList which can be sorted.
Provides a To-do in the sense of RFC2445.
This file is part of the API for handling calendar data and defines the CustomProperties class.
This file is part of the API for handling calendar data and defines the Duration class.
This file is part of the API for handling calendar data and defines the Sortable List class.