mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 15:20:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			991 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			991 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <memory>
 | |
| #include <string>
 | |
| 
 | |
| #include <boost/json.hpp>
 | |
| 
 | |
| namespace scwx
 | |
| {
 | |
| namespace qt
 | |
| {
 | |
| namespace settings
 | |
| {
 | |
| 
 | |
| class GeneralSettingsImpl;
 | |
| 
 | |
| class GeneralSettings
 | |
| {
 | |
| public:
 | |
|    explicit GeneralSettings();
 | |
|    ~GeneralSettings();
 | |
| 
 | |
|    GeneralSettings(const GeneralSettings&) = delete;
 | |
|    GeneralSettings& operator=(const GeneralSettings&) = delete;
 | |
| 
 | |
|    GeneralSettings(GeneralSettings&&) noexcept;
 | |
|    GeneralSettings& operator=(GeneralSettings&&) noexcept;
 | |
| 
 | |
|    const std::string& default_radar_site() const;
 | |
| 
 | |
|    boost::json::value ToJson() const;
 | |
| 
 | |
|    static std::shared_ptr<GeneralSettings> Create();
 | |
|    static std::shared_ptr<GeneralSettings> Load(const boost::json::value* json,
 | |
|                                                 bool& jsonDirty);
 | |
| 
 | |
|    friend bool operator==(const GeneralSettings& lhs,
 | |
|                           const GeneralSettings& rhs);
 | |
| 
 | |
| private:
 | |
|    std::unique_ptr<GeneralSettingsImpl> p;
 | |
| };
 | |
| 
 | |
| } // namespace settings
 | |
| } // namespace qt
 | |
| } // namespace scwx
 | 
