blob: ccf3444319198bca35ed55ee3a44426c440c0621 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/**
* @file OpcUaMonitoredNode.h
* @brief QML component for monitoring a single OPC UA node.
*
* Inherits QObject + QQmlParserStatus so that initialisation is
* deferred until all QML bindings are applied (componentComplete).
*/
#ifndef OPCUAMONITOREDNODE_H
#define OPCUAMONITOREDNODE_H
#include <QObject>
#include <QQmlEngine>
#include <QQmlParserStatus>
class OpcUaMonitoredNode : public QObject, public QQmlParserStatus
{
Q_OBJECT
Q_INTERFACES (QQmlParserStatus)
QML_ELEMENT
public:
explicit OpcUaMonitoredNode (QObject *parent = nullptr);
void classBegin () override;
void componentComplete () override;
private:
bool m_componentComplete = false;
};
#endif // OPCUAMONITOREDNODE_H
|