libkcal
KCal::IncidenceBase Class Reference
#include <incidencebase.h>
Inheritance diagram for KCal::IncidenceBase:

Detailed Description
This class provides the base class common to all calendar components.
Definition at line 45 of file incidencebase.h.
Public Types | |
enum | { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 } |
Public Member Functions | |
IncidenceBase () | |
IncidenceBase (const IncidenceBase &) | |
virtual | ~IncidenceBase () |
IncidenceBase & | operator= (const IncidenceBase &i) |
bool | operator== (const IncidenceBase &) const |
virtual bool | accept (Visitor &) |
virtual QCString | type () const =0 |
void | setUid (const QString &) |
QString | uid () const |
void | setLastModified (const QDateTime &lm) |
QDateTime | lastModified () const |
void | setOrganizer (const Person &o) |
void | setOrganizer (const QString &o) |
Person | organizer () const |
virtual void | setReadOnly (bool) |
bool | isReadOnly () const |
virtual void | setDtStart (const QDateTime &dtStart) |
virtual QDateTime | dtStart () const |
virtual QString | dtStartTimeStr () const |
virtual QString | dtStartDateStr (bool shortfmt=true) const |
virtual QString | dtStartStr () const |
virtual void | setDuration (int seconds) |
int | duration () const |
void | setHasDuration (bool) |
bool | hasDuration () const |
bool | doesFloat () const |
void | setFloats (bool f) |
void | addComment (const QString &comment) |
bool | removeComment (const QString &comment) |
void | clearComments () |
QStringList | comments () const |
void | addAttendee (Attendee *attendee, bool doUpdate=true) |
void | clearAttendees () |
const Attendee::List & | attendees () const |
int | attendeeCount () const |
Attendee * | attendeeByMail (const QString &) const |
Attendee * | attendeeByMails (const QStringList &, const QString &email=QString::null) const |
Attendee * | attendeeByUid (const QString &uid) const |
void | setSyncStatus (int status) |
void | setSyncStatusSilent (int status) |
int | syncStatus () const |
void | setPilotId (unsigned long id) |
unsigned long | pilotId () const |
void | registerObserver (Observer *) |
void | unRegisterObserver (Observer *) |
void | updated () |
void | updatedSilent () |
Protected Member Functions | |
virtual void | customPropertyUpdated () |
Protected Attributes | |
bool | mReadOnly |
Classes | |
class | Observer |
class | Visitor |
This class provides the interface for a visitor of calendar components. More... |
Member Enumeration Documentation
|
Pilot synchronization states.
Definition at line 222 of file incidencebase.h. |
Member Function Documentation
|
Accept IncidenceVisitor. A class taking part in the visitor mechanism has to provide this implementation: bool accept(Visitor &v) { return v.visit(this); } Definition at line 107 of file incidencebase.h. |
|
Add Attendee to this incidence. IncidenceBase takes ownership of the Attendee object.
Definition at line 262 of file incidencebase.cpp. |
|
Add a comment to this incidence. Does not add a linefeed character. Just appends the text as passed in.
Definition at line 231 of file incidencebase.cpp. |
|
Return the Attendee with this email address.
Definition at line 301 of file incidencebase.cpp. |
|
Return first Attendee with one of the given email addresses.
Definition at line 311 of file incidencebase.cpp. |
|
Return attendee with given uid.
Definition at line 327 of file incidencebase.cpp. |
|
Return number of attendees.
Definition at line 204 of file incidencebase.h. |
|
Return list of attendees.
Definition at line 200 of file incidencebase.h. |
|
Remove all Attendees.
Definition at line 295 of file incidencebase.cpp. |
|
Delete all comments associated with this incidence.
Definition at line 251 of file incidencebase.cpp. |
|
Return all comments associated with this incidence.
Definition at line 256 of file incidencebase.cpp. |
|
The default implementation does nothing: override in derived classes to perform change processing.
Reimplemented from KCal::CustomProperties. Definition at line 411 of file incidencebase.cpp. |
|
Return true or false depending on whether the incidence "floats," i.e. has a date but no time attached to it. Definition at line 218 of file incidencebase.cpp. |
|
returns an event's starting date/time as a QDateTime.
Definition at line 197 of file incidencebase.cpp. |
|
returns an event's starting date as a string formatted according to the users locale settings
Definition at line 207 of file incidencebase.cpp. |
|
returns an event's starting date and time as a string formatted according to the users locale settings
Definition at line 212 of file incidencebase.cpp. |
|
returns an event's starting time as a string formatted according to the users locale settings
Definition at line 202 of file incidencebase.cpp. |
|
Return if the object is read-only.
Definition at line 129 of file incidencebase.h. |
|
Return the time the incidence was last modified.
Definition at line 155 of file incidencebase.cpp. |
|
Return Pilot Id.
Definition at line 386 of file incidencebase.cpp. |
|
Register observer. The observer is notified when the observed object changes. Definition at line 391 of file incidencebase.cpp. |
|
Remove a comment from the event. Removes first comment whose string is an exact match for the string passed in.
Definition at line 236 of file incidencebase.cpp. |
|
for setting the event's starting date/time with a QDateTime.
Reimplemented in KCal::Incidence, and KCal::Todo. Definition at line 190 of file incidencebase.cpp. |
|
Set whether the incidence floats, i.e. has a date but no time attached to it. Reimplemented in KCal::Incidence. Definition at line 223 of file incidencebase.cpp. |
|
Sets the time the incidence was last modified.
Definition at line 141 of file incidencebase.cpp. |
|
sets the organizer for the event
Definition at line 160 of file incidencebase.cpp. |
|
Set Pilot Id.
Definition at line 378 of file incidencebase.cpp. |
|
Set readonly status.
Reimplemented in KCal::Incidence. Definition at line 185 of file incidencebase.cpp. |
|
Set synchronisation satus.
Definition at line 360 of file incidencebase.cpp. |
|
Set the unique id for the event.
Definition at line 130 of file incidencebase.cpp. |
|
Return synchronisation status.
Definition at line 373 of file incidencebase.cpp. |
|
Return the unique id for the event.
Definition at line 136 of file incidencebase.cpp. |
|
Unregister observer. It isn't notified anymore about changes. Definition at line 396 of file incidencebase.cpp. |
|
Call this to notify the observers after the IncidenceBas object has changed.
Definition at line 401 of file incidencebase.cpp. |
The documentation for this class was generated from the following files: