diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-20 10:41:09 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-20 10:41:09 +0100 |
| commit | 0012cb312e92c33f5263478d318eb82da22ee879 (patch) | |
| tree | caac374dd3716b42d13cb85b85a7f90c7d5aac45 /src/OpcUaMonitoredNode.h | |
| parent | 11b99fda8727f2225961c0b83ecdb18674a9670a (diff) | |
| download | BobinkQtOpcUa-0012cb312e92c33f5263478d318eb82da22ee879.tar.gz BobinkQtOpcUa-0012cb312e92c33f5263478d318eb82da22ee879.zip | |
Rename classes to OpcUa* prefix, replace BobinkNode with OpcUaMonitoredNode boilerplate
Rename BobinkAuth → OpcUaAuth, BobinkClient → OpcUaClient (C++ class
names only; QML module URI and singleton name stay as Bobink).
Remove BobinkNode (QQuickItem-based) and add OpcUaMonitoredNode
skeleton using QObject + QQmlParserStatus, following Qt convention
for non-visual QML types.
Diffstat (limited to 'src/OpcUaMonitoredNode.h')
| -rw-r--r-- | src/OpcUaMonitoredNode.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/OpcUaMonitoredNode.h b/src/OpcUaMonitoredNode.h new file mode 100644 index 0000000..ccf3444 --- /dev/null +++ b/src/OpcUaMonitoredNode.h @@ -0,0 +1,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 |
