diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-17 03:58:13 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-17 03:58:13 +0200 |
commit | f225345d4de3b198a557fe3566f9630163e76d51 (patch) | |
tree | cca7ba40e560226c138a1d4fc44b032f8fd6c808 /libsowatch/watchplugininterface.h | |
parent | b0771d893865ca249bbf191636fad593901cce03 (diff) | |
download | sowatch-f225345d4de3b198a557fe3566f9630163e76d51.tar.gz sowatch-f225345d4de3b198a557fe3566f9630163e76d51.zip |
Putting MetaWatch stuff in a plugin
Diffstat (limited to 'libsowatch/watchplugininterface.h')
-rw-r--r-- | libsowatch/watchplugininterface.h | 25 |
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 |