|
@@ -42,6 +42,9 @@ public:
|
|
|
|
|
|
Q_INVOKABLE void runUserScript(QString script);
|
|
|
|
|
|
+ // called by the web-client when everything is properly inited
|
|
|
+ Q_INVOKABLE void hello(const QString& version);
|
|
|
+
|
|
|
// possible os types type enum
|
|
|
enum PlatformType
|
|
|
{
|
|
@@ -67,7 +70,8 @@ public:
|
|
|
QString getPlatformTypeString() const;
|
|
|
QString getPlatformArchString() const;
|
|
|
|
|
|
- inline bool isOpenELEC() { return m_platformType == platformTypeOpenELEC; }
|
|
|
+ inline bool isOpenELEC() const { return m_platformType == platformTypeOpenELEC; }
|
|
|
+ bool isWebClientConnected() const { return !m_webClientVersion.isEmpty(); }
|
|
|
|
|
|
inline QString authenticationToken() { return m_authenticationToken; }
|
|
|
|
|
@@ -85,10 +89,9 @@ private:
|
|
|
QTimer* m_mouseOutTimer;
|
|
|
PlatformType m_platformType;
|
|
|
PlatformArch m_platformArch;
|
|
|
- QString m_overridePlatform;
|
|
|
bool m_doLogMessages;
|
|
|
QString m_authenticationToken;
|
|
|
-
|
|
|
+ QString m_webClientVersion;
|
|
|
};
|
|
|
|
|
|
#endif
|