• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

KCal::CalendarResources

KCal::CalendarResources Class Reference

This class provides a Calendar which is composed of other Calendars known as "Resources". More...

#include <calendarresources.h>

Inheritance diagram for KCal::CalendarResources:
Inheritance graph
[legend]

List of all members.

Signals

void signalErrorMessage (const QString &err)
void signalResourceAdded (ResourceCalendar *resource)
void signalResourceDeleted (ResourceCalendar *resource)
void signalResourceModified (ResourceCalendar *resource)

Public Member Functions

bool addEvent (Event *event, ResourceCalendar *resource)
bool addEvent (Event *event)
bool addIncidence (Incidence *incidence, ResourceCalendar *resource)
bool addIncidence (Incidence *incidence)
bool addJournal (Journal *journal, ResourceCalendar *resource)
bool addJournal (Journal *journal)
bool addTodo (Todo *todo, ResourceCalendar *resource)
bool addTodo (Todo *todo)
Alarm::List alarms (const KDateTime &from, const KDateTime &to)
Alarm::List alarmsTo (const KDateTime &to)
bool beginChange (Incidence *incidence)
 CalendarResources (const QString &timeZoneId, const QString &family=QLatin1String("calendar"))
 CalendarResources (const KDateTime::Spec &timeSpec, const QString &family=QLatin1String("calendar"))
void clearException ()
void close ()
void deleteAllEvents ()
void deleteAllJournals ()
void deleteAllTodos ()
bool deleteEvent (Event *event)
bool deleteJournal (Journal *journal)
bool deleteTodo (Todo *todo)
QWidget * dialogParentWidget ()
bool endChange (Incidence *incidence)
Event * event (const QString &uid)
ErrorFormat * exception ()
bool hasCalendarResources ()
bool isSaving ()
Journal * journal (const QString &uid)
void load ()
Event::List rawEvents (const QDate &start, const QDate &end, const KDateTime::Spec &timeSpec=KDateTime::Spec(), bool inclusive=false)
Event::List rawEvents (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Event::List rawEventsForDate (const QDate &date, const KDateTime::Spec &timeSpec=KDateTime::Spec(), EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Event::List rawEventsForDate (const KDateTime &dt)
Journal::List rawJournals (JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Journal::List rawJournalsForDate (const QDate &date)
Todo::List rawTodos (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Todo::List rawTodosForDate (const QDate &date)
void readConfig (KConfig *config=0)
virtual void releaseSaveTicket (Ticket *ticket)
bool reload ()
Ticket * requestSaveTicket (ResourceCalendar *resource)
ResourceCalendar * resource (Incidence *incidence)
void resourceAdded (ResourceCalendar *resource)
CalendarResourceManager * resourceManager () const
bool save ()
virtual bool save (Ticket *ticket, Incidence *incidence=0)
void setAskDestinationPolicy ()
void setDialogParentWidget (QWidget *parent)
void setStandardDestinationPolicy ()
Todo * todo (const QString &uid)
 ~CalendarResources ()

Protected Slots

void slotLoadError (ResourceCalendar *resource, const QString &err)
void slotSaveError (ResourceCalendar *resource, const QString &err)

Protected Member Functions

void connectResource (ResourceCalendar *resource)
int decrementChangeCount (ResourceCalendar *resource)
virtual void doSetTimeSpec (const KDateTime::Spec &timeSpec)
int incrementChangeCount (ResourceCalendar *resource)
void resourceDeleted (ResourceCalendar *resource)
void resourceModified (ResourceCalendar *resource)

Detailed Description

This class provides a Calendar which is composed of other Calendars known as "Resources".

Examples of Calendar Resources are:

  • Calendars stored as local ICS formatted files
  • a set of incidences (one-per-file) within a local directory
  • birthdays and anniversaries contained in an addressbook

Definition at line 57 of file calendarresources.h.


Constructor & Destructor Documentation

CalendarResources::CalendarResources ( const KDateTime::Spec &  timeSpec,
const QString &  family = QLatin1String( "calendar" ) 
)

Construct CalendarResource object using a time specification (time zone, etc.

) and a Family name.

Parameters:
timeSpec is a time specification which is used for creating or modifying incidences in the Calendar. It is also used for viewing incidences (see setViewTimeSpec()).
family is any QString representing a unique name.

Definition at line 229 of file calendarresources.cpp.

CalendarResources::CalendarResources ( const QString &  timeZoneId,
const QString &  family = QLatin1String( "calendar" ) 
)

Construct CalendarResource object using a time zone ID and a Family name.

Parameters:
timeZoneId is used for creating or modifying incidences in the Calendar. It is also used for viewing incidences. The time zone does not alter existing incidences.
family is any QString representing a unique name.

Definition at line 237 of file calendarresources.cpp.

CalendarResources::~CalendarResources (  ) 

Destroys the Calendar Resources.

Definition at line 245 of file calendarresources.cpp.


Member Function Documentation

bool CalendarResources::addEvent ( Event *  event,
ResourceCalendar *  resource 
)

Inserts an Event into a Calendar Resource.

Parameters:
event is a pointer to the Event to insert.
resource is a pointer to the ResourceCalendar to be added to.
Returns:
true if the Event was successfully inserted; false otherwise.
Note:
In most cases use addIncidence( Incidence *incidence, ResourceCalendar *resource ) instead.

Definition at line 456 of file calendarresources.cpp.

bool CalendarResources::addEvent ( Event *  event  )  [virtual]

Inserts an Event into the calendar.

Parameters:
event is a pointer to the Event to insert.
Returns:
true if the Event was successfully inserted; false otherwise.
See also:
deleteEvent()

Implements KCal::Calendar.

Definition at line 451 of file calendarresources.cpp.

bool CalendarResources::addIncidence ( Incidence *  incidence,
ResourceCalendar *  resource 
)

Inserts an Incidence into a Calendar Resource.

Parameters:
incidence is a pointer to the Incidence to insert.
resource is a pointer to the ResourceCalendar to be added to.
Returns:
true if the Incidence was successfully inserted; false otherwise.

Definition at line 384 of file calendarresources.cpp.

bool CalendarResources::addIncidence ( Incidence *  incidence  )  [virtual]

Inserts an Incidence into the calendar.

Parameters:
incidence is a pointer to the Incidence to insert.
Returns:
true if the Incidence was successfully inserted; false otherwise.
Will also return false if there are multiple writable resources and the user declines to select one to those resources in which to save the Incidence.

Reimplemented from KCal::Calendar.

Definition at line 425 of file calendarresources.cpp.

bool CalendarResources::addJournal ( Journal *  journal,
ResourceCalendar *  resource 
)

Inserts a Journal into a Calendar Resource.

Parameters:
journal is a pointer to the Journal to insert.
resource is a pointer to the ResourceCalendar to be added to.
Returns:
true if the Journal was successfully inserted; false otherwise.
Note:
In most cases use addIncidence( Incidence *incidence, ResourceCalendar *resource ) instead.

Definition at line 691 of file calendarresources.cpp.

bool CalendarResources::addJournal ( Journal *  journal  )  [virtual]

Inserts a Journal into the calendar.

Parameters:
journal is a pointer to the Journal to insert.
Returns:
true if the Journal was successfully inserted; false otherwise.
See also:
deleteJournal()

Implements KCal::Calendar.

Definition at line 658 of file calendarresources.cpp.

bool CalendarResources::addTodo ( Todo *  todo,
ResourceCalendar *  resource 
)

Inserts a Todo into a Calendar Resource.

Parameters:
todo is a pointer to the Todo to insert.
resource is a pointer to the ResourceCalendar to be added to.
Returns:
true if the Todo was successfully inserted; false otherwise.
Note:
In most cases use addIncidence( Incidence *incidence, ResourceCalendar *resource ) instead.

Definition at line 512 of file calendarresources.cpp.

bool CalendarResources::addTodo ( Todo *  todo  )  [virtual]

Inserts a Todo into the calendar.

Parameters:
todo is a pointer to the Todo to insert.
Returns:
true if the Todo was successfully inserted; false otherwise.
See also:
deleteTodo()

Implements KCal::Calendar.

Definition at line 507 of file calendarresources.cpp.

Alarm::List CalendarResources::alarms ( const KDateTime &  from,
const KDateTime &  to 
) [virtual]

Returns a list of Alarms within a time range for this Calendar.

Parameters:
from is the starting timestamp.
to is the ending timestamp.
Returns:
the list of Alarms for the for the specified time range.

Implements KCal::Calendar.

Definition at line 595 of file calendarresources.cpp.

Alarm::List CalendarResources::alarmsTo ( const KDateTime &  to  ) 

Return a list of Alarms that occur before the specified timestamp.

Parameters:
to is the ending timestamp.
Returns:
the list of Alarms occurring before the specified KDateTime.

Definition at line 585 of file calendarresources.cpp.

bool CalendarResources::beginChange ( Incidence *  incidence  )  [virtual]

Flag that a change to a Calendar Incidence is starting.

Parameters:
incidence is a pointer to the Incidence that will be changing.

Reimplemented from KCal::Calendar.

Definition at line 859 of file calendarresources.cpp.

void CalendarResources::clearException (  ) 

Clears the exception status.

Since:
4.2

Definition at line 252 of file calendarresources.cpp.

void CalendarResources::close (  )  [virtual]

Clears out the current calendar, freeing all used memory etc.

Implements KCal::Calendar.

Definition at line 345 of file calendarresources.cpp.

void CalendarResources::connectResource ( ResourceCalendar *  resource  )  [protected]

Connects all necessary signals and slots to the resource.

Parameters:
resource is a pointer to a ResourceCalendar.

Definition at line 752 of file calendarresources.cpp.

int CalendarResources::decrementChangeCount ( ResourceCalendar *  resource  )  [protected]

Decrement the number of times this Resource has been changed by 1.

Parameters:
resource is a pointer to the ResourceCalendar to be counted.
Returns:
the new number of times this Resource has been changed.
See also:
incrementChangeCount()

Definition at line 926 of file calendarresources.cpp.

void CalendarResources::deleteAllEvents (  )  [virtual]

Removes all Events from the calendar.

See also:
deleteEvent()

Implements KCal::Calendar.

Definition at line 484 of file calendarresources.cpp.

void CalendarResources::deleteAllJournals (  )  [virtual]

Removes all Journals from the calendar.

See also:
deleteJournal()

Implements KCal::Calendar.

Definition at line 683 of file calendarresources.cpp.

void CalendarResources::deleteAllTodos (  )  [virtual]

Removes all To-dos from the calendar.

See also:
deleteTodo()

Implements KCal::Calendar.

Definition at line 537 of file calendarresources.cpp.

bool CalendarResources::deleteEvent ( Event *  event  )  [virtual]

Removes an Event from the calendar.

Parameters:
event is a pointer to the Event to remove.
Returns:
true if the Event was successfully remove; false otherwise.
See also:
addEvent(), deleteAllEvents()

Implements KCal::Calendar.

Definition at line 461 of file calendarresources.cpp.

bool CalendarResources::deleteJournal ( Journal *  journal  )  [virtual]

Removes a Journal from the calendar.

Parameters:
journal is a pointer to the Journal to remove.
Returns:
true if the Journal was successfully removed; false otherwise.
See also:
addJournal(), deleteAllJournals()

Implements KCal::Calendar.

Definition at line 663 of file calendarresources.cpp.

bool CalendarResources::deleteTodo ( Todo *  todo  )  [virtual]

Removes a Todo from the calendar.

Parameters:
todo is a pointer to the Todo to remove.
Returns:
true if the Todo was successfully removed; false otherwise.
See also:
addTodo(), deleteAllTodos()

Implements KCal::Calendar.

Definition at line 517 of file calendarresources.cpp.

QWidget * CalendarResources::dialogParentWidget (  ) 

Returns the current parent for new dialogs.

This is a bad hack, but we need to properly set the parent for the resource selection dialog. Otherwise the dialog will not be modal to the editor dialog in korganizer and the user can still work in the editor dialog (and thus crash korganizer). Afterwards we need to reset it (to avoid pointers to widgets that are already deleted) so we also need the accessor

Returns:
a pointer to the parent QWidget.
See also:
setDialogParentWidget()

Definition at line 335 of file calendarresources.cpp.

void CalendarResources::doSetTimeSpec ( const KDateTime::Spec &  timeSpec  )  [protected, virtual]

Let Calendar subclasses set the time specification.

Parameters:
timeSpec is the time specification (time zone, etc.) for viewing Incidence dates.

Reimplemented from KCal::Calendar.

Definition at line 800 of file calendarresources.cpp.

bool CalendarResources::endChange ( Incidence *  incidence  )  [virtual]

Flag that a change to a Calendar Incidence has completed.

Parameters:
incidence is a pointer to the Incidence that was changed.

Reimplemented from KCal::Calendar.

Definition at line 887 of file calendarresources.cpp.

Event * CalendarResources::event ( const QString &  uid  )  [virtual]

Returns the Event associated with the given unique identifier.

Parameters:
uid is a unique identifier string.
Returns:
a pointer to the Event. A null pointer is returned if no such Event exists.

Implements KCal::Calendar.

Definition at line 492 of file calendarresources.cpp.

ErrorFormat * CalendarResources::exception (  ) 

Returns an exception, if there is any, containing information about the last error that occurred.

Since:
4.2

Definition at line 258 of file calendarresources.cpp.

bool CalendarResources::hasCalendarResources (  ) 

Return true if we have resources configure.

Otherwise returns false.

Since:
4.3

Definition at line 420 of file calendarresources.cpp.

int CalendarResources::incrementChangeCount ( ResourceCalendar *  resource  )  [protected]

Increment the number of times this Resource has been changed by 1.

Parameters:
resource is a pointer to the ResourceCalendar to be counted.
Returns:
the new number of times this Resource has been changed.
See also:
decrementChangeCount()

Definition at line 913 of file calendarresources.cpp.

bool CalendarResources::isSaving (  )  [virtual]

Determine if the calendar is currently being saved.

Returns:
true if the calendar is currently being saved; false otherwise.

Reimplemented from KCal::Calendar.

Definition at line 373 of file calendarresources.cpp.

Journal * CalendarResources::journal ( const QString &  uid  )  [virtual]

Returns the Journal associated with the given unique identifier.

Parameters:
uid is a unique identifier string.
Returns:
a pointer to the Journal. A null pointer is returned if no such Journal exists.

Implements KCal::Calendar.

Definition at line 697 of file calendarresources.cpp.

void CalendarResources::load (  ) 

Loads all Incidences from the Resources.

The Resources must be added first using either readConfig(KConfig *config), which adds the system Resources, or manually using resourceAdded(ResourceCalendar *resource).

Definition at line 273 of file calendarresources.cpp.

Event::List CalendarResources::rawEvents ( const QDate &  start,
const QDate &  end,
const KDateTime::Spec &  timeSpec = KDateTime::Spec(),
bool  inclusive = false 
) [virtual]

Returns an unfiltered list of all Events occurring within a date range.

Parameters:
start is the starting date
end is the ending date
timeSpec time zone etc. to interpret start and end, or the calendar's default time spec if none is specified
inclusive if true only Events which are completely included within the date range are returned.
Returns:
the list of unfiltered Events occurring within the specified date range.

Implements KCal::Calendar.

Definition at line 622 of file calendarresources.cpp.

Event::List CalendarResources::rawEvents ( EventSortField  sortField = EventSortUnsorted,
SortDirection  sortDirection = SortDirectionAscending 
) [virtual]

Returns a sorted, unfiltered list of all Events for this Calendar.

Parameters:
sortField specifies the EventSortField.
sortDirection specifies the SortDirection.
Returns:
the list of all unfiltered Events sorted as specified.

Implements KCal::Calendar.

Definition at line 646 of file calendarresources.cpp.

Event::List CalendarResources::rawEventsForDate ( const QDate &  date,
const KDateTime::Spec &  timeSpec = KDateTime::Spec(),
EventSortField  sortField = EventSortUnsorted,
SortDirection  sortDirection = SortDirectionAscending 
) [virtual]

Returns an unfiltered list of all Events which occur on the given date.

Parameters:
date request unfiltered Event list for this QDate only.
timeSpec time zone etc. to interpret date, or the calendar's default time spec if none is specified
sortField specifies the EventSortField.
sortDirection specifies the SortDirection.
Returns:
the list of unfiltered Events occurring on the specified QDate.

Implements KCal::Calendar.

Definition at line 608 of file calendarresources.cpp.

Event::List CalendarResources::rawEventsForDate ( const KDateTime &  dt  )  [virtual]

Returns an unfiltered list of all Events which occur on the given timestamp.

Parameters:
dt request unfiltered Event list for this KDateTime only.
Returns:
the list of unfiltered Events occurring on the specified timestamp.

Implements KCal::Calendar.

Definition at line 634 of file calendarresources.cpp.

Journal::List CalendarResources::rawJournals ( JournalSortField  sortField = JournalSortUnsorted,
SortDirection  sortDirection = SortDirectionAscending 
) [virtual]

Returns a sorted, unfiltered list of all Journals for this Calendar.

Parameters:
sortField specifies the JournalSortField.
sortDirection specifies the SortDirection.
Returns:
the list of all unfiltered Journals sorted as specified.

Implements KCal::Calendar.

Definition at line 712 of file calendarresources.cpp.

Journal::List CalendarResources::rawJournalsForDate ( const QDate &  date  )  [virtual]

Returns an unfiltered list of all Journals for on the specified date.

Parameters:
date request unfiltered Journals for this QDate only.
Returns:
the list of unfiltered Journals for the specified date.

Implements KCal::Calendar.

Definition at line 724 of file calendarresources.cpp.

Todo::List CalendarResources::rawTodos ( TodoSortField  sortField = TodoSortUnsorted,
SortDirection  sortDirection = SortDirectionAscending 
) [virtual]

Returns a sorted, unfiltered list of all Todos for this Calendar.

Parameters:
sortField specifies the TodoSortField.
sortDirection specifies the SortDirection.
Returns:
the list of all unfiltered Todos sorted as specified.

Implements KCal::Calendar.

Definition at line 545 of file calendarresources.cpp.

Todo::List CalendarResources::rawTodosForDate ( const QDate &  date  )  [virtual]

Returns an unfiltered list of all Todos which due on the specified date.

Parameters:
date request unfiltered Todos due on this QDate.
Returns:
the list of unfiltered Todos due on the specified date.

Implements KCal::Calendar.

Definition at line 573 of file calendarresources.cpp.

void CalendarResources::readConfig ( KConfig *  config = 0  ) 

Reads the Resources settings from a config file.

Parameters:
config The KConfig object which points to the config file. If no object is given (config is 0) the standard config file is used.
Note:
Call this method before load().

Definition at line 263 of file calendarresources.cpp.

void CalendarResources::releaseSaveTicket ( Ticket *  ticket  )  [virtual]

Releases the save Ticket.

The Calendar is unlocked without saving.

Parameters:
ticket is a pointer to a Ticket object.
See also:
requestSaveTicket()

Definition at line 853 of file calendarresources.cpp.

bool CalendarResources::reload (  )  [virtual]

Reloads all Incidences from all Resources.

Returns:
true if the reload was successful; otherwise failure.

Implements KCal::Calendar.

Definition at line 312 of file calendarresources.cpp.

CalendarResources::Ticket * CalendarResources::requestSaveTicket ( ResourceCalendar *  resource  ) 

Requests a ticket for saving the Calendar.

If a ticket is returned the Calendar is locked for write access until save() or releaseSaveTicket() is called.

Parameters:
resource is a pointer to the ResourceCalendar object.
Returns:
a pointer to a Ticket object indicating that the Calendar is locked for write access; otherwise a null pointer.
See also:
releaseSaveTicket()

Definition at line 820 of file calendarresources.cpp.

ResourceCalendar * CalendarResources::resource ( Incidence *  incidence  ) 

Returns the Resource associated with a specified Incidence.

Parameters:
incidence is a pointer to an Incidence whose Resource is to be located.

Definition at line 767 of file calendarresources.cpp.

void CalendarResources::resourceAdded ( ResourceCalendar *  resource  ) 

Add an active Resource to the Calendar, and loads that resource if it is open.

Additionally, emits the signalResourceAdded signal.

Note:
This method must be public, because in-process added Resources do not emit the corresponding signal, so this method has to be called manually!
Parameters:
resource is a pointer to the ResourceCalendar to add.
See also:
signalResourceAdded()

Definition at line 775 of file calendarresources.cpp.

void CalendarResources::resourceDeleted ( ResourceCalendar *  resource  )  [protected]

Emits the signalResourceDeleted signal for the specified resource.

Parameters:
resource is a pointer to a ResourceCalendar that was removed.
See also:
signalResourceModified()

Definition at line 795 of file calendarresources.cpp.

CalendarResourceManager * CalendarResources::resourceManager (  )  const

Returns the CalendarResourceManager used by this calendar.

Definition at line 320 of file calendarresources.cpp.

void CalendarResources::resourceModified ( ResourceCalendar *  resource  )  [protected]

Emits the signalResourceModified signal for the specified resource.

Parameters:
resource is a pointer to a ResourceCalendar that was changed.
See also:
signalResourceDeleted()

Definition at line 790 of file calendarresources.cpp.

bool CalendarResources::save (  )  [virtual]

Syncs changes in memory to persistent storage.

Returns:
true if the save was successful; false otherwise.

Implements KCal::Calendar.

Definition at line 358 of file calendarresources.cpp.

bool CalendarResources::save ( Ticket *  ticket,
Incidence *  incidence = 0 
) [virtual]

Saves this Calendar.

If the save is successful the Ticket is deleted. Otherwise, the caller must release the Ticket with releaseSaveTicket() to abandon the save operation or call save() to try the save again.

Parameters:
ticket is a pointer to the Ticket object.
incidence is a pointer to the Incidence object. If incidence is null, save the entire Calendar (all Resources) else only the specified Incidence is saved.
Returns:
true if the save was successful; false otherwise.

Definition at line 838 of file calendarresources.cpp.

void CalendarResources::setAskDestinationPolicy (  ) 

Set the destination policy such that Incidences are added to a Resource which is queried.

Definition at line 330 of file calendarresources.cpp.

void CalendarResources::setDialogParentWidget ( QWidget *  parent  ) 

Set the widget parent for new dialogs.

This is a bad hack, but we need to properly set the parent for the resource selection dialog. Otherwise the dialog will not be modal to the editor dialog in korganizer and the user can still work in the editor dialog (and thus crash korganizer).

Parameters:
parent is a pointer to the parent QWidget.
See also:
dialogparentWidget()

Definition at line 340 of file calendarresources.cpp.

void CalendarResources::setStandardDestinationPolicy (  ) 

Set the destination policy such that Incidences are always added to the standard Resource.

Definition at line 325 of file calendarresources.cpp.

void KCal::CalendarResources::signalErrorMessage ( const QString &  err  )  [signal]

Signals an error message.

Parameters:
err is the error message.
void KCal::CalendarResources::signalResourceAdded ( ResourceCalendar *  resource  )  [signal]

Signals that an Incidence has been inserted to the Resource.

Parameters:
resource is a pointer to a ResourceCalendar that was added.
See also:
resourceAdded()
void KCal::CalendarResources::signalResourceDeleted ( ResourceCalendar *  resource  )  [signal]

Signals that an Incidence has been removed from the Resource.

Parameters:
resource is a pointer to a ResourceCalendar that was removed.
See also:
resourceDeleted()
void KCal::CalendarResources::signalResourceModified ( ResourceCalendar *  resource  )  [signal]

Signals that the Resource has been modified.

Parameters:
resource is a pointer to a ResourceCalendar that was changed.
See also:
resourceModified()
void CalendarResources::slotLoadError ( ResourceCalendar *  resource,
const QString &  err 
) [protected, slot]

Emits the signalErrorMessage signal with an error message when an error occurs loading a ResourceCalendar.

Parameters:
resource is a pointer to the ResourceCalendar that failed to load.
err is the error message.
See also:
slotSaveError()

Definition at line 944 of file calendarresources.cpp.

void CalendarResources::slotSaveError ( ResourceCalendar *  resource,
const QString &  err 
) [protected, slot]

Emits the signalErrorMessage signal with an error message when an error occurs saving a ResourceCalendar.

Parameters:
resource is a pointer to the ResourceCalendar that failed to save.
err is the error message.
See also:
slotLoadError()

Definition at line 950 of file calendarresources.cpp.

Todo * CalendarResources::todo ( const QString &  uid  )  [virtual]

Returns the Todo associated with the given unique identifier.

Parameters:
uid is a unique identifier string.
Returns:
a pointer to the Todo. A null pointer is returned if no such Todo exists.

Implements KCal::Calendar.

Definition at line 558 of file calendarresources.cpp.


The documentation for this class was generated from the following files:
  • calendarresources.h
  • calendarresources.cpp

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal