summaryrefslogtreecommitdiff
path: root/saltoqd/agendamanager.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-04-04 02:13:05 +0200
committerJavier <dev.git@javispedro.com>2015-04-04 02:13:05 +0200
commit95ac4ede6e371b89839ceb0c70e8c33c55f04053 (patch)
tree2514d2341c83b5bef32c02ced945ab364226cf6f /saltoqd/agendamanager.h
parentdd1fc613da7ffa9039495f6c3fe466feae074019 (diff)
downloadsaltoq-95ac4ede6e371b89839ceb0c70e8c33c55f04053.tar.gz
saltoq-95ac4ede6e371b89839ceb0c70e8c33c55f04053.zip
add agenda support
Diffstat (limited to 'saltoqd/agendamanager.h')
-rw-r--r--saltoqd/agendamanager.h35
1 files changed, 35 insertions, 0 deletions
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 <extendedstorage.h>
+
+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