mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Reload hotkey settings when they have changed
This also includes changing the registration refs #83
This commit is contained in:
@@ -7,9 +7,11 @@
|
||||
#define BLACKCORE_CONTEXTAUDIO_IMPL_H
|
||||
|
||||
#include "context_audio.h"
|
||||
#include "context_settings.h"
|
||||
#include "coreruntime.h"
|
||||
#include "dbus_server.h"
|
||||
#include "voice_vatlib.h"
|
||||
#include "blackcore/keyboard.h"
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
@@ -52,6 +54,9 @@ namespace BlackCore
|
||||
//! \copydoc IContextAudio::usingLocalObjects()
|
||||
virtual bool usingLocalObjects() const override { return true; }
|
||||
|
||||
//! \brief Initialize voice context
|
||||
void init();
|
||||
|
||||
public slots:
|
||||
//! \copydoc IContextAudio::setOwnAircraft()
|
||||
virtual void setOwnAircraft(const BlackMisc::Aviation::CAircraft &ownAircraft) override;
|
||||
@@ -119,6 +124,9 @@ namespace BlackCore
|
||||
//! \copydoc IContextAudio::getSquelchValue()
|
||||
virtual double getSquelchValue() const override;
|
||||
|
||||
private slots:
|
||||
void settingsChanged(IContextSettings::SettingsType type);
|
||||
|
||||
private:
|
||||
CVoiceVatlib *m_voice; //!< underlying voice lib
|
||||
IKeyboard *m_keyboard;
|
||||
|
||||
Reference in New Issue
Block a user