refs #199 , adjusted context classes

* removed usingLocalObjects() now in CContext
* removed getRuntime() now in CContext
* Constructors no longer public, context can only be obtained via runtime object
* runtime class is friend class
This commit is contained in:
Klaus Basan
2014-04-01 11:48:45 +02:00
parent 0b033fdcac
commit 77fd3bcd70
28 changed files with 161 additions and 290 deletions

View File

@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "context_application_impl.h"
#include "coreruntime.h"
#include "context_runtime.h"
#include "blackmisc/settingutilities.h"
using namespace BlackMisc;
@@ -15,7 +15,7 @@ namespace BlackCore
/*
* Init this context
*/
CContextApplication::CContextApplication(QObject *parent) : IContextApplication(parent)
CContextApplication::CContextApplication(CRuntimeConfig::ContextMode mode, CRuntime *runtime) : IContextApplication(mode, runtime)
{
// void
}