Files
pilotclient/samples/blackcore/tool.h
Klaus Basan 8d5e06a439 refs #199 and refs #198, formatting / Doxygen as preparation for some refactoring.
Also added new icon as application and table view icon.
2014-04-17 00:05:41 +02:00

38 lines
819 B
C++

#ifndef BLACKMISCTEST_Tool_H
#define BLACKMISCTEST_Tool_H
#include "blackcore/context_runtime.h"
#include <QCoreApplication>
#include <QProcess>
#include <QDBusConnection>
namespace BlackMiscTest
{
/*!
* \brief Supporting functions for running the tests
*/
class Tool
{
private:
//! \brief Constructor
Tool() {}
public:
//! \brief Get process id
static qint64 getPid()
{
return QCoreApplication::applicationPid();
}
//! Start a new process
static QProcess *startNewProcess(const QString &executable, const QStringList &arguments = QStringList(), QObject *parent = 0);
//! \brief Server loop
static void serverLoop(const BlackCore::CRuntime *runtime);
};
} // namespace
#endif // guard