mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #371 remove deprecated mic and squelch tests
This commit is contained in:
committed by
Klaus Basan
parent
984c0d084f
commit
1587b4791a
@@ -79,8 +79,6 @@ namespace BlackCore
|
||||
virtual ~IContextAudio() {}
|
||||
|
||||
signals:
|
||||
//! \brief Audio test has been completed
|
||||
void audioTestCompleted();
|
||||
|
||||
//! Voice rooms changed
|
||||
//! \details the flag indicates, whether a room got connected or disconnected
|
||||
@@ -168,18 +166,6 @@ namespace BlackCore
|
||||
*/
|
||||
virtual void playNotification(uint notification, bool considerSettings) const = 0;
|
||||
|
||||
//! Microphone test
|
||||
virtual void runMicrophoneTest() = 0;
|
||||
|
||||
//! Microphone test
|
||||
virtual void runSquelchTest() = 0;
|
||||
|
||||
//! Get the microphone test result
|
||||
virtual QString getMicrophoneTestResult() const = 0;
|
||||
|
||||
//! Get the squelch value
|
||||
virtual double getSquelchValue() const = 0;
|
||||
|
||||
//! Enable audio loopback
|
||||
virtual void enableAudioLoopback(bool enable = true) = 0;
|
||||
|
||||
|
||||
@@ -434,42 +434,6 @@ namespace BlackCore
|
||||
CSoundGenerator::playNotificationSound(0, CNotificationSounds::NotificationsLoadSounds);
|
||||
}
|
||||
|
||||
/*
|
||||
* Mic test.
|
||||
*/
|
||||
void CContextAudio::runMicrophoneTest()
|
||||
{
|
||||
Q_ASSERT(this->m_voice);
|
||||
CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO;
|
||||
// Deprecated
|
||||
}
|
||||
|
||||
/*
|
||||
* Squelch test.
|
||||
*/
|
||||
void CContextAudio::runSquelchTest()
|
||||
{
|
||||
CLogMessage(this).warning("This method is deprecated and will be removed soon");
|
||||
}
|
||||
|
||||
/*
|
||||
* Microphone test
|
||||
*/
|
||||
QString CContextAudio::getMicrophoneTestResult() const
|
||||
{
|
||||
CLogMessage(this).warning("This method is deprecated and will be removed soon");
|
||||
return QString();
|
||||
}
|
||||
|
||||
/*
|
||||
* Squelch value
|
||||
*/
|
||||
double CContextAudio::getSquelchValue() const
|
||||
{
|
||||
CLogMessage(this).warning("This method is deprecated and will be removed soon");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Audio loopback
|
||||
*/
|
||||
|
||||
@@ -99,18 +99,6 @@ namespace BlackCore
|
||||
//! \copydoc IContextAudio::playNotification()
|
||||
virtual void playNotification(uint notification, bool considerSettings) const override;
|
||||
|
||||
//! \copydoc IContextAudio::runMicrophoneTest()
|
||||
virtual void runMicrophoneTest() override;
|
||||
|
||||
//! \copydoc IContextAudio::runSquelchTest()
|
||||
virtual void runSquelchTest() override;
|
||||
|
||||
//! \copydoc IContextAudio::getMicrophoneTestResult()
|
||||
virtual QString getMicrophoneTestResult() const override;
|
||||
|
||||
//! \copydoc IContextAudio::getSquelchValue()
|
||||
virtual double getSquelchValue() const override;
|
||||
|
||||
//! \copydoc IContextAudio::enableAudioLoopback()
|
||||
virtual void enableAudioLoopback(bool enable = true) override;
|
||||
|
||||
|
||||
@@ -33,9 +33,6 @@ namespace BlackCore
|
||||
void CContextAudioProxy::relaySignals(const QString &serviceName, QDBusConnection &connection)
|
||||
{
|
||||
bool s = connection.connect(serviceName, IContextAudio::ObjectPath(), IContextAudio::InterfaceName(),
|
||||
"audioTestCompleted", this, SIGNAL(audioTestCompleted()));
|
||||
Q_ASSERT(s);
|
||||
s = connection.connect(serviceName, IContextAudio::ObjectPath(), IContextAudio::InterfaceName(),
|
||||
"changedVoiceRooms", this, SIGNAL(changedVoiceRooms(BlackMisc::Audio::CVoiceRoomList, bool)));
|
||||
Q_ASSERT(s);
|
||||
s = connection.connect(serviceName, IContextAudio::ObjectPath(), IContextAudio::InterfaceName(),
|
||||
@@ -149,38 +146,6 @@ namespace BlackCore
|
||||
this->m_dBusInterface->callDBus(QLatin1Literal("playNotification"), notification, considerSettings);
|
||||
}
|
||||
|
||||
/*
|
||||
* MIC test
|
||||
*/
|
||||
void CContextAudioProxy::runMicrophoneTest()
|
||||
{
|
||||
this->m_dBusInterface->callDBus(QLatin1Literal("runMicrophoneTest"));
|
||||
}
|
||||
|
||||
/*
|
||||
* Mic test
|
||||
*/
|
||||
void CContextAudioProxy::runSquelchTest()
|
||||
{
|
||||
this->m_dBusInterface->callDBus(QLatin1Literal("runSquelchTest"));
|
||||
}
|
||||
|
||||
/*
|
||||
* Test result
|
||||
*/
|
||||
QString CContextAudioProxy::getMicrophoneTestResult() const
|
||||
{
|
||||
return this->m_dBusInterface->callDBusRet<QString>(QLatin1Literal("getMicrophoneTestResult"));
|
||||
}
|
||||
|
||||
/*
|
||||
* Squelch value
|
||||
*/
|
||||
double CContextAudioProxy::getSquelchValue() const
|
||||
{
|
||||
return this->m_dBusInterface->callDBusRet<double>(QLatin1Literal("getSquelchValue"));
|
||||
}
|
||||
|
||||
/*
|
||||
* Volumes, by COM systems
|
||||
*/
|
||||
|
||||
@@ -102,18 +102,6 @@ namespace BlackCore
|
||||
//! \copydoc IContextAudio::playNotification
|
||||
virtual void playNotification(uint notification, bool considerSettings) const override;
|
||||
|
||||
//! \copydoc IContextAudio::runMicrophoneTest()
|
||||
virtual void runMicrophoneTest() override;
|
||||
|
||||
//! \copydoc IContextAudio::runSquelchTest()
|
||||
virtual void runSquelchTest() override;
|
||||
|
||||
//! \copydoc IContextAudio::getMicrophoneTestResult()
|
||||
virtual QString getMicrophoneTestResult() const override;
|
||||
|
||||
//! \copydoc IContextAudio::getSquelchValue()
|
||||
virtual double getSquelchValue() const override;
|
||||
|
||||
//! \copydoc IContextAudio::enableAudioLoopback()
|
||||
virtual void enableAudioLoopback(bool enable = true) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user