19 #ifndef UBUNTU_DOWNLOADMANAGER_CLIENT_ERROR_H
20 #define UBUNTU_DOWNLOADMANAGER_CLIENT_ERROR_H
32 class AuthErrorStruct;
33 class HttpErrorStruct;
34 class NetworkErrorStruct;
35 class ProcessErrorStruct;
40 namespace DownloadManager {
57 Q_DECLARE_PRIVATE(
Error)
108 class DBusErrorPrivate;
120 friend class ManagerImpl;
121 friend class DownloadImpl;
122 friend class DownloadManagerPCW;
123 friend class DownloadsListManagerPCW;
124 friend class MetadataDownloadsListManagerPCW;
125 friend class DownloadPCW;
126 friend class GroupManagerPCW;
152 QString errorString()
override;
168 DBusErrorPrivate* d_ptr;
171 class AuthErrorPrivate;
188 friend class DownloadImpl;
239 AuthErrorPrivate* d_ptr;
242 class HttpErrorPrivate;
257 friend class DownloadImpl;
299 HttpErrorPrivate* d_ptr;
302 class NetworkErrorPrivate;
314 friend class DownloadImpl;
389 NetworkErrorPrivate* d_ptr;
392 class ProcessErrorPrivate;
404 friend class DownloadImpl;
418 QProcess::ProcessError
code();
468 ProcessErrorPrivate* d_ptr;
The Error class is the base class that represents an error in the download manager API...
QString errorString() override
QString errorString() override
QString errorString() override
QProcess::ProcessError code()
ProcessError(Transfers::Errors::ProcessErrorStruct err, QObject *parent)
NetworkError(Transfers::Errors::NetworkErrorStruct err, QObject *parent)
DBusError(QDBusError err, QObject *parent=0)
HttpError(Transfers::Errors::HttpErrorStruct err, QObject *parent)
AuthError(Transfers::Errors::AuthErrorStruct err, QObject *parent)
Error(Type type, QObject *parent=0)
The NetworkError represents an error that occurred during the download request.
virtual QString errorString()
The HttpError represents an error that occurred during the download request.
QString errorString() override
The ProcessError represents an error that occurred during the post processing of a downloaded file...
The AuthError represents an authentication error that occurred during the request of the download...