/** * @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