diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-09-01 14:00:17 +0200 |
---|---|---|
committer | Niels Weber <niels.weber@theqtcompany.com> | 2015-09-07 10:41:45 +0000 |
commit | cab3405ad2b0d269924a93263298304bff8807eb (patch) | |
tree | 2cc70eac08d78376998e8406ed41211b42598449 /src/libs/installer/metadatajob.cpp | |
parent | 823efa49cc61e91d7deb7b14d0bc05991c142474 (diff) |
Missed to rename classes and to update docs and tests.
Change-Id: I2d79ab4094cb9706287d44160543c19b35a66c95
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/metadatajob.cpp')
-rw-r--r-- | src/libs/installer/metadatajob.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/installer/metadatajob.cpp b/src/libs/installer/metadatajob.cpp index bce43fa27..26ec0b02e 100644 --- a/src/libs/installer/metadatajob.cpp +++ b/src/libs/installer/metadatajob.cpp @@ -46,7 +46,7 @@ namespace QInstaller { MetadataJob::MetadataJob(QObject *parent) - : KDJob(parent) + : Job(parent) , m_core(0) { setCapabilities(Cancelable); @@ -72,7 +72,7 @@ void MetadataJob::doStart() { reset(); if (!m_core) { - emitFinishedWithError(KDJob::Canceled, tr("Missing package manager core engine.")); + emitFinishedWithError(Job::Canceled, tr("Missing package manager core engine.")); return; // We can't do anything here without core, so avoid tons of !m_core checks. } @@ -109,7 +109,7 @@ void MetadataJob::doStart() void MetadataJob::doCancel() { reset(); - emitFinishedWithError(KDJob::Canceled, tr("Meta data download canceled.")); + emitFinishedWithError(Job::Canceled, tr("Meta data download canceled.")); } void MetadataJob::xmlTaskFinished() @@ -179,7 +179,7 @@ void MetadataJob::xmlTaskFinished() emitFinishedWithError(QInstaller::DownloadError, tr("Unknown exception during download.")); } - if (error() != KDJob::NoError) + if (error() != Job::NoError) return; if (status == XmlDownloadSuccess) { @@ -212,7 +212,7 @@ void MetadataJob::unzipTaskFinished() emitFinishedWithError(QInstaller::DownloadError, tr("Unknown exception during extracting.")); } - if (error() != KDJob::NoError) + if (error() != Job::NoError) return; delete m_unzipTasks.value(watcher); @@ -270,7 +270,7 @@ void MetadataJob::reset() m_packages.clear(); m_metadata.clear(); - setError(KDJob::NoError); + setError(Job::NoError); setErrorString(QString()); setCapabilities(Cancelable); @@ -291,7 +291,7 @@ void MetadataJob::reset() MetadataJob::Status MetadataJob::parseUpdatesXml(const QList<FileTaskResult> &results) { foreach (const FileTaskResult &result, results) { - if (error() != KDJob::NoError) + if (error() != Job::NoError) return XmlDownloadFailure; Metadata metadata; |