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 Methods | |
IncidenceBase () | |
IncidenceBase (const IncidenceBase &) | |
virtual | ~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 QString &o) |
QString | organizer () const |
virtual void | setReadOnly (bool) |
bool | isReadOnly () const |
virtual void | setDtStart (const QDateTime &dtStart) |
QDateTime | dtStart () const |
QString | dtStartTimeStr () const |
QString | dtStartDateStr (bool shortfmt=true) const |
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 | addAttendee (Attendee *a, bool doUpdate=true) |
void | clearAttendees () |
const Attendee::List & | attendees () const |
int | attendeeCount () const |
Attendee * | attendeeByMail (const QString &) |
Attendee * | attendeeByMails (const QStringList &, const QString &email=QString::null) |
void | setSyncStatus (int status) |
int | syncStatus () const |
void | setPilotId (int id) |
int | pilotId () const |
void | registerObserver (Observer *) |
void | unRegisterObserver (Observer *) |
void | updated () |
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 131 of file incidencebase.h. |
Member Function Documentation
|
Set the unique id for the event.
Definition at line 104 of file incidencebase.cpp. References updated(). Referenced by KCal::Incidence::recreate(), KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return the unique id for the event.
Definition at line 110 of file incidencebase.cpp. Referenced by KCal::ResourceIMAP::addEvent(), KCal::ResourceIMAP::addJournal(), KCal::ResourceIMAP::addTodo(), KCal::ResourceIMAP::deleteEvent(), KCal::CalendarLocal::deleteEvent(), KCal::ResourceIMAP::deleteJournal(), KCal::ResourceIMAP::deleteTodo(), KCal::VCalFormat::eventToVEvent(), KCal::VCalFormat::eventToVTodo(), KCal::CalendarLocal::insertEvent(), KCal::ICalFormat::parseScheduleMessage(), KCal::Calendar::removeRelations(), KCal::Calendar::setupRelations(), and KCal::ResourceIMAP::update(). |
|
Sets the time the incidence was last modified.
Definition at line 115 of file incidencebase.cpp. References QTime::hour(), QTime::minute(), QTime::second(), QTime::setHMS(), QDateTime::setTime(), and QDateTime::time(). Referenced by KCal::Incidence::recreate(), KCal::ResourceIMAP::update(), KCal::CalendarLocal::update(), KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return the time the incidence was last modified.
Definition at line 129 of file incidencebase.cpp. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
sets the organizer for the event.
Definition at line 134 of file incidencebase.cpp. References QString::left(), QString::remove(), and updated(). Referenced by KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Set readonly status.
Reimplemented in KCal::Incidence. Definition at line 151 of file incidencebase.cpp. |
|
Return if the object is read-only.
Definition at line 72 of file incidencebase.h. |
|
for setting the event's starting date/time with a QDateTime.
Reimplemented in KCal::Incidence. Definition at line 156 of file incidencebase.cpp. References updated(). |
|
returns an event's starting date/time as a QDateTime.
Definition at line 163 of file incidencebase.cpp. Referenced by KCal::ResourceCached::addJournal(), KCal::CalendarResources::addJournal(), KCal::CalendarLocal::addJournal(), KCal::CalendarLocal::appendRecurringAlarms(), KCal::Event::dtEnd(), dtStartDateStr(), dtStartStr(), dtStartTimeStr(), KCal::VCalFormat::eventToVEvent(), KCal::VCalFormat::eventToVTodo(), KCal::Event::isMultiDay(), KCal::DndFactory::pasteIncidence(), KCal::VCalFormat::populate(), KCal::CalendarLocal::rawEvents(), KCal::CalendarLocal::rawEventsForDate(), KCal::Incidence::recurrence(), KCal::Alarm::time(), and KCal::VCalFormat::VEventToEvent(). |
|
returns an event's starting time as a string formatted according to the users locale settings.
Definition at line 168 of file incidencebase.cpp. References dtStart(). |
|
returns an event's starting date as a string formatted according to the users locale settings.
Definition at line 173 of file incidencebase.cpp. References dtStart(). |
|
returns an event's starting date and time as a string formatted according to the users locale settings.
Definition at line 178 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 184 of file incidencebase.cpp. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Set whether the incidence floats, i.e. has a date but no time attached to it. Definition at line 189 of file incidencebase.cpp. References updated(). Referenced by KCal::ResourceKABC::load(), and KCal::VCalFormat::VEventToEvent(). |
|
Add Attendee to this incidence. IncidenceBase takes ownership of the Attendee object.
Definition at line 197 of file incidencebase.cpp. References QString::left(), KCal::Person::name(), QString::remove(), KCal::Person::setName(), and updated(). Referenced by KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Remove all Attendees.
Definition at line 230 of file incidencebase.cpp. |
|
Return list of attendees.
Definition at line 113 of file incidencebase.h. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Return number of attendees.
Definition at line 117 of file incidencebase.h. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Return the Attendee with this email address.
Definition at line 236 of file incidencebase.cpp. |
|
Return first Attendee with one of the given email addresses.
Definition at line 246 of file incidencebase.cpp. References QString::isEmpty(). |
|
Set synchronisation satus.
Definition at line 283 of file incidencebase.cpp. Referenced by KCal::ResourceIMAP::update(), KCal::CalendarLocal::update(), KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return synchronisation status.
Definition at line 289 of file incidencebase.cpp. Referenced by KCal::VCalFormat::eventToVEvent(), and KCal::VCalFormat::eventToVTodo(). |
|
Set Pilot Id.
Definition at line 294 of file incidencebase.cpp. Referenced by KCal::VCalFormat::VEventToEvent(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return Pilot Id.
Definition at line 301 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 306 of file incidencebase.cpp. References QPtrList< Observer >::append(), and QPtrList< Observer >::contains(). Referenced by KCal::ResourceIMAP::addEvent(), KCal::CalendarLocal::addEvent(), KCal::ResourceIMAP::addJournal(), KCal::CalendarLocal::addJournal(), KCal::ResourceIMAP::addTodo(), and KCal::CalendarLocal::addTodo(). |
|
Unregister observer. It isn't notified anymore about changes. Definition at line 311 of file incidencebase.cpp. References QPtrList< Observer >::remove(). |
|
The documentation for this class was generated from the following files: