mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
* Add quit cli command and app quit option after stream session. Fixes #92 * Code review fixes.
This commit is contained in:
committed by
Cameron Gutman
parent
ad47990a87
commit
0ab07303c9
@@ -275,6 +275,16 @@ int Session::getDecoderCapabilities(StreamingPreferences::VideoDecoderSelection
|
||||
return caps;
|
||||
}
|
||||
|
||||
NvComputer *Session::getComputer() const
|
||||
{
|
||||
return m_Computer;
|
||||
}
|
||||
|
||||
bool Session::shouldQuitAppAfter() const
|
||||
{
|
||||
return m_Preferences->quitAppAfter;
|
||||
}
|
||||
|
||||
Session::Session(NvComputer* computer, NvApp& app, StreamingPreferences *preferences)
|
||||
: m_Preferences(preferences ? preferences : new StreamingPreferences(this)),
|
||||
m_Computer(computer),
|
||||
|
||||
@@ -30,6 +30,10 @@ public:
|
||||
int getDecoderCapabilities(StreamingPreferences::VideoDecoderSelection vds,
|
||||
int videoFormat, int width, int height, int frameRate);
|
||||
|
||||
NvComputer* getComputer() const;
|
||||
|
||||
Q_INVOKABLE bool shouldQuitAppAfter() const;
|
||||
|
||||
signals:
|
||||
void stageStarting(QString stage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user