summaryrefslogtreecommitdiff
path: root/metawatch/metawatchplugin.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-17 03:58:13 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-17 03:58:13 +0200
commitf225345d4de3b198a557fe3566f9630163e76d51 (patch)
treecca7ba40e560226c138a1d4fc44b032f8fd6c808 /metawatch/metawatchplugin.h
parentb0771d893865ca249bbf191636fad593901cce03 (diff)
downloadsowatch-f225345d4de3b198a557fe3566f9630163e76d51.tar.gz
sowatch-f225345d4de3b198a557fe3566f9630163e76d51.zip
Putting MetaWatch stuff in a plugin
Diffstat (limited to 'metawatch/metawatchplugin.h')
-rw-r--r--metawatch/metawatchplugin.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/metawatch/metawatchplugin.h b/metawatch/metawatchplugin.h
new file mode 100644
index 0000000..d0e7c91
--- /dev/null
+++ b/metawatch/metawatchplugin.h
@@ -0,0 +1,22 @@
+#ifndef METAWATCHPLUGIN_H
+#define METAWATCHPLUGIN_H
+
+#include <sowatch.h>
+
+namespace sowatch
+{
+
+class MetaWatchPlugin : public QObject, public WatchPluginInterface {
+ Q_OBJECT
+ Q_INTERFACES(WatchPluginInterface)
+
+public:
+ ~MetaWatchPlugin();
+
+ virtual QStringList drivers();
+ virtual Watch* getWatch(const QString& driver, const QString& connId, QObject *parent = 0);
+};
+
+}
+
+#endif // METAWATCHPLUGIN_H