23 #ifndef KORG_INTERFACES_BASEVIEW_H
24 #define KORG_INTERFACES_BASEVIEW_H
28 #include <calendarviews/eventview.h>
29 #include <calendarsupport/printing/printplugin.h>
31 #include <Akonadi/Calendar/IncidenceChanger>
32 #include <Akonadi/Calendar/ETMCalendar>
34 #include <Akonadi/Collection>
35 #include <Akonadi/Item>
70 virtual void setCalendar(
const Akonadi::ETMCalendar::Ptr &cal );
74 virtual Akonadi::ETMCalendar::Ptr calendar();
81 virtual Akonadi::Item::List selectedIncidences() = 0;
88 virtual KCalCore::DateList selectedIncidenceDates() = 0;
102 virtual CalendarSupport::CalPrinterBase::PrintType printType()
const;
108 virtual int currentDateCount()
const = 0;
113 virtual bool isEventView();
127 virtual void getHighlightMode(
bool &highlightEvents,
128 bool &highlightTodos,
129 bool &highlightJournals );
135 virtual bool usesFullWindow();
141 virtual bool supportsZoom();
147 virtual bool supportsDateRangeSelection();
149 virtual bool hasConfigurationDialog()
const;
151 virtual void showConfigurationDialog(
QWidget *parent );
154 virtual void setIdentifier(
const QByteArray &identifier );
163 virtual void restoreConfig(
const KConfigGroup &configGroup );
172 virtual void saveConfig( KConfigGroup &configGroup );
189 virtual void setDateRange(
const KDateTime &start,
const KDateTime &end,
192 KDateTime startDateTime()
const;
193 KDateTime endDateTime()
const;
195 KDateTime actualStartDateTime()
const;
196 KDateTime actualEndDateTime()
const;
213 virtual void showIncidences(
const Akonadi::Item::List &incidenceList,
const QDate &date ) = 0;
219 virtual void updateView() = 0;
220 virtual void dayPassed(
const QDate & );
225 virtual void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
230 virtual void flushView();
235 virtual void changeIncidenceDisplay(
const Akonadi::Item &,
236 Akonadi::IncidenceChanger::ChangeType ) = 0;
242 virtual void updateConfig();
247 virtual void clearSelection();
256 void incidenceSelected(
const Akonadi::Item &,
const QDate );
261 void showIncidenceSignal(
const Akonadi::Item & );
268 void editIncidenceSignal(
const Akonadi::Item & );
275 void deleteIncidenceSignal(
const Akonadi::Item & );
280 void cutIncidenceSignal(
const Akonadi::Item & );
285 void copyIncidenceSignal(
const Akonadi::Item & );
290 void pasteIncidenceSignal();
295 void toggleAlarmSignal(
const Akonadi::Item & );
301 void toggleTodoCompletedSignal(
const Akonadi::Item & );
306 void copyIncidenceToResourceSignal(
const Akonadi::Item &,
const Akonadi::Collection & );
311 void moveIncidenceToResourceSignal(
const Akonadi::Item &,
const Akonadi::Collection & );
317 void dissociateOccurrencesSignal(
const Akonadi::Item &,
const QDate & );
319 void startMultiModify(
const QString & );
320 void endMultiModify();
326 void newEventSignal();
332 void newEventSignal(
const QDate & );
338 void newEventSignal(
const QDateTime & );
347 void newTodoSignal(
const QDate & );
348 void newSubTodoSignal(
const Akonadi::Item & );
350 void newJournalSignal(
const QDate & );
359 virtual void setChanges( EventViews::EventView::Changes changes );
364 EventViews::EventView::Changes changes()
const;
370 virtual void doRestoreConfig(
const KConfigGroup &configGroup );
375 virtual void doSaveConfig( KConfigGroup &configGroup );
380 virtual void showDates(
const QDate &start,
const QDate &end,
390 const KDateTime &start,
391 const KDateTime &end,
392 const QDate &preferredMonth =
QDate() )
const;
395 virtual void calendarReset();
403 friend class KOrg::BaseView::Private;
Akonadi::IncidenceChanger * mChanger
virtual bool supportsDateNavigation() const
Returns true if the view supports navigation through the date navigator ( selecting a date range...
#define KORGANIZER_INTERFACES_EXPORT
virtual Akonadi::Collection::Id collectionId() const
This class provides an interface for all views being displayed within the main calendar view...
virtual QDateTime selectionStart()
Returns the start of the selection, or an invalid QDateTime if there is no selection or the view does...
virtual QDateTime selectionEnd()
Returns the end of the selection, or an invalid QDateTime if there is no selection or the view doesn'...