History

can fetch poly asset list synchronously

Elisa Lupin-Jimenez committed 8 years ago

Commit 4ed68961 parent d6e1a9d2 files · +189 −2Browse files

Showing the changes to interface/src/scripting/GooglePolyScriptingInterface.h (1 of 2 files). Show all

Unified · Split

interface/src/scripting/GooglePolyScriptingInterface.h+12−0
@@ -22,6 +22,18 @@ public: · 21 unmodified lines
2222
2323 public slots:
2424 void testPrint();
25+ void setAPIKey(QString key);
26+
27+ //QJsonArray GooglePolyScriptingInterface::getAssetList();
28+ void getAssetList();
29+
30+private:
31+ QByteArray getHTTPRequest(QUrl url);
32+ QJsonObject makeJSONObject(QByteArray* response, bool isList);
33+ //void onResult(QNetworkReply* reply);
34+
35+ QString authCode;
36+
2537
2638 };
2739