summaryrefslogtreecommitdiffstats
path: root/examples/remoteobjects/simpleswitch/registryconnectedserver/main.cpp
diff options
context:
space:
mode:
authorØystein Heskestad <oystein.heskestad@qt.io>2023-09-21 15:21:16 +0200
committerØystein Heskestad <oystein.heskestad@qt.io>2023-09-22 15:17:26 +0200
commitcc349f6ee3ba05e9f3c53cd96b7d7d5565227cb4 (patch)
tree6a6a4284940b29eae154799b1fd854719757a1ca /examples/remoteobjects/simpleswitch/registryconnectedserver/main.cpp
parentdb9f186d4f14ec9e9834529dcc04b7d8b3533e19 (diff)
Move some simpleswitch examples to tests/manual/examples
There have already been created snippets based on these small examples used in the remote objects documentation. Task-number: QTBUG-112850 Pick-to: 6.6 6.5 Change-Id: Ib495eea8f8416831229961acd8f873b943da317d Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'examples/remoteobjects/simpleswitch/registryconnectedserver/main.cpp')
-rw-r--r--examples/remoteobjects/simpleswitch/registryconnectedserver/main.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/examples/remoteobjects/simpleswitch/registryconnectedserver/main.cpp b/examples/remoteobjects/simpleswitch/registryconnectedserver/main.cpp
deleted file mode 100644
index 61480e4..0000000
--- a/examples/remoteobjects/simpleswitch/registryconnectedserver/main.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (C) 2017 Ford Motor Company
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include <QCoreApplication>
-#include "simpleswitch.h"
-
-int main(int argc, char *argv[])
-{
- QCoreApplication a(argc, argv);
-
- SimpleSwitch srcSwitch; // create simple switch
-
- QRemoteObjectRegistryHost regNode(QUrl(QStringLiteral("local:registry"))); // create node that hosts registy
- QRemoteObjectHost srcNode(QUrl(QStringLiteral("local:replica")), QUrl(QStringLiteral("local:registry"))); // create node that will host source and connect to registry
-
- //Note, you can add srcSwitch directly to regNode if desired.
- //We use two Nodes here, as the regNode could easily be in a third process.
-
- srcNode.enableRemoting(&srcSwitch); // enable remoting of source object
-
- return a.exec();
-}
-