OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
qml_protocols.hpp
1#pragma once
2
3#include <ossia/detail/config.hpp>
4
5#include <ossia/network/context_functions.hpp>
6
7#include <QJSValue>
8#include <QObject>
9#include <QVariant>
10
11#include <verdigris>
12
13namespace ossia::qt
14{
15class qml_oauth;
16
17class OSSIA_EXPORT qml_protocols : public QObject
18{
19 W_OBJECT(qml_protocols)
20public:
21 explicit qml_protocols(ossia::net::network_context_ptr ctx, QObject* parent);
22 ~qml_protocols() override;
23
24 // All sockets have:
25 // onOpen
26 // onClose
27 // onError
28
29 // write
30 QObject* outboundUDP(QVariant config);
31 W_SLOT(outboundUDP)
32
33 // onMessage
34 QObject* inboundUDP(QVariant config);
35 W_SLOT(inboundUDP)
36
37 // write
38 QObject* outboundUnixDatagram(QVariant config);
39 W_SLOT(outboundUnixDatagram)
40
41 // onMessage
42 QObject* inboundUnixDatagram(QVariant config);
43 W_SLOT(inboundUnixDatagram)
44
45 // write
46 QObject* outboundUnixStream(QVariant config);
47 W_SLOT(outboundUnixStream)
48
49 // onMessage
50 QObject* inboundUnixStream(QVariant config);
51 W_SLOT(inboundUnixStream)
52
53 // write
54 // onBytes
55 QObject* outboundTCP(QVariant config);
56 W_SLOT(outboundTCP)
57
58 // onConnection
59 // -> onBytes
60 // -> write
61 QObject* inboundTCP(QVariant config);
62 W_SLOT(inboundTCP)
63
64 // write
65 // onBytes
66 QObject* outboundWS(QVariant config);
67 W_SLOT(outboundWS)
68
69 // onConnection
70 // -> onBytes
71 // -> onTextMessage
72 // -> onBinaryMessage
73 QObject* inboundWS(QVariant config);
74 W_SLOT(inboundWS)
75
76 void http(QUrl url, QJSValue func, QString verb);
77 W_SLOT(http);
78
79 QJSValue inboundMIDIDevices();
80 W_SLOT(inboundMIDIDevices)
81 QJSValue inboundUMPDevices();
82 W_SLOT(inboundUMPDevices)
83
84 QObject* inboundMIDI(QJSValue config);
85 W_SLOT(inboundMIDI)
86 QObject* inboundUMP(QJSValue config);
87 W_SLOT(inboundUMP)
88
89 QJSValue outboundMIDIDevices();
90 W_SLOT(outboundMIDIDevices)
91 QJSValue outboundUMPDevices();
92 W_SLOT(outboundUMPDevices)
93
94 QObject* outboundMIDI(QJSValue config);
95 W_SLOT(outboundMIDI)
96 QObject* outboundUMP(QJSValue config);
97 W_SLOT(outboundUMP)
98
99 QObject* serial(QVariant config);
100 W_SLOT(serial)
101
102 QObject* osc(QVariant config);
103 W_SLOT(osc)
104
105private:
106 ossia::net::network_context_ptr context;
107};
108
109}
Definition qml_device.cpp:43