mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #199 , removed statusMessage sending and log from all contexts but application context
Goal: Single place to send status messages and log -> application context
This commit is contained in:
@@ -209,21 +209,4 @@ namespace BlackCore
|
||||
return this->m_dBusInterface->callDBusRet<bool>(QLatin1Literal("isMuted"));
|
||||
}
|
||||
|
||||
/*
|
||||
* Logging
|
||||
*/
|
||||
void CContextAudioProxy::log(const QString &method, const QString &m1, const QString &m2, const QString &m3, const QString &m4) const
|
||||
{
|
||||
if (m1.isEmpty())
|
||||
qDebug() << " LOG: " << method;
|
||||
else if (m2.isEmpty())
|
||||
qDebug() << " LOG: " << method << m1;
|
||||
else if (m3.isEmpty())
|
||||
qDebug() << " LOG: " << method << m1 << m2;
|
||||
else if (m4.isEmpty())
|
||||
qDebug() << " LOG: " << method << m1 << m2 << m3;
|
||||
else
|
||||
qDebug() << " LOG: " << method << m1 << m2 << m3 << m4;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -43,16 +43,6 @@ namespace BlackCore
|
||||
//! DBus version constructor
|
||||
CContextAudioProxy(const QString &serviceName, QDBusConnection &connection, CRuntimeConfig::ContextMode mode, CRuntime *runtime);
|
||||
|
||||
/*!
|
||||
* \brief Helper for logging, likely to be removed / changed
|
||||
* \param method
|
||||
* \param m1
|
||||
* \param m2
|
||||
* \param m3
|
||||
* \param m4
|
||||
*/
|
||||
void log(const QString &method, const QString &m1 = "", const QString &m2 = "", const QString &m3 = "", const QString &m4 = "") const;
|
||||
|
||||
public slots:
|
||||
|
||||
//! \copydoc IContextAudio::setOwnAircraft()
|
||||
|
||||
@@ -46,13 +46,6 @@ namespace BlackCore
|
||||
virtual ~IContextNetwork() {}
|
||||
|
||||
signals:
|
||||
|
||||
//! Send status message
|
||||
void statusMessage(const BlackMisc::CStatusMessage &message);
|
||||
|
||||
//! Send status messages
|
||||
void statusMessages(const BlackMisc::CStatusMessageList &messages);
|
||||
|
||||
//! ATC station (online) list has been changed
|
||||
void changedAtcStationsOnline();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user