Add Resolution and FPS Settings

This commit is contained in:
Florian Märkl 2019-08-16 16:48:28 +02:00
commit 686ef011f8
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
5 changed files with 115 additions and 0 deletions

View file

@ -20,6 +20,8 @@
#include "host.h"
#include <chiaki/session.h>
#include <QSettings>
class Settings : public QObject
@ -40,6 +42,12 @@ class Settings : public QObject
bool GetDiscoveryEnabled() { return settings.value("settings/auto_discovery", true).toBool(); }
void SetDiscoveryEnabled(bool enabled) { settings.setValue("settings/auto_discovery", enabled); }
ChiakiVideoResolutionPreset GetResolution() const;
void SetResolution(ChiakiVideoResolutionPreset resolution);
ChiakiVideoFPSPreset GetFPS() const;
void SetFPS(ChiakiVideoFPSPreset fps);
QList<RegisteredHost> GetRegisteredHosts() const { return registered_hosts.values(); }
void AddRegisteredHost(const RegisteredHost &host);
void RemoveRegisteredHost(const HostMAC &mac);