Changeset View
Changeset View
Standalone View
Standalone View
src/drive/permissionfetchjob.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 106 | { | |||
---|---|---|---|---|---|
107 | QUrl url; | 107 | QUrl url; | ||
108 | if (d->permissionId.isEmpty()) { | 108 | if (d->permissionId.isEmpty()) { | ||
109 | url = DriveService::fetchPermissionsUrl(d->fileId); | 109 | url = DriveService::fetchPermissionsUrl(d->fileId); | ||
110 | } else { | 110 | } else { | ||
111 | url = DriveService::fetchPermissionUrl(d->fileId, d->permissionId); | 111 | url = DriveService::fetchPermissionUrl(d->fileId, d->permissionId); | ||
112 | } | 112 | } | ||
113 | 113 | | |||
114 | QUrlQuery withDriveSupportQuery(url); | 114 | QUrlQuery withDriveSupportQuery(url); | ||
115 | withDriveSupportQuery.addQueryItem(QStringLiteral("supportsAllDrives"), d->supportsAllDrives ? QStringLiteral("true") : QStringLiteral("false")); | 115 | withDriveSupportQuery.addQueryItem(QStringLiteral("supportsAllDrives"), Utils::bool2Str(d->supportsAllDrives)); | ||
116 | url.setQuery(withDriveSupportQuery); | 116 | url.setQuery(withDriveSupportQuery); | ||
117 | 117 | | |||
118 | QNetworkRequest request(url); | 118 | QNetworkRequest request(url); | ||
119 | enqueueRequest(request); | 119 | enqueueRequest(request); | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | ObjectsList PermissionFetchJob::handleReplyWithItems(const QNetworkReply *reply, | 122 | ObjectsList PermissionFetchJob::handleReplyWithItems(const QNetworkReply *reply, | ||
123 | const QByteArray &rawData) | 123 | const QByteArray &rawData) | ||
Show All 21 Lines |