summaryrefslogtreecommitdiff
path: root/libsowatch/watchplugininterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/watchplugininterface.h')
-rw-r--r--libsowatch/watchplugininterface.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libsowatch/watchplugininterface.h b/libsowatch/watchplugininterface.h
new file mode 100644
index 0000000..6b32385
--- /dev/null
+++ b/libsowatch/watchplugininterface.h
@@ -0,0 +1,25 @@
+#ifndef WATCHPLUGININTERFACE_H
+#define WATCHPLUGININTERFACE_H
+
+#include <QtCore/QObject>
+#include <QtCore/QStringList>
+
+namespace sowatch
+{
+
+class Watch;
+
+class WatchPluginInterface
+{
+public:
+ virtual ~WatchPluginInterface();
+
+ virtual QStringList drivers() = 0;
+ virtual Watch* getWatch(const QString& driver, const QString& connId, QObject *parent = 0) = 0;
+};
+
+}
+
+Q_DECLARE_INTERFACE(sowatch::WatchPluginInterface, "com.javispedro.sowatch.WatchPluginInterface")
+
+#endif // WATCHPLUGININTERFACE_H