mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
refs #336 Removed the old getMessageCategory methods.
This commit is contained in:
@@ -41,9 +41,6 @@ namespace BlackCore
|
|||||||
//! Constructor
|
//! Constructor
|
||||||
CAirspaceWatchdog(const BlackMisc::PhysicalQuantities::CTime & initialTimeOut, QObject *parent);
|
CAirspaceWatchdog(const BlackMisc::PhysicalQuantities::CTime & initialTimeOut, QObject *parent);
|
||||||
|
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.airspacewatchdog"; }
|
|
||||||
|
|
||||||
//! Sets the maximum time, after a client is considered timed out
|
//! Sets the maximum time, after a client is considered timed out
|
||||||
void setTimeout(const BlackMisc::PhysicalQuantities::CTime &value) { m_timeout = value; }
|
void setTimeout(const BlackMisc::PhysicalQuantities::CTime &value) { m_timeout = value; }
|
||||||
|
|
||||||
|
|||||||
@@ -57,9 +57,6 @@ namespace BlackCore
|
|||||||
ActionStops
|
ActionStops
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.context.application"; }
|
|
||||||
|
|
||||||
//! Service name
|
//! Service name
|
||||||
static const QString &InterfaceName()
|
static const QString &InterfaceName()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ namespace BlackCore
|
|||||||
IContextAudio(CRuntimeConfig::ContextMode mode, CRuntime *runtime) : CContext(mode, runtime) {}
|
IContextAudio(CRuntimeConfig::ContextMode mode, CRuntime *runtime) : CContext(mode, runtime) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.context.audio"; }
|
|
||||||
|
|
||||||
//! \brief Interface name
|
//! \brief Interface name
|
||||||
static const QString &InterfaceName()
|
static const QString &InterfaceName()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ namespace BlackCore
|
|||||||
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTNETWORK_INTERFACENAME)
|
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTNETWORK_INTERFACENAME)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.context.network"; }
|
|
||||||
|
|
||||||
//! DBus interface name
|
//! DBus interface name
|
||||||
static const QString &InterfaceName()
|
static const QString &InterfaceName()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ namespace BlackCore
|
|||||||
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTOWNAIRCRAFT_INTERFACENAME)
|
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTOWNAIRCRAFT_INTERFACENAME)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.context.ownaircraft"; }
|
|
||||||
|
|
||||||
//! DBus interface name
|
//! DBus interface name
|
||||||
static const QString &InterfaceName()
|
static const QString &InterfaceName()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,9 +45,6 @@ namespace BlackCore
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.runtime"; }
|
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
CRuntime(const CRuntimeConfig &config, QObject *parent = nullptr);
|
CRuntime(const CRuntimeConfig &config, QObject *parent = nullptr);
|
||||||
|
|
||||||
|
|||||||
@@ -56,9 +56,6 @@ namespace BlackCore
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.context.settings"; }
|
|
||||||
|
|
||||||
//! Service name
|
//! Service name
|
||||||
static const QString &InterfaceName()
|
static const QString &InterfaceName()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,9 +39,6 @@ namespace BlackCore
|
|||||||
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTSIMULATOR_INTERFACENAME)
|
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTSIMULATOR_INTERFACENAME)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.context.simulator"; }
|
|
||||||
|
|
||||||
//! Service name
|
//! Service name
|
||||||
static const QString &InterfaceName()
|
static const QString &InterfaceName()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,11 +64,6 @@ namespace BlackCore
|
|||||||
*/
|
*/
|
||||||
virtual ~INetwork() {}
|
virtual ~INetwork() {}
|
||||||
|
|
||||||
/*!
|
|
||||||
* Log message category.
|
|
||||||
*/
|
|
||||||
static QString getMessageCategory() { return "swift.trafficNetwork"; }
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Flags for capabilities bitfield.
|
* Flags for capabilities bitfield.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ namespace BlackCore
|
|||||||
Q_ENUMS(Status)
|
Q_ENUMS(Status)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.simulator"; }
|
|
||||||
|
|
||||||
//! ISimulator connection
|
//! ISimulator connection
|
||||||
enum Status
|
enum Status
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,9 +50,6 @@ namespace BlackCore
|
|||||||
IVoice(QObject *parent = nullptr);
|
IVoice(QObject *parent = nullptr);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.voice"; }
|
|
||||||
|
|
||||||
//! Virtual destructor.
|
//! Virtual destructor.
|
||||||
virtual ~IVoice() {}
|
virtual ~IVoice() {}
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,6 @@ namespace BlackCore
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.voice.channel"; }
|
|
||||||
|
|
||||||
//! Com status
|
//! Com status
|
||||||
enum ConnectionStatus
|
enum ConnectionStatus
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,9 +33,6 @@ namespace BlackGui
|
|||||||
//! Destructor
|
//! Destructor
|
||||||
~CSettingsFsxComponent();
|
~CSettingsFsxComponent();
|
||||||
|
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.gui.component.settings.simulator.fsx"; }
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//! Test the SIM connect connectivity
|
//! Test the SIM connect connectivity
|
||||||
void testSimConnectConnection();
|
void testSimConnectConnection();
|
||||||
|
|||||||
@@ -47,9 +47,6 @@ namespace BlackGui
|
|||||||
//! Destructor
|
//! Destructor
|
||||||
~CTextMessageComponent();
|
~CTextMessageComponent();
|
||||||
|
|
||||||
//! Log message category
|
|
||||||
static QString getMessageCategory() { return "swift.gui.component.textMessages"; }
|
|
||||||
|
|
||||||
//! SELCAL callback, SELCAL is obtained by that
|
//! SELCAL callback, SELCAL is obtained by that
|
||||||
void setSelcalCallback(const std::function<const QString(void)> &selcalCallback) { this->m_selcalCallback = selcalCallback; }
|
void setSelcalCallback(const std::function<const QString(void)> &selcalCallback) { this->m_selcalCallback = selcalCallback; }
|
||||||
|
|
||||||
|
|||||||
@@ -42,9 +42,6 @@ namespace BlackMisc
|
|||||||
CTextMessage(const QString &message, const BlackMisc::Aviation::CCallsign &senderCallsign, const BlackMisc::Aviation::CCallsign &recipientCallsign = BlackMisc::Aviation::CCallsign())
|
CTextMessage(const QString &message, const BlackMisc::Aviation::CCallsign &senderCallsign, const BlackMisc::Aviation::CCallsign &recipientCallsign = BlackMisc::Aviation::CCallsign())
|
||||||
: m_message(message), m_received(QDateTime::currentDateTimeUtc()), m_senderCallsign(senderCallsign), m_recipientCallsign(recipientCallsign), m_frequency(0, BlackMisc::PhysicalQuantities::CFrequencyUnit::nullUnit()) {}
|
: m_message(message), m_received(QDateTime::currentDateTimeUtc()), m_senderCallsign(senderCallsign), m_recipientCallsign(recipientCallsign), m_frequency(0, BlackMisc::PhysicalQuantities::CFrequencyUnit::nullUnit()) {}
|
||||||
|
|
||||||
//! Logging category
|
|
||||||
static QString getMessageCategory() { return "swift.textMessage"; }
|
|
||||||
|
|
||||||
//! \brief Get callsign (from)
|
//! \brief Get callsign (from)
|
||||||
const BlackMisc::Aviation::CCallsign &getSenderCallsign() const
|
const BlackMisc::Aviation::CCallsign &getSenderCallsign() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,16 +25,6 @@ namespace BlackMisc
|
|||||||
CSettingUtilities() {}
|
CSettingUtilities() {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! Log message category for anything related to settings
|
|
||||||
static QString getMessageCategory() { return "swift.settings"; }
|
|
||||||
|
|
||||||
//! Log message category for settings validation messages
|
|
||||||
static QString validationMessageCategory() { return "swift.settings.validation"; }
|
|
||||||
|
|
||||||
//! Log message category for settings update messages
|
|
||||||
static QString updateMessageCategory() { return "swift.settings.update"; }
|
|
||||||
|
|
||||||
//! Command validate
|
//! Command validate
|
||||||
static const QString &CmdValidate()
|
static const QString &CmdValidate()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user