refs #288, added FSD servers to context

* new logging in empty context
* formatting
This commit is contained in:
Klaus Basan
2014-11-08 16:42:09 +01:00
committed by Roland Winklmeier
parent a401ce439d
commit c39b72b12f
8 changed files with 123 additions and 45 deletions

View File

@@ -12,14 +12,13 @@
#include "blackcore/context_runtime_config.h"
#include "blackcore/context_runtime.h"
#include "blackmisc/logmessage.h"
#include <QObject>
#include <QDateTime>
namespace BlackCore
{
/*!
* \brief Base for all context classes
*/
//! Base for all context classes
class CContext : public QObject
{
public:
@@ -129,6 +128,12 @@ namespace BlackCore
return QString(path) + ":" + QString::number(this->getUniqueId());
}
//! Empty context called
void logEmptyContextWarning(const QString &functionName) const
{
CLogMessage(this, CLogCategory::contextSlot()).warning("Empty context called, details: %1") << functionName;
}
//! Standard message when status message is returned in empty context
static const BlackMisc::CStatusMessage &statusMessageEmptyContext();
};