mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
Add ChiakiException
This commit is contained in:
parent
01111d62e4
commit
1a5654bd49
4 changed files with 40 additions and 12 deletions
|
@ -33,6 +33,16 @@ class QAudioOutput;
|
|||
class QIODevice;
|
||||
class QKeyEvent;
|
||||
|
||||
class ChiakiException : public std::exception
|
||||
{
|
||||
private:
|
||||
QString msg;
|
||||
|
||||
public:
|
||||
explicit ChiakiException(const QString &msg) : msg(msg) {}
|
||||
const char *what() const noexcept override { return msg.toLocal8Bit().constData(); }
|
||||
};
|
||||
|
||||
class StreamSession : public QObject
|
||||
{
|
||||
friend class StreamSessionPrivate;
|
||||
|
@ -60,6 +70,8 @@ class StreamSession : public QObject
|
|||
explicit StreamSession(const QString &host, const QString ®istkey, const QString &ostype, const QString &auth, const QString &morning, const QString &did, QObject *parent = nullptr);
|
||||
~StreamSession();
|
||||
|
||||
void Stop();
|
||||
|
||||
#if CHIAKI_GUI_ENABLE_QT_GAMEPAD
|
||||
QGamepad *GetGamepad() { return gamepad; }
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue