From 95ac4ede6e371b89839ceb0c70e8c33c55f04053 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 4 Apr 2015 02:13:05 +0200 Subject: add agenda support --- saltoqd/agendamanager.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 saltoqd/agendamanager.h (limited to 'saltoqd/agendamanager.h') diff --git a/saltoqd/agendamanager.h b/saltoqd/agendamanager.h new file mode 100644 index 0000000..e70edb6 --- /dev/null +++ b/saltoqd/agendamanager.h @@ -0,0 +1,35 @@ +#ifndef AGENDAMANAGER_H +#define AGENDAMANAGER_H + +#include "storagemanager.h" +#include + +class AgendaManager : public QObject, public mKCal::ExtendedStorageObserver +{ + Q_OBJECT +public: + explicit AgendaManager(StorageManager *storage, ToqManager *toq); + ~AgendaManager(); + +public slots: + void scheduleRefresh(); + +protected: + void storageModified(mKCal::ExtendedStorage *storage, const QString &info) Q_DECL_OVERRIDE; + void storageProgress(mKCal::ExtendedStorage *storage, const QString &info) Q_DECL_OVERRIDE; + void storageFinished(mKCal::ExtendedStorage *storage, bool error, const QString &info) Q_DECL_OVERRIDE; + +private slots: + void refresh(); + +private: + ToqManager *_toq; + StorageManager *_storage; + + mKCal::ExtendedCalendar::Ptr _calendar; + mKCal::ExtendedStorage::Ptr _calendarStorage; + + QTimer *_refreshTimer; +}; + +#endif // AGENDAMANAGER_H -- cgit v1.2.3