Changeset View
Changeset View
Standalone View
Standalone View
src/calendar/calendardeletejob.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 77 | { | |||
---|---|---|---|---|---|
78 | if (d->calendarsIds.atEnd()) { | 78 | if (d->calendarsIds.atEnd()) { | ||
79 | emitFinished(); | 79 | emitFinished(); | ||
80 | return; | 80 | return; | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | const QString calendarId = d->calendarsIds.current(); | 83 | const QString calendarId = d->calendarsIds.current(); | ||
84 | const QUrl url = CalendarService::removeCalendarUrl(calendarId); | 84 | const QUrl url = CalendarService::removeCalendarUrl(calendarId); | ||
85 | QNetworkRequest request(url); | 85 | QNetworkRequest request(url); | ||
86 | request.setRawHeader("Authorization", "Bearer " + account()->accessToken().toLatin1()); | | |||
87 | request.setRawHeader("GData-Version", CalendarService::APIVersion().toLatin1()); | 86 | request.setRawHeader("GData-Version", CalendarService::APIVersion().toLatin1()); | ||
88 | 87 | | |||
89 | QStringList headers; | 88 | QStringList headers; | ||
90 | const auto rawHeaderList = request.rawHeaderList(); | 89 | const auto rawHeaderList = request.rawHeaderList(); | ||
91 | headers.reserve(rawHeaderList.size()); | 90 | headers.reserve(rawHeaderList.size()); | ||
92 | for (const QByteArray &str : qAsConst(rawHeaderList)) { | 91 | for (const QByteArray &str : qAsConst(rawHeaderList)) { | ||
93 | headers << QLatin1String(str) + QLatin1String(": ") + QLatin1String(request.rawHeader(str)); | 92 | headers << QLatin1String(str) + QLatin1String(": ") + QLatin1String(request.rawHeader(str)); | ||
94 | } | 93 | } | ||
Show All 13 Lines |