Changeset View
Changeset View
Standalone View
Standalone View
src/drive/filefetchcontentjob.cpp
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | |||||
81 | QByteArray FileFetchContentJob::data() const | 81 | QByteArray FileFetchContentJob::data() const | ||
82 | { | 82 | { | ||
83 | return d->fileData; | 83 | return d->fileData; | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | void FileFetchContentJob::start() | 86 | void FileFetchContentJob::start() | ||
87 | { | 87 | { | ||
88 | QNetworkRequest request(d->url); | 88 | QNetworkRequest request(d->url); | ||
89 | request.setRawHeader("Authorization", "Bearer " + account()->accessToken().toLatin1()); | | |||
90 | | ||||
91 | enqueueRequest(request); | 89 | enqueueRequest(request); | ||
92 | } | 90 | } | ||
93 | 91 | | |||
94 | void FileFetchContentJob::dispatchRequest(QNetworkAccessManager *accessManager, | 92 | void FileFetchContentJob::dispatchRequest(QNetworkAccessManager *accessManager, | ||
95 | const QNetworkRequest &request, | 93 | const QNetworkRequest &request, | ||
96 | const QByteArray &data, | 94 | const QByteArray &data, | ||
97 | const QString &contentType) | 95 | const QString &contentType) | ||
98 | { | 96 | { | ||
Show All 26 Lines |