Reload hotkey settings when they have changed

This also includes changing the registration

refs #83
This commit is contained in:
Roland Winklmeier
2014-03-05 17:31:08 +01:00
parent abb20a5154
commit 811bbdfe4e
5 changed files with 44 additions and 5 deletions

View File

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