Handle received alerts and test against location for playing alert audio

This commit is contained in:
Dan Paulat 2023-12-02 07:44:27 -06:00
parent dd79f9208d
commit 40fc8ade20
2 changed files with 108 additions and 3 deletions

View file

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