summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/abstractfiletask.h
diff options
context:
space:
mode:
authorkh <karsten.heimrich@theqtcompany.com>2014-11-24 13:03:17 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2014-11-24 17:44:58 +0100
commit68b3092d32a285850bd55ed4ac4f66a335c02ba0 (patch)
treecab771ecef1cfffc55bf40604c0f36585775247d /src/libs/installer/abstractfiletask.h
parentbdb0247bea51ed296ae31ea2efaff3380607a00e (diff)
Rename the exceptions class to be more generic.
Change-Id: Ia96477920055ee6a6f15be1334516746ddf3573b Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/abstractfiletask.h')
-rw-r--r--src/libs/installer/abstractfiletask.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/libs/installer/abstractfiletask.h b/src/libs/installer/abstractfiletask.h
index 927082a45..54a7af3ba 100644
--- a/src/libs/installer/abstractfiletask.h
+++ b/src/libs/installer/abstractfiletask.h
@@ -88,22 +88,6 @@ public:
FileTaskItem taskItem() const { return value(TaskRole::TaskItem).value<FileTaskItem>(); }
};
-class FileTaskException : public QException
-{
-public:
- FileTaskException() {}
- ~FileTaskException() throw() {}
- explicit FileTaskException(const QString &message)
- : m_message(message) {}
-
- void raise() const { throw *this; }
- QString message() const { return m_message; }
- FileTaskException *clone() const { return new FileTaskException(*this); }
-
-private:
- QString m_message;
-};
-
class INSTALLER_EXPORT AbstractFileTask : public AbstractTask<FileTaskResult>
{
Q_OBJECT
@@ -138,6 +122,6 @@ private:
Q_DECLARE_METATYPE(QInstaller::FileTaskItem)
Q_DECLARE_METATYPE(QInstaller::FileTaskResult)
-Q_DECLARE_METATYPE(QInstaller::FileTaskException)
+Q_DECLARE_METATYPE(QInstaller::TaskException)
#endif // ABSTRACTFILETASK_H