#define IMAGEFETCHER_H
#include <QtCore>
-#include <QNetworkAccessManager>
+class QNetworkAccessManager;
class QNetworkReply;
class QUrl;
* is received from the server and loaded to pixmap.
*
* @param url URL to image
- * @param image image QImage
+ * @param image image QPixmap
*/
- //void imageReceived(const QUrl &url, const QPixmap &image);
- void imageReceived(const QUrl &url, const QImage &image);
+ void imageReceived(const QUrl &url, const QPixmap &image);
/**
* @brief Signal which is emitted when there is error
* DATA MEMBERS
******************************************************************************/
private:
- static const int MAX_PARALLEL_DOWNLOADS = 2; ///< Max simultaneous parallel downloads
- static const int DOWNLOAD_QUEUE_SIZE = 50; ///< Max downloads waiting in queue
QList<QNetworkReply*> m_currentDownloads; ///< List of current downloads
QQueue<QUrl> m_downloadQueue; ///< Queue of pending requests
QNetworkAccessManager *m_manager; ///< Network access manager
-
};
#endif // IMAGEFETCHER_H