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/BobinkAuth.cpp | 101 ----------------------------------------------------- 1 file changed, 101 deletions(-) delete mode 100644 src/BobinkAuth.cpp (limited to 'src/BobinkAuth.cpp') diff --git a/src/BobinkAuth.cpp b/src/BobinkAuth.cpp deleted file mode 100644 index 132e4be..0000000 --- a/src/BobinkAuth.cpp +++ /dev/null @@ -1,101 +0,0 @@ -/** - * @file BobinkAuth.cpp - * @brief BobinkAuth implementation. - */ -#include "BobinkAuth.h" - -BobinkAuth::BobinkAuth (QObject *parent) : QObject (parent) {} - -BobinkAuth::AuthMode -BobinkAuth::mode () const -{ - return m_mode; -} - -void -BobinkAuth::setMode (AuthMode mode) -{ - if (m_mode == mode) - return; - m_mode = mode; - emit modeChanged (); -} - -QString -BobinkAuth::username () const -{ - return m_username; -} - -void -BobinkAuth::setUsername (const QString &username) -{ - if (m_username == username) - return; - m_username = username; - emit usernameChanged (); -} - -QString -BobinkAuth::password () const -{ - return m_password; -} - -void -BobinkAuth::setPassword (const QString &password) -{ - if (m_password == password) - return; - m_password = password; - emit passwordChanged (); -} - -QString -BobinkAuth::certPath () const -{ - return m_certPath; -} - -void -BobinkAuth::setCertPath (const QString &path) -{ - if (m_certPath == path) - return; - m_certPath = path; - emit certPathChanged (); -} - -QString -BobinkAuth::keyPath () const -{ - return m_keyPath; -} - -void -BobinkAuth::setKeyPath (const QString &path) -{ - if (m_keyPath == path) - return; - m_keyPath = path; - emit keyPathChanged (); -} - -QOpcUaAuthenticationInformation -BobinkAuth::toAuthenticationInformation () const -{ - QOpcUaAuthenticationInformation info; - switch (m_mode) - { - case Anonymous: - info.setAnonymousAuthentication (); - break; - case UserPass: - info.setUsernameAuthentication (m_username, m_password); - break; - case Certificate: - info.setCertificateAuthentication (m_certPath, m_keyPath); - break; - } - return info; -} -- cgit v1.2.3