summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannis Voelker <jannis.voelker@basyskom.com>2018-01-12 15:34:03 +0100
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2018-01-22 08:51:33 +0000
commit950e8fd02db89e1f9f7466f312d2ca9fb4c92840 (patch)
treeb995729791b51bb2492a5695ab5592230b902d12
parent2003ce5da9e6587f6da00bf2244088418e071ccb (diff)
Remove the accontrol example
The server side of the accontrol example hasn't been ported to the open62541 test server, so the client was never updated to use the current async API. Change-Id: I394064a2536f04fdb0eac9c6618a14c4be50ca8f Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r--.gitignore1
-rw-r--r--examples/opcua/accontrol/accontrol.pro16
-rw-r--r--examples/opcua/accontrol/accontroltest.cpp244
-rw-r--r--examples/opcua/accontrol/accontroltest.h108
-rw-r--r--examples/opcua/accontrol/accontroltest.ui165
-rw-r--r--examples/opcua/accontrol/main.cpp62
-rw-r--r--examples/opcua/opcua.pro3
-rw-r--r--src/opcua/doc/src/examples/accontrol.qdoc105
8 files changed, 0 insertions, 704 deletions
diff --git a/.gitignore b/.gitignore
index 8487e42..9e58424 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,7 +9,6 @@
/config.tests/*/*
/config.log
-examples/opcua/accontrol/accontrol
tests/open62541-testserver/open62541-testserver
diff --git a/examples/opcua/accontrol/accontrol.pro b/examples/opcua/accontrol/accontrol.pro
deleted file mode 100644
index 19970ac..0000000
--- a/examples/opcua/accontrol/accontrol.pro
+++ /dev/null
@@ -1,16 +0,0 @@
-TEMPLATE = app
-TARGET = accontrol
-
-QT += widgets opcua
-
-# Input
-HEADERS += \
- accontroltest.h
-FORMS += \
- accontroltest.ui
-SOURCES += main.cpp \
- accontroltest.cpp
-
-# install
-target.path = $$[QT_INSTALL_EXAMPLES]/opcua/accontrol
-INSTALLS += target
diff --git a/examples/opcua/accontrol/accontroltest.cpp b/examples/opcua/accontrol/accontroltest.cpp
deleted file mode 100644
index 28bc0ba..0000000
--- a/examples/opcua/accontrol/accontroltest.cpp
+++ /dev/null
@@ -1,244 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 basysKom GmbH, opensource@basyskom.com
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtOpcUa module.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "accontroltest.h"
-#include "ui_accontroltest.h"
-
-#include <QtOpcUa/QOpcUaMonitoredValue>
-#include <QtOpcUa/QOpcUaSubscription>
-#include <QtOpcUa/QOpcUaNode>
-#include <QtOpcUa/QOpcUaProvider>
-
-#include <QtCore/qcommandlineparser.h>
-#include <QtCore/qdebug.h>
-#include <QtWidgets/qstatusbar.h>
-
-const QString SETPOINT_NODE = QStringLiteral("ns=3;s=ACControl.SetPoint");
-
-QOpcUaACControlTest::QOpcUaACControlTest(QWidget *parent)
- : QMainWindow(parent)
- , m_oneSecondSubscription(0)
- , m_pTimeMonitor(0)
- , m_hundredMsSubscription(0)
- , m_pSetPointMonitor(0)
- , m_pTemperatureMonitor(0)
- , m_pStateMonitor(0)
-{
- // parse command line here
- QCommandLineParser parser;
- parser.setApplicationDescription("A graphical OPC UA client for a simulated air conditioner using QtOpcUa");
- parser.addHelpOption();
- parser.addVersionOption();
-
- QCommandLineOption endpointOption(QStringList() << "e" << "endpoint",
- "OPC UA endpoint to connect to.",
- "endpoint", "opc.tcp://localhost:43344");
- parser.addOption(endpointOption);
-
- QCommandLineOption pluginOption(QStringList() << "p" << "plugin",
- "override the OPC UA plugin used",
- "plugin", QString());
- parser.addOption(pluginOption);
-
- parser.process(qApp->arguments());
-
- // setup UI, the OPC UA connection and some subscriptions
- ui.setupUi(this);
-
- m_pProvider = new QOpcUaProvider(this);
- if (!parser.isSet(pluginOption)) {
- qWarning() << "You didn't select a plugin. Use -p or --plugin, e.g. freeopcua";
- qWarning() << "Available backends: " << m_pProvider->availableBackends().join(", ");
- qWarning() << "Falling back to \"freeopcua\" plugin!";
- m_pClient = m_pProvider->createClient("freeopcua");
- } else {
- m_pClient = m_pProvider->createClient(parser.value(pluginOption));
- }
-
-
- if (!m_pClient) {
- qWarning() << "Could not initialize QtOpcUa plugin: " <<
- qPrintable(parser.value(pluginOption));
- exit(EXIT_FAILURE);
- }
-
- // show currently selected plugin in the title bar
- setWindowTitle(windowTitle() + " (backend: " + m_pClient->backend() + ")");
-
- connect(m_pClient, &QOpcUaClient::connected,
- this, &QOpcUaACControlTest::clientConnected);
- connect(m_pClient, &QOpcUaClient::disconnected,
- this, &QOpcUaACControlTest::clientDisconnected);
- connect(m_pClient, &QOpcUaClient::stateChanged,
- this, &QOpcUaACControlTest::statusChanged);
-
- m_pClient->connectToEndpoint(parser.value(endpointOption));
-}
-
-QOpcUaACControlTest::~QOpcUaACControlTest()
-{
- delete m_pClient;
- delete m_pProvider;
- delete m_pSetPointMonitor;
- delete m_pTemperatureMonitor;
- delete m_pTimeMonitor;
- delete m_oneSecondSubscription;
- delete m_hundredMsSubscription;
-}
-
-void QOpcUaACControlTest::writeValue(int val)
-{
- if (!m_pSetPointNode->setValue(QVariant(static_cast<double>(val))))
- qWarning() << "Failed to write new set point value!";
-}
-
-void QOpcUaACControlTest::updateText(const QVariant &txt)
-{
- ui.myLabel->setText(txt.toString());
-}
-
-void QOpcUaACControlTest::updateSetpoint(QVariant val)
-{
- ui.setpointBar->setValue(val.toInt());
-
- if (!ui.horizontalSlider->isEnabled()) {
- ui.horizontalSlider->setEnabled(true);
- ui.horizontalSlider->setValue(val.toInt());
- }
-}
-
-void QOpcUaACControlTest::updateTemperature(QVariant val)
-{
- ui.temperatureBar->setValue(val.toDouble()*10);
-}
-
-void QOpcUaACControlTest::start(void)
-{
- QScopedPointer<QOpcUaNode> node(m_pClient->node(QStringLiteral("ns=3;s=ACControl.Start")));
- bool res = node->setValue(true);
- if (!res)
- qDebug("Could not call start method");
-}
-
-void QOpcUaACControlTest::stop(void)
-{
- QScopedPointer<QOpcUaNode> node(m_pClient->node(QStringLiteral("ns=3;s=ACControl.Stop")));
- bool res = node->setValue(true);
- if (!res)
- qDebug("Could not call stop method");
-}
-
-void QOpcUaACControlTest::stateChange(QVariant state)
-{
- if (state.toInt() == 0) {
- ui.stopButton->setDisabled(true);
- ui.startButton->setEnabled(true);
- ui.startButton->setFocus();
- } else {
- ui.stopButton->setEnabled(true);
- ui.startButton->setDisabled(true);
- ui.stopButton->setFocus();
- }
-}
-
-void QOpcUaACControlTest::clientConnected()
-{
- // get current time from server every 1 second and display it
- m_oneSecondSubscription = m_pClient->createSubscription(1000);
-
- m_timeNode = m_pClient->node(QStringLiteral("ns=0;i=2258"));
- m_pTimeMonitor = m_oneSecondSubscription->addValue(m_timeNode);
- if (m_pTimeMonitor) {
- connect(m_pTimeMonitor, &QOpcUaMonitoredValue::valueChanged, this,
- &QOpcUaACControlTest::updateText);
- }
-
- m_hundredMsSubscription = m_pClient->createSubscription(100);
-
- // subscribe to current set point and temperature
- m_pSetPointNode = m_pClient->node(SETPOINT_NODE);
- m_pSetPointMonitor = m_hundredMsSubscription->addValue(m_pSetPointNode);
- if (m_pSetPointMonitor) {
- connect(m_pSetPointMonitor, &QOpcUaMonitoredValue::valueChanged, this,
- &QOpcUaACControlTest::updateSetpoint);
- }
-
- m_temperatureNode = m_pClient->node(QStringLiteral("ns=3;s=ACControl.CurrentTemp"));
- m_pTemperatureMonitor = m_hundredMsSubscription->addValue(m_temperatureNode);
- if (m_pTemperatureMonitor) {
- connect(m_pTemperatureMonitor, &QOpcUaMonitoredValue::valueChanged,
- this, &QOpcUaACControlTest::updateTemperature);
- }
-
- ui.horizontalSlider->setEnabled(false); // wait for real value from server
- connect(ui.horizontalSlider, &QAbstractSlider::valueChanged, this, &QOpcUaACControlTest::writeValue);
-
- // connect start/stop logic
- connect(ui.stopButton, &QAbstractButton::clicked, this, &QOpcUaACControlTest::stop);
- connect(ui.startButton, &QAbstractButton::clicked, this, &QOpcUaACControlTest::start);
-
- m_stateNode = m_pClient->node(QStringLiteral("ns=3;s=ACControl.IsRunning"));
- m_pStateMonitor = m_oneSecondSubscription->addValue(m_stateNode);
- if (m_pStateMonitor) {
- connect(m_pStateMonitor, &QOpcUaMonitoredValue::valueChanged, this,
- &QOpcUaACControlTest::stateChange);
- }
-}
-
-void QOpcUaACControlTest::clientDisconnected()
-{
- qWarning() << "Could not connect to server!";
-}
-
-void QOpcUaACControlTest::statusChanged(QOpcUaClient::ClientState state)
-{
- statusBar()->showMessage(QString("current state: ") + QVariant::fromValue(state).toString());
-}
-
diff --git a/examples/opcua/accontrol/accontroltest.h b/examples/opcua/accontrol/accontroltest.h
deleted file mode 100644
index 14191db..0000000
--- a/examples/opcua/accontrol/accontroltest.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 basysKom GmbH, opensource@basyskom.com
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtOpcUa module.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef ACCONTROLTEST_H
-#define ACCONTROLTEST_H
-
-#include <QtWidgets/qmainwindow.h>
-#include <QtOpcUa/qopcuaclient.h>
-
-#include "ui_accontroltest.h"
-
-QT_BEGIN_NAMESPACE
-class QOpcUaClient;
-class QOpcUaNode;
-class QOpcUaProvider;
-class QOpcUaMonitoredValue;
-class QOpcUaSubscription;
-QT_END_NAMESPACE
-
-class QOpcUaACControlTest : public QMainWindow
-{
- Q_OBJECT
-
-public:
- explicit QOpcUaACControlTest(QWidget *parent = 0);
- virtual ~QOpcUaACControlTest();
-
-public slots:
- void writeValue(int val);
- void updateSetpoint(QVariant val);
- void updateTemperature(QVariant val);
- void updateText(const QVariant &txt);
- void stop(void);
- void start(void);
- void stateChange(QVariant state);
-
- void clientConnected();
- void clientDisconnected();
- void statusChanged(QOpcUaClient::ClientState state);
-
-private:
- Ui::QOpcUaACControlTest ui;
-
- QOpcUaNode *m_pSetPointNode;
-
- QOpcUaSubscription *m_oneSecondSubscription;
- QOpcUaNode *m_timeNode;
- QOpcUaMonitoredValue *m_pTimeMonitor;
-
- QOpcUaSubscription *m_hundredMsSubscription;
- QOpcUaMonitoredValue *m_pSetPointMonitor;
- QOpcUaMonitoredValue *m_pTemperatureMonitor;
- QOpcUaNode *m_temperatureNode;
- QOpcUaMonitoredValue *m_pStateMonitor;
- QOpcUaNode *m_stateNode;
-
- QOpcUaClient *m_pClient;
- QOpcUaProvider *m_pProvider;
-};
-
-#endif // ACCONTROLTEST_H
diff --git a/examples/opcua/accontrol/accontroltest.ui b/examples/opcua/accontrol/accontroltest.ui
deleted file mode 100644
index 4e77a79..0000000
--- a/examples/opcua/accontrol/accontroltest.ui
+++ /dev/null
@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>QOpcUaACControlTest</class>
- <widget class="QMainWindow" name="QOpcUaACControlTest">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>274</width>
- <height>130</height>
- </rect>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="windowTitle">
- <string>OpcUa UI Test</string>
- </property>
- <widget class="QWidget" name="centralWidget">
- <layout class="QGridLayout" name="gridLayout_3">
- <item row="0" column="0">
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="1" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QPushButton" name="startButton">
- <property name="font">
- <font>
- <family>Liberation Mono</family>
- </font>
- </property>
- <property name="text">
- <string>Start</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="stopButton">
- <property name="font">
- <font>
- <family>Liberation Mono</family>
- </font>
- </property>
- <property name="text">
- <string>Stop</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="1" column="1">
- <widget class="QSlider" name="horizontalSlider">
- <property name="maximum">
- <number>100</number>
- </property>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="tickPosition">
- <enum>QSlider::TicksBothSides</enum>
- </property>
- </widget>
- </item>
- <item row="0" column="0" colspan="2">
- <layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0">
- <widget class="QLabel" name="label_2">
- <property name="font">
- <font>
- <family>Liberation Mono</family>
- </font>
- </property>
- <property name="text">
- <string>Temperature</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QProgressBar" name="temperatureBar">
- <property name="maximum">
- <number>1000</number>
- </property>
- <property name="value">
- <number>240</number>
- </property>
- <property name="format">
- <string>%p °C</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="label">
- <property name="font">
- <font>
- <family>Liberation Mono</family>
- </font>
- </property>
- <property name="text">
- <string>Setpoint</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QProgressBar" name="setpointBar">
- <property name="value">
- <number>24</number>
- </property>
- <property name="format">
- <string>%p °C</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </item>
- <item row="1" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <widget class="QLabel" name="serverEventLabel">
- <property name="font">
- <font>
- <family>Liberation Mono</family>
- <pointsize>7</pointsize>
- </font>
- </property>
- <property name="text">
- <string>Server Message</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="myLabel">
- <property name="font">
- <font>
- <family>Liberation Mono</family>
- <pointsize>7</pointsize>
- </font>
- </property>
- <property name="text">
- <string>...</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <resources/>
- <connections/>
-</ui>
diff --git a/examples/opcua/accontrol/main.cpp b/examples/opcua/accontrol/main.cpp
deleted file mode 100644
index ba6bd1b..0000000
--- a/examples/opcua/accontrol/main.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 basysKom GmbH, opensource@basyskom.com
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the QtOpcUa module.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "accontroltest.h"
-
-#include <QtWidgets/QApplication>
-
-int main(int argc, char *argv[])
-{
- QApplication a(argc, argv);
- QOpcUaACControlTest w;
- w.show();
-
- return a.exec();
-}
diff --git a/examples/opcua/opcua.pro b/examples/opcua/opcua.pro
index 8b3aab4..9671085 100644
--- a/examples/opcua/opcua.pro
+++ b/examples/opcua/opcua.pro
@@ -1,4 +1 @@
TEMPLATE = subdirs
-
-#SUBDIRS = accontrol
-
diff --git a/src/opcua/doc/src/examples/accontrol.qdoc b/src/opcua/doc/src/examples/accontrol.qdoc
deleted file mode 100644
index 8623fb3..0000000
--- a/src/opcua/doc/src/examples/accontrol.qdoc
+++ /dev/null
@@ -1,105 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 basysKom GmbH, info@basyskom.com
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example accontrol
- \ingroup qtopcua-examples
- \title Using QOpcUaClient in a basic UI application
-
- \section1 Prerequisites
- This example expects a server with a certain node structure. The
- testserver from \l tests/freeopcua-testserver/ can be used. The server
- has to be started before the client and if it does not listen on the
- default opc.tcp://localhost:43344, you will have to provide a command
- line option "-e" to the client to connect to the right place.
-
- \section1 Used features of QOpcUaClient
- This example uses QOpcUaClient to connect to an OPC UA server which has
- a model of an air conditioner.
- Subscriptions are used to update progress bars with a server side value,
- data from a slider is written to the server, data and units are read from
- the server, methods are called and Event messages are written to a label.
-
- \section1 Implementation
-
- \quotefromfile accontrol/accontroltest.cpp
-
- First, the UI is modelled using the Designer. For convenience, all elements
- are given speaking names to simplify using them from the C++ code.
- This also creates a C++ class in which we include member variables and
- methods for the communication with the OPC UA server.
-
- In the constructor, we create a QOpcUaClient object using the
- QOpcUaProvider and connect it to the OPC UA server.
-
- \skipto m_pProvider
- \printuntil createClient();
- \codeline
-
- \skipto bool
- \printuntil }
-
- After a successful connect, three data change subscriptions are requested
- and the valueChanged signal is connected to different slots.
- Two of them update the progress bars, the third one enables and disables
- the buttons used to trigger server side actions.
-
- \skipto QOpcUaACControlTest
- \printuntil updateTemperature
-
- The slider is connected to a slot which writes the value to the server
-
- \skipto ui.horizontalSlider
- \printuntil ;
-
- \quotefromfile accontrol/accontroltest.cpp
- \skipto QOpcUaACControlTest::writeValue
- \printuntil }
-
- Slots are created and connected to the clicked signal of the buttons. They
- implement the OPC UA function calls to trigger the server side actions.
-
- \quotefromfile accontrol/accontroltest.cpp
- \skipto ui.stopButton
- \printuntil ;
-
- \codeline
-
- \quotefromfile accontrol/accontroltest.cpp
- \skipto QOpcUaACControlTest::start
- \printuntil }
-
- \section1 Usage
- Dragging the slider updates the setpoint value on the server and via the
- subscription, the progress bar is also updated with the current server
- value.
-
- Clicking the Start and Stop buttons changes the status on the server which
- toggles the activity of the two buttons. A message is written to the label
- each time a button is clicked.
-
-*/