refs #198 , refs #199 adjusted samples

This commit is contained in:
Klaus Basan
2014-04-01 12:36:20 +02:00
parent 4e8e2eb0d4
commit 6e3b081fd2
3 changed files with 24 additions and 21 deletions

View File

@@ -3,11 +3,15 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "blackcore/coreruntime.h"
#include "blackcore/context_runtime.h"
#include "blackmisc/blackmiscfreefunctions.h"
#include "blackcore/context_settings.h"
#include "tool.h"
#include <QtConcurrent/QtConcurrent>
#include <QMetaType>
#include <QMetaMethod>
/*!
* DBus tests, tests marshalling / unmarshalling of many value classes.
@@ -17,11 +21,10 @@ int main(int argc, char *argv[])
{
// metadata are registered in runtime
QCoreApplication a(argc, argv);
BlackCore::CCoreRuntime *core = new BlackCore::CCoreRuntime(true, &a);
BlackCore::CRuntime *core = new BlackCore::CRuntime(BlackCore::CRuntimeConfig::forCore(), &a);
QtConcurrent::run(BlackMiscTest::Tool::serverLoop, core); // QFuture<void> future
qDebug() << "Server event loop, pid:" << BlackMiscTest::Tool::getPid();
// loop
// end
return a.exec();
}