score
Home
Classes
Namespaces
Files
DeviceContext.hpp
1
#pragma once
2
#include <QObject>
3
4
#include <verdigris>
5
6
namespace
ossia::net
7
{
8
class
node_base;
9
}
10
namespace
ossia::qt
11
{
12
class
qml_engine_functions;
13
}
14
15
namespace
JS
16
{
17
class
qml_engine_functions;
18
class
DeviceContext
:
public
QObject
19
{
20
W_OBJECT(
DeviceContext
)
21
22
public
:
23
explicit
DeviceContext
(QObject* parent =
nullptr
);
24
~
DeviceContext
();
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
}
JS::DeviceContext
Definition:
DeviceContext.hpp:19