mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
refs #199, removed reEmitSignal for time being.
* Discussion: https://dev.vatsim-germany.org/issues/199#note-11 * Turned widgetGuiStarted / Terminated in more generic method
This commit is contained in:
@@ -30,7 +30,7 @@ namespace BlackCore
|
||||
public:
|
||||
|
||||
//! What output to redirect
|
||||
enum RedirectionLevel
|
||||
enum RedirectionLevel : uint
|
||||
{
|
||||
RedirectNone,
|
||||
RedirectAllOutput,
|
||||
@@ -38,6 +38,20 @@ namespace BlackCore
|
||||
RedirectError
|
||||
};
|
||||
|
||||
//! Components
|
||||
enum Component : uint
|
||||
{
|
||||
ComponentGui,
|
||||
ComponentCore
|
||||
};
|
||||
|
||||
//! What a component does
|
||||
enum Actions : uint
|
||||
{
|
||||
ActionStarts,
|
||||
ActionStops
|
||||
};
|
||||
|
||||
//! Service name
|
||||
static const QString &InterfaceName()
|
||||
{
|
||||
@@ -81,25 +95,22 @@ namespace BlackCore
|
||||
//! never output redirected stream messages from the same context again
|
||||
void redirectedOutput(const BlackMisc::CStatusMessage &message, qint64 contextId);
|
||||
|
||||
//! Widget GUI is about to start
|
||||
void widgetGuiStarting();
|
||||
|
||||
//! Widget GUI is about to terminate
|
||||
void widgetGuiTerminating();
|
||||
//! A component changes
|
||||
void componentChanged(uint component, uint action);
|
||||
|
||||
public slots:
|
||||
|
||||
//! \brief Ping a token, used to check if application is alive
|
||||
virtual qint64 ping(qint64 token) const = 0;
|
||||
|
||||
//! \copydoc CContext::reEmitSignalFromProxy
|
||||
virtual void signalFromProxy(const QString &signalName) = 0;
|
||||
|
||||
//! \brief Status message
|
||||
//! Status message
|
||||
virtual void sendStatusMessage(const BlackMisc::CStatusMessage &message) = 0;
|
||||
|
||||
//! Send status messages
|
||||
virtual void sendStatusMessages(const BlackMisc::CStatusMessageList &messages) = 0;
|
||||
|
||||
//! A component has changed its state
|
||||
virtual void notifyAboutComponentChange(uint component, uint action) = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user