mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:00:05 +00:00
Handle received alerts and test against location for playing alert audio
This commit is contained in:
parent
dd79f9208d
commit
40fc8ade20
2 changed files with 108 additions and 3 deletions
|
|
@ -17,8 +17,7 @@ namespace settings
|
|||
static const std::string logPrefix_ = "scwx::qt::settings::audio_settings";
|
||||
|
||||
static const bool kDefaultAlertEnabled_ {false};
|
||||
static const awips::Phenomenon kDefaultPhenomenon_ {
|
||||
awips::Phenomenon::FlashFlood};
|
||||
static const awips::Phenomenon kDefaultPhenomenon_ {awips::Phenomenon::Unknown};
|
||||
|
||||
class AudioSettings::Impl
|
||||
{
|
||||
|
|
@ -58,6 +57,10 @@ public:
|
|||
|
||||
variables_.push_back(&variable);
|
||||
}
|
||||
|
||||
// Create a default disabled alert, not stored in the settings file
|
||||
alertEnabled_.emplace(kDefaultPhenomenon_,
|
||||
SettingsVariable<bool> {"alert_disabled"});
|
||||
}
|
||||
|
||||
~Impl() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue