From 0012cb312e92c33f5263478d318eb82da22ee879 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Fri, 20 Feb 2026 10:41:09 +0100 Subject: Rename classes to OpcUa* prefix, replace BobinkNode with OpcUaMonitoredNode boilerplate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/OpcUaMonitoredNode.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/OpcUaMonitoredNode.h (limited to 'src/OpcUaMonitoredNode.h') 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 +#include +#include + +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 -- cgit v1.2.3