summaryrefslogtreecommitdiff
path: root/libsowatch/watchplugininterface.h
blob: 6b32385d90f4fb781a469ace52814d9357331fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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