summaryrefslogtreecommitdiff
path: root/qorgwatchlet/qorgwatchletplugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'qorgwatchlet/qorgwatchletplugin.h')
-rw-r--r--qorgwatchlet/qorgwatchletplugin.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/qorgwatchlet/qorgwatchletplugin.h b/qorgwatchlet/qorgwatchletplugin.h
new file mode 100644
index 0000000..01cb83e
--- /dev/null
+++ b/qorgwatchlet/qorgwatchletplugin.h
@@ -0,0 +1,25 @@
+#ifndef QMSGWATCHLETPLUGIN_H
+#define QMSGWATCHLETPLUGIN_H
+
+#include <sowatch.h>
+
+namespace sowatch
+{
+
+class QMsgWatchletPlugin : public QObject, public WatchletPluginInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(sowatch::WatchletPluginInterface)
+
+public:
+ explicit QMsgWatchletPlugin(QObject *parent = 0);
+ ~QMsgWatchletPlugin();
+
+ QStringList watchlets();
+ WatchletInfo describeWatchlet(const QString &id);
+ Watchlet* getWatchlet(const QString &id, ConfigKey *config, WatchServer *server);
+};
+
+}
+
+#endif // QMSGWATCHLETPLUGIN_H