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-app/backend/devicemanager.h
2017-06-08 10:28:54 +02:00

72 lines
3.0 KiB
C++

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright (C) 2017 Simon Stuerz <simon.stuerz@guh.io> *
* *
* This file is part of guh-control. *
* *
* guh-control is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, version 3 of the License. *
* *
* guh-control is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with guh-control. If not, see <http://www.gnu.org/licenses/>. *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef DEVICEMANAGER_H
#define DEVICEMANAGER_H
#include <QObject>
#include "types/vendors.h"
#include "types/vendorsproxy.h"
#include "types/devices.h"
#include "types/devicesproxy.h"
#include "types/deviceclasses.h"
#include "types/deviceclassesproxy.h"
#include "types/plugins.h"
#include "types/pluginsproxy.h"
class DeviceManager : public QObject
{
Q_OBJECT
Q_PROPERTY(Vendors *vendors READ vendors CONSTANT)
Q_PROPERTY(VendorsProxy *vendorsProxy READ vendorsProxy CONSTANT)
Q_PROPERTY(Plugins *plugins READ plugins CONSTANT)
Q_PROPERTY(PluginsProxy *pluginsProxy READ pluginsProxy CONSTANT)
Q_PROPERTY(Devices *devices READ devices CONSTANT)
Q_PROPERTY(DevicesProxy *devicesProxy READ devicesProxy CONSTANT)
Q_PROPERTY(DeviceClasses *deviceClasses READ deviceClasses CONSTANT)
Q_PROPERTY(DeviceClassesProxy *deviceClassesProxy READ deviceClassesProxy CONSTANT)
public:
explicit DeviceManager(QObject *parent = 0);
Vendors *vendors() const;
VendorsProxy *vendorsProxy() const;
Plugins *plugins() const;
PluginsProxy *pluginsProxy() const;
Devices *devices() const;
DevicesProxy *devicesProxy() const;
DeviceClasses *deviceClasses() const;
DeviceClassesProxy *deviceClassesProxy() const;
private:
Vendors *m_vendors;
VendorsProxy *m_vendorsProxy;
Plugins *m_plugins;
PluginsProxy *m_pluginsProxy;
Devices *m_devices;
DevicesProxy *m_devicesProxy;
DeviceClasses *m_deviceClasses;
DeviceClassesProxy *m_deviceClassesProxy;
};
#endif // DEVICEMANAGER_H