The Error class is the base class that represents an error in the download manager API. More...
#include <error.h>
Public Types | |
enum | Type { Auth , DBus , Http , Network , Process , Hash } |
Public Member Functions | |
virtual | ~Error () |
Type | type () |
virtual QString | errorString () |
Protected Member Functions | |
Error (Type type, QObject *parent=0) | |
The Error class is the base class that represents an error in the download manager API.
The Error class represents an error in the download manager and can be of a number of types. The API is designed so that the client only needs to listen to a single error signal and that can later downcast the error class to get more detailed information.
Enumerator that represents the error type.
Returns the type of the error that was encountered.
|
virtual |
|
protected |
|
virtual |
Returns a string representation of the error.
Reimplemented in Lomiri::DownloadManager::AuthError, Lomiri::DownloadManager::HashError, Lomiri::DownloadManager::HttpError, Lomiri::DownloadManager::NetworkError, and Lomiri::DownloadManager::ProcessError.
Error::Type Lomiri::DownloadManager::Error::type | ( | ) |