Changeset View
Changeset View
Standalone View
Standalone View
src/drive/permissionfetchjob.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 106 | { | |||
---|---|---|---|---|---|
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"), d->supportsAllDrives ? QStringLiteral("true") : QStringLiteral("false")); | ||
116 | url.setQuery(withDriveSupportQuery); | 116 | url.setQuery(withDriveSupportQuery); | ||
117 | 117 | | |||
118 | QNetworkRequest request; | 118 | QNetworkRequest request(url); | ||
119 | request.setUrl(url); | | |||
120 | request.setRawHeader("Authorization", "Bearer " + account()->accessToken().toLatin1()); | | |||
121 | | ||||
122 | enqueueRequest(request); | 119 | enqueueRequest(request); | ||
123 | } | 120 | } | ||
124 | 121 | | |||
125 | ObjectsList PermissionFetchJob::handleReplyWithItems(const QNetworkReply *reply, | 122 | ObjectsList PermissionFetchJob::handleReplyWithItems(const QNetworkReply *reply, | ||
126 | const QByteArray &rawData) | 123 | const QByteArray &rawData) | ||
127 | { | 124 | { | ||
128 | ObjectsList items; | 125 | ObjectsList items; | ||
129 | 126 | | |||
Show All 18 Lines |