Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -93,18 +93,16 @@ void ScreenshareScriptingInterface::startScreenshare(const QUuid& screenshareZon · 92 unmodified lines | ||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | QString currentDomainID = uuidStringWithoutCurlyBraces(addressManager->getDomainID()); |
| 96 | − QString requestURLPath = "api/v1/domains"; | |
| 97 | − requestURLPath = requestURLPath.append(currentDomainID); | |
| 98 | − requestURLPath = requestURLPath.append("/screenshare"); | |
| 96 | + QString requestURLPath = "api/v1/domains/%1/screenshare"; | |
| 99 | 97 | |
| 100 | 98 | JSONCallbackParameters callbackParams; |
| 101 | 99 | callbackParams.callbackReceiver = this; |
| 102 | 100 | callbackParams.jsonCallbackMethod = "handleSuccessfulScreenshareInfoGet"; |
| 103 | 101 | callbackParams.errorCallbackMethod = "handleFailedScreenshareInfoGet"; |
| 104 | 102 | accountManager->sendRequest( |
| 105 | − requestURLPath, | |
| 103 | + requestURLPath.arg(currentDomainID), | |
| 106 | 104 | AccountManagerAuth::Required, |
| 107 | − QNetworkAccessManager::PutOperation, | |
| 105 | + QNetworkAccessManager::GetOperation, | |
| 108 | 106 | callbackParams |
| 109 | 107 | ); |
| 110 | 108 | } |
| @@ -200,7 +198,7 @@ void ScreenshareScriptingInterface::handleSuccessfulScreenshareInfoGet(QNetworkR · 89 unmodified lines | ||
| 200 | 198 | } |
| 201 | 199 | |
| 202 | 200 | void ScreenshareScriptingInterface::handleFailedScreenshareInfoGet(QNetworkReply* reply) { |
| 203 | − qDebug() << "\n\n MN HERE: handleFailedScreenshareInfoGet():" << reply->errorString(); | |
| 201 | + qDebug() << "\n\n MN HERE: handleFailedScreenshareInfoGet():" << reply->readAll(); | |
| 204 | 202 | } |
| 205 | 203 | |
| 206 | 204 | void ScreenshareScriptingInterface::onWebEventReceived(const QUuid& entityID, const QVariant& message) { |