This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/libhive/deviceplugin.h
2013-12-30 22:09:58 +01:00

33 lines
558 B
C++

#ifndef DEVICEPLUGIN_H
#define DEVICEPLUGIN_H
#include "deviceclass.h"
#include <QObject>
class DeviceManager;
class DevicePlugin
{
public:
DevicePlugin();
virtual ~DevicePlugin();
void initPlugin(DeviceManager *deviceManager);
virtual void init() {}
virtual QString pluginName() const = 0;
virtual QList<DeviceClass> supportedDevices() const = 0;
protected:
DeviceManager *deviceManager() const;
private:
DeviceManager *m_deviceManager;
};
Q_DECLARE_INTERFACE(DevicePlugin, "org.hoveyourhome.DevicePlugin")
#endif