Showing the changes to interface/src/scripting/LocationScriptingInterface.h (1 of 4 files). Show all
Unified · Split
| @@ -12,41 +12,17 @@ · 11 unmodified lines | ||
| 12 | 12 | #ifndef hifi_LocationScriptingInterface_h |
| 13 | 13 | #define hifi_LocationScriptingInterface_h |
| 14 | 14 | |
| 15 | −#include <QObject> | |
| 16 | −#include <QScriptContext> | |
| 17 | −#include <QScriptEngine> | |
| 18 | −#include <QScriptValue> | |
| 19 | −#include <QString> | |
| 20 | − | |
| 21 | −#include <AddressManager.h> | |
| 22 | − | |
| 23 | −#include "Application.h" | |
| 15 | +#include <qscriptengine.h> | |
| 24 | 16 | |
| 25 | 17 | class LocationScriptingInterface : public QObject { |
| 26 | 18 | Q_OBJECT |
| 27 | − Q_PROPERTY(bool isConnected READ isConnected) | |
| 28 | − Q_PROPERTY(QString href READ getHref) | |
| 29 | − Q_PROPERTY(QString protocol READ getProtocol) | |
| 30 | − Q_PROPERTY(QString hostname READ getHostname) | |
| 31 | − Q_PROPERTY(QString pathname READ getPathname) | |
| 32 | − Q_PROPERTY(QString domainID READ getDomainID) | |
| 33 | − LocationScriptingInterface() { }; | |
| 34 | 19 | public: |
| 35 | 20 | static LocationScriptingInterface* getInstance(); |
| 36 | 21 | |
| 37 | − bool isConnected(); | |
| 38 | − QString getHref(); | |
| 39 | − QString getProtocol() { return HIFI_URL_SCHEME; }; | |
| 40 | − QString getPathname(); | |
| 41 | − QString getHostname(); | |
| 42 | − QString getDomainID() const; | |
| 43 | − | |
| 44 | 22 | static QScriptValue locationGetter(QScriptContext* context, QScriptEngine* engine); |
| 45 | 23 | static QScriptValue locationSetter(QScriptContext* context, QScriptEngine* engine); |
| 46 | − | |
| 47 | −public slots: | |
| 48 | − void assign(const QString& url); | |
| 49 | − | |
| 24 | +private: | |
| 25 | + LocationScriptingInterface() {}; | |
| 50 | 26 | }; |
| 51 | 27 | |
| 52 | 28 | #endif // hifi_LocationScriptingInterface_h |