diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-19 05:13:42 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-19 05:38:24 +0100 |
| commit | a0c7f2a7ef04dbe2e7491eabf828e26423d1bd10 (patch) | |
| tree | 50491c80f28ad5f2789a3777bec74489327c4d7f /src/BobinkClient.h | |
| parent | 23916cbb98e952aab752a647ac96020aab709bb6 (diff) | |
| download | BobinkQtOpcUa-a0c7f2a7ef04dbe2e7491eabf828e26423d1bd10.tar.gz BobinkQtOpcUa-a0c7f2a7ef04dbe2e7491eabf828e26423d1bd10.zip | |
Rename targets, route messages to debug console, clean up
- Rename CMake project and library target to BobinkQtOpcUa (URI stays Bobink)
- Rename demo target to BobinkDemo, output binary to build/bin/
- Route all QML status/error messages to the in-app debug console
- Remove discoveryInterval QML property, default to 30s internally
- Add errorChanged handler, PKI file validation in applyPki()
Diffstat (limited to 'src/BobinkClient.h')
| -rw-r--r-- | src/BobinkClient.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/BobinkClient.h b/src/BobinkClient.h index 43eda65..c86cfaa 100644 --- a/src/BobinkClient.h +++ b/src/BobinkClient.h @@ -35,8 +35,6 @@ class BobinkClient : public QObject Q_PROPERTY (QString discoveryUrl READ discoveryUrl WRITE setDiscoveryUrl NOTIFY discoveryUrlChanged) - Q_PROPERTY (int discoveryInterval READ discoveryInterval WRITE - setDiscoveryInterval NOTIFY discoveryIntervalChanged) Q_PROPERTY (bool discovering READ discovering NOTIFY discoveringChanged) Q_PROPERTY (QVariantList servers READ servers NOTIFY serversChanged) @@ -71,9 +69,6 @@ public: QString discoveryUrl () const; void setDiscoveryUrl (const QString &url); - int discoveryInterval () const; - void setDiscoveryInterval (int ms); - bool discovering () const; const QList<QOpcUaApplicationDescription> &discoveredServers () const; @@ -136,9 +131,9 @@ signals: */ void certificateTrustRequested (const QString &certInfo); void connectionError (const QString &message); + void statusMessage (const QString &message); void discoveryUrlChanged (); - void discoveryIntervalChanged (); void discoveringChanged (); void serversChanged (); void pkiDirChanged (); @@ -172,7 +167,7 @@ private: bool m_certAccepted = false; QString m_discoveryUrl; - int m_discoveryInterval = 10000; // ms + int m_discoveryInterval = 30000; // ms QTimer m_discoveryTimer; bool m_discovering = false; QList<QOpcUaApplicationDescription> m_discoveredServers; |
