KCal::IncidenceBase Class Reference
This class provides the base class common to all calendar components. More...
#include <incidencebase.h>
Inheritance diagram for KCal::IncidenceBase:


Public Types | |
enum | { SYNCNONE = 0, SYNCMOD = 1, SYNCDEL = 3 } |
Public Member Functions | |
IncidenceBase (const IncidenceBase &) | |
bool | operator== (const IncidenceBase &) const |
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 (QString &comment) |
void | clearComments () |
QStringList | comments () const |
void | addAttendee (Attendee *a, 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 Attributes | |
bool | mReadOnly |
Detailed Description
This class provides the base class common to all calendar components.
Definition at line 40 of file incidencebase.h.
Member Enumeration Documentation
|
Pilot synchronization states.
Definition at line 167 of file incidencebase.h. |
Member Function Documentation
|
Set the unique id for the event.
Definition at line 106 of file incidencebase.cpp. References updated(). Referenced by KCal::ICalFormat::createScheduleMessage(), KCal::Incidence::recreate(), KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return the unique id for the event.
Definition at line 112 of file incidencebase.cpp. Referenced by KCal::ICalFormat::createScheduleMessage(), KCal::CalendarLocal::deleteEvent(), KCal::VCalFormat::eventToVEvent(), KCal::VCalFormat::eventToVTodo(), KCal::CalendarLocal::insertEvent(), KCal::ICalFormat::parseScheduleMessage(), KCal::Calendar::removeRelations(), and KCal::Incidence::schedulingID(). |
|
Sets the time the incidence was last modified.
Definition at line 117 of file incidencebase.cpp. Referenced by KCal::Incidence::recreate(), KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return the time the incidence was last modified.
Definition at line 131 of file incidencebase.cpp. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
sets the organizer for the event
Definition at line 136 of file incidencebase.cpp. References updated(). Referenced by KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Set readonly status.
Reimplemented in KCal::Incidence. Definition at line 161 of file incidencebase.cpp. Referenced by KCal::Incidence::setReadOnly(). |
|
Return if the object is read-only.
Definition at line 75 of file incidencebase.h. |
|
for setting the event's starting date/time with a QDateTime.
Reimplemented in KCal::Incidence, and KCal::Todo. Definition at line 166 of file incidencebase.cpp. References updated(). Referenced by KCal::Todo::setDtStart(), and KCal::Incidence::setDtStart(). |
|
|
returns an event's starting time as a string formatted according to the users locale settings
Definition at line 178 of file incidencebase.cpp. References dtStart(). Referenced by KCal::SelectDialog::SelectDialog(). |
|
returns an event's starting date as a string formatted according to the users locale settings
Definition at line 183 of file incidencebase.cpp. References dtStart(). Referenced by KCal::SelectDialog::SelectDialog(). |
|
returns an event's starting date and time as a string formatted according to the users locale settings
Definition at line 188 of file incidencebase.cpp. References dtStart(). |
|
Return true or false depending on whether the incidence "floats," i.e. has a date but no time attached to it. Definition at line 194 of file incidencebase.cpp. Referenced by KCal::VCalFormat::eventToVEvent(), KCal::VCalFormat::eventToVTodo(), and KCal::SelectDialog::SelectDialog(). |
|
Set whether the incidence floats, i.e. has a date but no time attached to it. Definition at line 199 of file incidencebase.cpp. References updated(). Referenced by KCal::ResourceKABC::doLoad(), and KCal::VCalFormat::VEventToEvent(). |
|
Add a comment to this incidence. Does not add a linefeed character. Just appends the text as passed in.
Definition at line 207 of file incidencebase.cpp. Referenced by KCal::Todo::setHasStartDate(). |
|
Remove a comment from the event. Removes first comment whose string is an exact match for the string passed in.
Definition at line 212 of file incidencebase.cpp. Referenced by KCal::Todo::setHasStartDate(). |
|
Delete all comments associated with this incidence.
Definition at line 227 of file incidencebase.cpp. |
|
Return all comments associated with this incidence.
Definition at line 232 of file incidencebase.cpp. Referenced by KCal::Todo::setHasStartDate(). |
|
Add Attendee to this incidence. IncidenceBase takes ownership of the Attendee object.
Definition at line 238 of file incidencebase.cpp. References KCal::Person::name(), KCal::Person::setName(), and updated(). Referenced by KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Remove all Attendees.
Definition at line 271 of file incidencebase.cpp. |
|
Return list of attendees.
Definition at line 145 of file incidencebase.h. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Return number of attendees.
Definition at line 149 of file incidencebase.h. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Return the Attendee with this email address.
Definition at line 277 of file incidencebase.cpp. |
|
Return first Attendee with one of the given email addresses.
Definition at line 287 of file incidencebase.cpp. |
|
Return attendee with given uid.
Definition at line 303 of file incidencebase.cpp. |
|
Set synchronisation satus.
Definition at line 336 of file incidencebase.cpp. Referenced by KCal::Incidence::recreate(), KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return synchronisation status.
Definition at line 349 of file incidencebase.cpp. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Set Pilot Id.
Definition at line 354 of file incidencebase.cpp. Referenced by KCal::Incidence::recreate(), KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return Pilot Id.
Definition at line 362 of file incidencebase.cpp. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Register observer. The observer is notified when the observed object changes. Definition at line 367 of file incidencebase.cpp. Referenced by KCal::CalendarLocal::addEvent(), KCal::CalendarLocal::addJournal(), and KCal::CalendarLocal::addTodo(). |
|
Unregister observer. It isn't notified anymore about changes. Definition at line 372 of file incidencebase.cpp. |
|
The documentation for this class was generated from the following files: