mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
refs #199, removed context_application_base (moved to IContext application)
* as discussed under 4, and in the meeting https://dev.vatsim-germany.org/boards/22/topics/1671?r=1676#message-1676
This commit is contained in:
36
src/blackcore/context_application_event.h
Normal file
36
src/blackcore/context_application_event.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef BLACKCORE_CONTEXT_APPLICATION_EVENT_H
|
||||
#define BLACKCORE_CONTEXT_APPLICATION_EVENT_H
|
||||
|
||||
#include "blackcore/context_application.h"
|
||||
#include <QEvent>
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
/*!
|
||||
* \brief Event to allow cross thread output redirection
|
||||
*/
|
||||
class CApplicationEvent : public QEvent
|
||||
{
|
||||
friend class IContextApplication;
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
CApplicationEvent(const BlackMisc::CStatusMessage &msg, qint64 contextId) :
|
||||
QEvent(eventType()), m_message(msg), m_contextId(contextId) {}
|
||||
//! Destructor
|
||||
virtual ~CApplicationEvent() {}
|
||||
//! Event type
|
||||
static const QEvent::Type &eventType()
|
||||
{
|
||||
const static QEvent::Type t = static_cast<QEvent::Type>(QEvent::registerEventType());
|
||||
return t;
|
||||
}
|
||||
|
||||
private:
|
||||
BlackMisc::CStatusMessage m_message;
|
||||
qint64 m_contextId;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user