Renamed sample_blackgui -> swiftgui_standard and sample_blackcore -> swiftcore as discussed

This commit is contained in:
Klaus Basan
2014-08-03 01:56:04 +02:00
parent 18fe626db7
commit 34c9c5b7df
23 changed files with 13 additions and 37 deletions

38
src/swiftcore/tool.h Normal file
View File

@@ -0,0 +1,38 @@
#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(BlackCore::CRuntime *runtime);
};
} // namespace
#endif // guard