mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #273, runtime context
* added send status message for convenience * order in graceful shutdown
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
#define BLACKCORE_CONTEXT_RUNTIME_H
|
||||
|
||||
#include "blackcore/context_runtime_config.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include <QDBusConnection>
|
||||
#include <QObject>
|
||||
#include <QMultiMap>
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
// forward declaration, see review
|
||||
@@ -142,6 +145,14 @@ namespace BlackCore
|
||||
//! Clean up (will be connected to signal QCoreApplication::aboutToQuit)
|
||||
void gracefulShutdown();
|
||||
|
||||
//! \copydoc IContextApplication::sendStatusMessage
|
||||
//! \remarks fail safe
|
||||
void sendStatusMessage(const BlackMisc::CStatusMessage &message);
|
||||
|
||||
//! \copydoc IContextApplication::sendStatusMessage
|
||||
//! \remarks fail safe
|
||||
void sendStatusMessages(const BlackMisc::CStatusMessageList &messages);
|
||||
|
||||
// ------- Context as interface, normal way to access a context
|
||||
|
||||
//! Context for network
|
||||
|
||||
Reference in New Issue
Block a user