Changeset View
Changeset View
Standalone View
Standalone View
dataengines/comic/comicprovider.cpp
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Line(s) | 258 | while (it.hasNext()) { | |||
---|---|---|---|---|---|
259 | it.next(); | 259 | it.next(); | ||
260 | job->addMetaData(it.key(), it.value()); | 260 | job->addMetaData(it.key(), it.value()); | ||
261 | } | 261 | } | ||
262 | } | 262 | } | ||
263 | } | 263 | } | ||
264 | 264 | | |||
265 | void ComicProvider::requestRedirectedUrl(const QUrl &url, int id, const MetaInfos &infos) | 265 | void ComicProvider::requestRedirectedUrl(const QUrl &url, int id, const MetaInfos &infos) | ||
266 | { | 266 | { | ||
267 | //each request restarts the timer | ||||
268 | d->mTimer->start(); | ||||
269 | | ||||
267 | KIO::MimetypeJob *job = KIO::mimetype(url, KIO::HideProgressInfo); | 270 | KIO::MimetypeJob *job = KIO::mimetype(url, KIO::HideProgressInfo); | ||
268 | job->setProperty("uid", id); | 271 | job->setProperty("uid", id); | ||
269 | d->mRedirections[job] = url; | 272 | d->mRedirections[job] = url; | ||
270 | connect(job, SIGNAL(redirection(KIO::Job*,QUrl)), this, SLOT(slotRedirection(KIO::Job*,QUrl))); | 273 | connect(job, SIGNAL(redirection(KIO::Job*,QUrl)), this, SLOT(slotRedirection(KIO::Job*,QUrl))); | ||
271 | connect(job, SIGNAL(permanentRedirection(KIO::Job*,QUrl,QUrl)), this, SLOT(slotRedirection(KIO::Job*,QUrl,QUrl))); | 274 | connect(job, SIGNAL(permanentRedirection(KIO::Job*,QUrl,QUrl)), this, SLOT(slotRedirection(KIO::Job*,QUrl,QUrl))); | ||
272 | connect(job, SIGNAL(result(KJob*)), this, SLOT(slotRedirectionDone(KJob*))); | 275 | connect(job, SIGNAL(result(KJob*)), this, SLOT(slotRedirectionDone(KJob*))); | ||
273 | 276 | | |||
274 | if (!infos.isEmpty()) { | 277 | if (!infos.isEmpty()) { | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |