mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-04 01:00:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <scwx/qt/settings/settings_category.hpp>
 | 
						|
#include <scwx/qt/settings/settings_variable.hpp>
 | 
						|
#include <scwx/awips/phenomenon.hpp>
 | 
						|
 | 
						|
#include <memory>
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace scwx
 | 
						|
{
 | 
						|
namespace qt
 | 
						|
{
 | 
						|
namespace settings
 | 
						|
{
 | 
						|
 | 
						|
class AudioSettings : public SettingsCategory
 | 
						|
{
 | 
						|
public:
 | 
						|
   explicit AudioSettings();
 | 
						|
   ~AudioSettings();
 | 
						|
 | 
						|
   AudioSettings(const AudioSettings&)            = delete;
 | 
						|
   AudioSettings& operator=(const AudioSettings&) = delete;
 | 
						|
 | 
						|
   AudioSettings(AudioSettings&&) noexcept;
 | 
						|
   AudioSettings& operator=(AudioSettings&&) noexcept;
 | 
						|
 | 
						|
   SettingsVariable<std::string>& alert_sound_file() const;
 | 
						|
   SettingsVariable<std::string>& alert_location_method() const;
 | 
						|
   SettingsVariable<double>&      alert_latitude() const;
 | 
						|
   SettingsVariable<double>&      alert_longitude() const;
 | 
						|
   SettingsVariable<std::string>& alert_county() const;
 | 
						|
   SettingsVariable<bool>& alert_enabled(awips::Phenomenon phenomenon) const;
 | 
						|
   SettingsVariable<bool>& ignore_missing_codecs() const;
 | 
						|
 | 
						|
   static AudioSettings& Instance();
 | 
						|
 | 
						|
   friend bool operator==(const AudioSettings& lhs, const AudioSettings& rhs);
 | 
						|
 | 
						|
private:
 | 
						|
   class Impl;
 | 
						|
   std::unique_ptr<Impl> p;
 | 
						|
};
 | 
						|
 | 
						|
} // namespace settings
 | 
						|
} // namespace qt
 | 
						|
} // namespace scwx
 |