mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
52 lines
1.4 KiB
C++
52 lines
1.4 KiB
C++
/* Copyright (C) 2013
|
|
* swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
//! \ingroup sampleblackmiscdbus
|
|
|
|
#ifndef BLACKSAMPLE_SERVICETOOL_H
|
|
#define BLACKSAMPLE_SERVICETOOL_H
|
|
|
|
#include <QCoreApplication>
|
|
#include <QDBusArgument>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
#include <QtGlobal>
|
|
|
|
class QDBusConnection;
|
|
class QObject;
|
|
class QProcess;
|
|
|
|
namespace BlackMisc { class CDBusServer; }
|
|
namespace BlackSample
|
|
{
|
|
class Testservice; // forward declaration
|
|
|
|
/*!
|
|
* Supporting / helper functions for running the tests
|
|
*/
|
|
class ServiceTool
|
|
{
|
|
public:
|
|
//! Client side of data transfer test
|
|
static void dataTransferTestClient(const QString &address);
|
|
|
|
//! Server side of data transfer test
|
|
static void dataTransferTestServer(BlackMisc::CDBusServer *dBusServer, bool verbose);
|
|
|
|
//! Loop to send data to test service (slots on server)
|
|
static void sendDataToTestservice(const QDBusConnection &connection);
|
|
|
|
private:
|
|
//! No constructor
|
|
ServiceTool() = delete;
|
|
};
|
|
} // namespace
|
|
|
|
#endif // guard
|