Add Verbose Logging Setting

This commit is contained in:
Florian Märkl 2019-08-16 18:59:20 +02:00
commit 862c11bc8f
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
10 changed files with 93 additions and 23 deletions

View file

@ -39,9 +39,13 @@ class Settings : public QObject
public:
explicit Settings(QObject *parent = nullptr);
bool GetDiscoveryEnabled() { return settings.value("settings/auto_discovery", true).toBool(); }
bool GetDiscoveryEnabled() const { return settings.value("settings/auto_discovery", true).toBool(); }
void SetDiscoveryEnabled(bool enabled) { settings.setValue("settings/auto_discovery", enabled); }
bool GetLogVerbose() const { return settings.value("settings/log_verbose", false).toBool(); }
void SetLogVerbose(bool enabled) { settings.setValue("settings/log_verbose", enabled); }
uint32_t GetLogLevelMask();
ChiakiVideoResolutionPreset GetResolution() const;
void SetResolution(ChiakiVideoResolutionPreset resolution);