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