Start work on launching a stream from QML and rip out remaining QtWidgets

This commit is contained in:
Cameron Gutman 2018-07-07 16:30:26 -07:00
commit 60ad95bb7b
11 changed files with 83 additions and 55 deletions

View file

@ -5,20 +5,29 @@
#include "backend/computermanager.h"
#include "input.hpp"
#include <QMessageBox>
class Session
class Session : public QObject
{
Q_OBJECT
public:
explicit Session(NvComputer* computer, NvApp& app);
QString checkForFatalValidationError();
Q_INVOKABLE void exec();
QStringList checkForAdvisoryValidationError();
signals:
void stageStarting(QString stage);
void exec();
void stageFailed(QString stage, long errorCode);
void connectionStarted();
void displayLaunchError(QString text);
void displayLaunchWarning(QString text);
private:
bool validateLaunch();
static
void clStageStarting(int stage);
@ -54,7 +63,6 @@ private:
STREAM_CONFIGURATION m_StreamConfig;
NvComputer* m_Computer;
NvApp m_App;
QMessageBox m_ProgressBox;
static SDL_AudioDeviceID s_AudioDevice;
static OpusMSDecoder* s_OpusDecoder;