Added engine to master
[situare] / src / situareservice / imagefetcher.h
index 1404a65..08087ab 100644 (file)
@@ -23,8 +23,8 @@
 #define IMAGEFETCHER_H
 
 #include <QtCore>
-#include <QNetworkAccessManager>
 
+class QNetworkAccessManager;
 class QNetworkReply;
 class QUrl;
 
@@ -85,10 +85,9 @@ signals:
     * 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
@@ -102,13 +101,10 @@ signals:
  * 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