Loading...
Searching...
No Matches
DeviceContext.hpp
1#pragma once
2#include <QObject>
3
4#include <verdigris>
5
6namespace ossia::net
7{
8class node_base;
9}
10namespace ossia::qt
11{
12class qml_engine_functions;
13}
14
15namespace JS
16{
17class qml_engine_functions;
18class DeviceContext : public QObject
19{
20 W_OBJECT(DeviceContext)
21
22public:
23 explicit DeviceContext(QObject* parent = nullptr);
25
26 bool init();
27 ossia::net::node_base* find(const QString& addr);
28
29 QVariant read(const QString& address);
30 W_SLOT(read);
31
32 void write(const QString& address, const QVariant& value);
33 W_SLOT(write);
34
35 ossia::qt::qml_engine_functions* m_impl{};
36};
37}
Definition DeviceContext.hpp:19