mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
36 lines
617 B
C++
36 lines
617 B
C++
#ifndef BLACKMISCTEST_Tool_H
|
|
#define BLACKMISCTEST_Tool_H
|
|
|
|
#include "blackcore/context_runtime.h"
|
|
#include <QCoreApplication>
|
|
#include <QProcess>
|
|
#include <QDBusConnection>
|
|
|
|
namespace BlackMiscTest
|
|
{
|
|
|
|
/*!
|
|
* Supporting functions for running the tests
|
|
*/
|
|
class Tool
|
|
{
|
|
private:
|
|
//! Constructor
|
|
Tool() {}
|
|
|
|
public:
|
|
//! Get process id
|
|
static qint64 getPid()
|
|
{
|
|
return QCoreApplication::applicationPid();
|
|
}
|
|
|
|
//! Server loop
|
|
static void serverLoop(BlackCore::CRuntime *runtime);
|
|
|
|
};
|
|
|
|
} // namespace
|
|
|
|
#endif // guard
|