swift
servicetool.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
6 
7 #ifndef SWIFT_SAMPLE_SERVICETOOL_H
8 #define SWIFT_SAMPLE_SERVICETOOL_H
9 
10 #include <QCoreApplication>
11 #include <QDBusArgument>
12 #include <QString>
13 #include <QStringList>
14 #include <QtGlobal>
15 
16 class QDBusConnection;
17 class QObject;
18 class QProcess;
19 
20 namespace swift::misc
21 {
22  class CDBusServer;
23 }
24 namespace swift::sample
25 {
26  class Testservice; // forward declaration
27 
32  {
33  public:
35  static void dataTransferTestClient(const QString &address);
36 
38  static void dataTransferTestServer(swift::misc::CDBusServer *dBusServer, bool verbose);
39 
41  static void sendDataToTestservice(const QDBusConnection &connection);
42 
43  private:
45  ServiceTool() = delete;
46  };
47 } // namespace swift::sample
48 
49 #endif // SWIFT_SAMPLE_SERVICETOOL_H
Custom DBusServer.
Definition: dbusserver.h:34
Supporting / helper functions for running the tests.
Definition: servicetool.h:32
static void dataTransferTestClient(const QString &address)
Client side of data transfer test.
Definition: servicetool.cpp:69
static void sendDataToTestservice(const QDBusConnection &connection)
Loop to send data to test service (slots on server)
Definition: servicetool.cpp:82
static void dataTransferTestServer(swift::misc::CDBusServer *dBusServer, bool verbose)
Server side of data transfer test.
Definition: servicetool.cpp:55
Free functions in swift::misc.