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:
Klaus Basan
2014-04-08 14:37:00 +02:00
parent 9b26cd6435
commit 62109ac7f3
3 changed files with 0 additions and 34 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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();