itom 1.2.0
FileDownloader Class Reference

List of all members.

Public Types

enum  Status { sRunning, sAborted, sFinished, sError }

Public Member Functions

 FileDownloader (QUrl imageUrl, int nrOfAllowedRedirects=0, QObject *parent=0)
QByteArray downloadedData () const
void abortDownload ()
int getDownloadProgress ()
Status getStatus (QString &errorMsg)

Private Slots

void fileDownloaded (QNetworkReply *pReply)
void downloadProgress (qint64 bytesReceived, qint64 bytesTotal)

Private Member Functions

int checkRedirect (QString &errorMsg)

Private Attributes

QNetworkAccessManager m_WebCtrl
QByteArray m_DownloadedData
QNetworkReply * m_pCurrentNetworkReply
qint64 m_bytesReceived
qint64 m_bytesTotal
int m_nrOfAllowedRedirects

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends