summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorØystein Heskestad <oystein.heskestad@qt.io>2023-05-12 15:59:55 +0200
committerØystein Heskestad <oystein.heskestad@qt.io>2023-06-06 11:32:37 +0200
commit8230981806cf60e1a0d5e02540189d36d053cfda (patch)
tree821767977a766077132fb652b617a49e1d6646d3 /examples
parent5586e24e1e8330b55dd738a4eac000faafcf22c9 (diff)
Delete cppclient example
This example does not add anything not covered by other examples. Task-number: QTBUG-112850 Pick-to: 6.5 6.6 Change-Id: Iaca69aa025d36dbc539904c72ed4aef8476a6b12 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/remoteobjects/CMakeLists.txt1
-rw-r--r--examples/remoteobjects/cppclient/CMakeLists.txt40
-rw-r--r--examples/remoteobjects/cppclient/cppclient.pro19
-rw-r--r--examples/remoteobjects/cppclient/main.cpp52
-rw-r--r--examples/remoteobjects/cppclient/timemodel.rep12
-rw-r--r--examples/remoteobjects/remoteobjects.pro1
6 files changed, 0 insertions, 125 deletions
diff --git a/examples/remoteobjects/CMakeLists.txt b/examples/remoteobjects/CMakeLists.txt
index 6f4f564..5493be8 100644
--- a/examples/remoteobjects/CMakeLists.txt
+++ b/examples/remoteobjects/CMakeLists.txt
@@ -4,7 +4,6 @@
if (NOT ANDROID)
qt_internal_add_example(remoteobjects_server)
endif()
-qt_internal_add_example(cppclient)
add_subdirectory(simpleswitch)
add_subdirectory(websockets)
if(TARGET Qt::Widgets)
diff --git a/examples/remoteobjects/cppclient/CMakeLists.txt b/examples/remoteobjects/cppclient/CMakeLists.txt
deleted file mode 100644
index fb3b816..0000000
--- a/examples/remoteobjects/cppclient/CMakeLists.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright (C) 2022 The Qt Company Ltd.
-# SPDX-License-Identifier: BSD-3-Clause
-
-cmake_minimum_required(VERSION 3.16)
-project(CppClient LANGUAGES CXX)
-
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-set(CMAKE_AUTOMOC ON)
-
-if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
-endif()
-
-set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/remoteobjects/cppclient")
-
-find_package(Qt6 REQUIRED COMPONENTS Core RemoteObjects)
-
-qt_add_executable(CppClient
- main.cpp
-)
-
-set_target_properties(CppClient PROPERTIES
- WIN32_EXECUTABLE TRUE
- MACOSX_BUNDLE FALSE
-)
-
-target_link_libraries(CppClient PUBLIC
- Qt::Core
- Qt::RemoteObjects
-)
-
-qt6_add_repc_replicas(CppClient
- timemodel.rep
-)
-
-install(TARGETS CppClient
- RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
- BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
- LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
-)
diff --git a/examples/remoteobjects/cppclient/cppclient.pro b/examples/remoteobjects/cppclient/cppclient.pro
deleted file mode 100644
index 7b57442..0000000
--- a/examples/remoteobjects/cppclient/cppclient.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-QT += core
-
-REPC_REPLICA += timemodel.rep
-QT += remoteobjects
-
-QT -= gui
-
-TARGET = CppClient
-CONFIG -= app_bundle
-
-TEMPLATE = app
-
-SOURCES += main.cpp
-
-OTHER_FILES += \
- timemodel.rep
-
-target.path = $$[QT_INSTALL_EXAMPLES]/remoteobjects/cppclient
-INSTALLS += target
diff --git a/examples/remoteobjects/cppclient/main.cpp b/examples/remoteobjects/cppclient/main.cpp
deleted file mode 100644
index 1a13fd4..0000000
--- a/examples/remoteobjects/cppclient/main.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (C) 2017 Ford Motor Company
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include <QCoreApplication>
-#include <QTimer>
-#include "rep_timemodel_replica.h"
-
-class tester : public QObject
-{
- Q_OBJECT
-public:
- tester() : QObject(nullptr)
- {
- QRemoteObjectNode m_client(QUrl(QStringLiteral("local:registry")));
- ptr1.reset(m_client.acquire< MinuteTimerReplica >());
- ptr2.reset(m_client.acquire< MinuteTimerReplica >());
- ptr3.reset(m_client.acquire< MinuteTimerReplica >());
- QTimer::singleShot(0, this, &tester::clear);
- QTimer::singleShot(1, this, &tester::clear);
- QTimer::singleShot(10000, this, &tester::clear);
- QTimer::singleShot(11000, this, &tester::clear);
- }
-public slots:
- void clear()
- {
- static int i = 0;
- if (i == 0) {
- i++;
- ptr1.reset();
- } else if (i == 1) {
- i++;
- ptr2.reset();
- } else if (i == 2) {
- i++;
- ptr3.reset();
- } else {
- qApp->quit();
- }
- }
-
-private:
- QScopedPointer<MinuteTimerReplica> ptr1, ptr2, ptr3;
-};
-
-int main(int argc, char *argv[])
-{
- QCoreApplication a(argc, argv);
- tester t;
- return a.exec();
-}
-
-#include "main.moc"
diff --git a/examples/remoteobjects/cppclient/timemodel.rep b/examples/remoteobjects/cppclient/timemodel.rep
deleted file mode 100644
index cbfaf24..0000000
--- a/examples/remoteobjects/cppclient/timemodel.rep
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <QtCore>
-
-POD PresetInfo(int presetNumber, float frequency, QString stationName)
-class MinuteTimer
-{
- PROP(int hour=1);
- PROP(int minute=51);
- SIGNAL(timeChanged());
- SIGNAL(timeChanged2(QTime t));
- SIGNAL(sendCustom(PresetInfo info));
- SLOT(void SetTimeZone(int zn));
-};
diff --git a/examples/remoteobjects/remoteobjects.pro b/examples/remoteobjects/remoteobjects.pro
index e939610..57f12f4 100644
--- a/examples/remoteobjects/remoteobjects.pro
+++ b/examples/remoteobjects/remoteobjects.pro
@@ -2,7 +2,6 @@ TEMPLATE = subdirs
CONFIG += debug_and_release ordered
SUBDIRS = \
remoteobjects_server \
- cppclient \
simpleswitch \
websockets