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
|
@ -48,6 +48,7 @@ class ChiakiException: public Exception
|
|||
|
||||
struct StreamSessionConnectInfo
|
||||
{
|
||||
Settings *settings;
|
||||
QMap<Qt::Key, int> key_map;
|
||||
HardwareDecodeEngine hw_decode_engine;
|
||||
uint32_t log_level_mask;
|
||||
|
@ -71,6 +72,7 @@ class StreamSession : public QObject
|
|||
SessionLog log;
|
||||
ChiakiSession session;
|
||||
ChiakiOpusDecoder opus_decoder;
|
||||
bool connected;
|
||||
|
||||
Controller *controller;
|
||||
#if CHIAKI_GUI_ENABLE_SETSU
|
||||
|
@ -103,8 +105,11 @@ class StreamSession : public QObject
|
|||
explicit StreamSession(const StreamSessionConnectInfo &connect_info, QObject *parent = nullptr);
|
||||
~StreamSession();
|
||||
|
||||
bool IsConnected() { return connected; }
|
||||
|
||||
void Start();
|
||||
void Stop();
|
||||
void GoToBed();
|
||||
|
||||
void SetLoginPIN(const QString &pin);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue