summaryrefslogtreecommitdiff
path: root/libsowatch/watchletplugininterface.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-25 01:36:10 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-25 01:36:10 +0200
commit2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (patch)
treeb2b8341615898e5cbf5cdb08ee34a629df093897 /libsowatch/watchletplugininterface.h
parent5153fb9a2b5d8a7af069a75b75bdc7bee591d0a9 (diff)
downloadsowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.tar.gz
sowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.zip
preparing for watchlet support
Diffstat (limited to 'libsowatch/watchletplugininterface.h')
-rw-r--r--libsowatch/watchletplugininterface.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libsowatch/watchletplugininterface.h b/libsowatch/watchletplugininterface.h
new file mode 100644
index 0000000..ad83dd4
--- /dev/null
+++ b/libsowatch/watchletplugininterface.h
@@ -0,0 +1,28 @@
+#ifndef SOWATCH_WATCHLETPLUGININTERFACE_H
+#define SOWATCH_WATCHLETPLUGININTERFACE_H
+
+#include <QtPlugin>
+#include <QtCore/QSettings>
+#include <QtCore/QStringList>
+#include "sowatch_global.h"
+
+namespace sowatch
+{
+
+class Watchlet;
+class WatchServer;
+
+class SOWATCH_EXPORT WatchletPluginInterface
+{
+public:
+ virtual ~WatchletPluginInterface();
+
+ virtual QStringList watchlets() = 0;
+ virtual Watchlet* getProvider(const QString& id, QSettings& settings, WatchServer *server) = 0;
+};
+
+}
+
+Q_DECLARE_INTERFACE(sowatch::WatchletPluginInterface, "com.javispedro.sowatch.WatchletPluginInterface")
+
+#endif // SOWATCH_WATCHLETPLUGININTERFACE_H