mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-19 21:13:12 -07:00
Add Sleep Trigger to GUI
This commit is contained in:
parent
6052d9d7d7
commit
8ddbad6f61
8 changed files with 108 additions and 6 deletions
|
@ -38,6 +38,13 @@ enum class ControllerButtonExt
|
|||
ANALOG_STICK_RIGHT_Y_DOWN = (1 << 25),
|
||||
};
|
||||
|
||||
enum class DisconnectAction
|
||||
{
|
||||
AlwaysNothing,
|
||||
AlwaysSleep,
|
||||
Ask
|
||||
};
|
||||
|
||||
class Settings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -95,6 +102,9 @@ class Settings : public QObject
|
|||
|
||||
ChiakiConnectVideoProfile GetVideoProfile();
|
||||
|
||||
DisconnectAction GetDisconnectAction();
|
||||
void SetDisconnectAction(DisconnectAction action);
|
||||
|
||||
QList<RegisteredHost> GetRegisteredHosts() const { return registered_hosts.values(); }
|
||||
void AddRegisteredHost(const RegisteredHost &host);
|
||||
void RemoveRegisteredHost(const HostMAC &mac);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue