summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/downloadfiletask.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/downloadfiletask.h')
-rw-r--r--src/libs/installer/downloadfiletask.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libs/installer/downloadfiletask.h b/src/libs/installer/downloadfiletask.h
index 3ad972763..6b3ddf24e 100644
--- a/src/libs/installer/downloadfiletask.h
+++ b/src/libs/installer/downloadfiletask.h
@@ -50,6 +50,22 @@ enum
};
}
+class ProxyAuthenticationRequiredException : public FileTaskException
+{
+public:
+ ProxyAuthenticationRequiredException(const QNetworkProxy &proxy);
+ ~ProxyAuthenticationRequiredException() throw() {}
+
+ QNetworkProxy proxy() const { return m_proxy; }
+
+ void raise() const { throw *this; }
+ ProxyAuthenticationRequiredException *clone() const {
+ return new ProxyAuthenticationRequiredException(*this); }
+
+private:
+ QNetworkProxy m_proxy;
+};
+
class INSTALLER_EXPORT DownloadFileTask : public AbstractFileTask
{
Q_OBJECT