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();
83 virtual QWidget *parent();
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,
223 const QString &family = QLatin1String(
"calendar" ) );
235 const QString &timeZoneId,
236 const QString &family = QLatin1String(
"calendar" ) );
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();
355 QWidget *dialogParentWidget();
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 );
487 Event::List rawEvents(
const QDate &start,
const QDate &end,
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 );
511 Event *event(
const QString &uid );
519 bool addTodo(
Todo *todo );
538 bool deleteTodo(
Todo *todo );
544 void deleteAllTodos();
550 Todo::List rawTodos( TodoSortField sortField = TodoSortUnsorted,
551 SortDirection sortDirection = SortDirectionAscending );
557 Todo::List rawTodosForDate(
const QDate &date );
563 Todo *todo(
const QString &uid );
571 bool addJournal(
Journal *journal );
590 bool deleteJournal(
Journal *journal );
596 void deleteAllJournals();
603 JournalSortField sortField = JournalSortUnsorted,
604 SortDirection sortDirection = SortDirectionAscending );
616 Journal *journal(
const QString &uid );
624 Alarm::List alarms(
const KDateTime &from,
const KDateTime &to );
635 using QObject::event;
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.
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.