31 #ifndef KCAL_CALENDARRESOURCES_H
32 #define KCAL_CALENDARRESOURCES_H
34 #include <QtCore/QMap>
38 #include "resourcecalendar.h"
40 #include "kcal_export.h"
65 class DestinationPolicy
78 virtual ~DestinationPolicy();
89 virtual void setParent(
QWidget *parent );
101 bool hasCalendarResources();
110 Q_DISABLE_COPY( DestinationPolicy )
119 class StandardDestinationPolicy :
public DestinationPolicy
132 virtual ~StandardDestinationPolicy();
142 Q_DISABLE_COPY( StandardDestinationPolicy )
151 class AskDestinationPolicy :
public DestinationPolicy
164 virtual ~AskDestinationPolicy();
173 Q_DISABLE_COPY( AskDestinationPolicy )
205 Q_DISABLE_COPY( Ticket )
222 const KDateTime::Spec &timeSpec,
247 void clearException();
288 virtual bool save( Ticket *ticket,
Incidence *incidence = 0 );
323 void readConfig( KConfig *config = 0 );
329 void setStandardDestinationPolicy();
335 void setAskDestinationPolicy();
341 bool hasCalendarResources();
366 void setDialogParentWidget(
QWidget *parent );
387 virtual void releaseSaveTicket( Ticket *ticket );
412 bool addIncidence(
Incidence *incidence );
428 bool beginChange(
Incidence *incidence );
442 bool addEvent(
Event *event );
461 bool deleteEvent(
Event *event );
467 void deleteAllEvents();
474 EventSortField sortField = EventSortUnsorted,
475 SortDirection sortDirection = SortDirectionAscending );
481 Event::List rawEventsForDate(
const KDateTime &dt );
488 const KDateTime::Spec &timeSpec = KDateTime::Spec(),
489 bool inclusive =
false );
503 const KDateTime::Spec &timeSpec = KDateTime::Spec(),
504 EventSortField sortField = EventSortUnsorted,
505 SortDirection sortDirection = SortDirectionAscending );
519 bool addTodo(
Todo *todo );
538 bool deleteTodo(
Todo *todo );
544 void deleteAllTodos();
550 Todo::List rawTodos( TodoSortField sortField = TodoSortUnsorted,
551 SortDirection sortDirection = SortDirectionAscending );
571 bool addJournal(
Journal *journal );
590 bool deleteJournal(
Journal *journal );
596 void deleteAllJournals();
603 JournalSortField sortField = JournalSortUnsorted,
604 SortDirection sortDirection = SortDirectionAscending );
624 Alarm::List alarms(
const KDateTime &from,
const KDateTime &to );
666 void signalErrorMessage(
const QString &err );
694 virtual void doSetTimeSpec(
const KDateTime::Spec &timeSpec );
741 void beginAddingIncidences();
747 void endAddingIncidences();
Provides a To-do in the sense of RFC2445.
Represents the main calendar class.
This class provides a Calendar which is composed of other Calendars known as "Resources".
This class provides an Event in the sense of RFC2445.
This class provides the interfaces for a calendar resource.
virtual bool event(QEvent *e)
This file is part of the API for handling calendar data and defines the Calendar class.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
This class provides a template for lists of pointers.
This file is part of the API for handling calendar data and defines the Exception and ErrorFormat cla...
Provides a Journal in the sense of RFC2445.