diff options
Diffstat (limited to 'homescreen/src/chromecontroller.h')
-rw-r--r-- | homescreen/src/chromecontroller.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/homescreen/src/chromecontroller.h b/homescreen/src/chromecontroller.h deleted file mode 100644 index 047ddd9..0000000 --- a/homescreen/src/chromecontroller.h +++ /dev/null @@ -1,46 +0,0 @@ -#pragma once - -#include <QObject> -#include <QUrl> - -class AglSocketWrapper; -class ChromeController : public QObject -{ - Q_OBJECT - - Q_PROPERTY(bool agentPresent READ agentPresent NOTIFY agentPresentChanged) - Q_PROPERTY(QString agentName READ agentName NOTIFY agentNameChanged) - Q_PROPERTY(int chromeState READ chromeState NOTIFY chromeStateChanged) - -public: - enum ChromeState { - Idle = 0, - Listening, - Thinking, - Speaking, - MicrophoneOff - }; - Q_ENUM(ChromeState) - - explicit ChromeController(const QUrl &bindingUrl, QObject *parent = nullptr); - bool agentPresent() const { return m_agentPresent; } - int chromeState() const { return m_chromeState; } - QString agentName() const { return m_voiceAgentName; } - -public slots: - void pushToTalk(); - -signals: - void agentPresentChanged(); - void agentNameChanged(); - void chromeStateChanged(); - -private: - void setChromeState(ChromeState state); - - AglSocketWrapper *m_aglSocket; - QString m_voiceAgentId = ""; - QString m_voiceAgentName = ""; - bool m_agentPresent = false; - ChromeState m_chromeState = Idle; -}; |