mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #288, added FSD servers to context
* new logging in empty context * formatting
This commit is contained in:
committed by
Roland Winklmeier
parent
a401ce439d
commit
c39b72b12f
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user