Advertisement
Guest User

Untitled

a guest
Sep 1st, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #ifndef IMAGEDOWNLOADER_H
  2. #define IMAGEDOWNLOADER_H
  3.  
  4. #include <QObject>
  5. #include <QImage>
  6. #include <QtNetwork>
  7. #include <QMap>
  8. #include <QDebug>
  9.  
  10. class ImageDownloader : public QObject {
  11. Q_OBJECT
  12.  
  13. public:
  14. ImageDownloader(QMap<QString, QImage> &cache);
  15. void downloadImage(const QString &url);
  16.  
  17. public slots:
  18. void downloadImage_finished(QNetworkReply *reply);
  19.  
  20. private:
  21. QMap<QString, QImage> *m_cache;
  22. QImage img;
  23.  
  24. signals:
  25. void downloadImage_success();
  26.  
  27. };
  28.  
  29. #endif // IMAGEDOWNLOADER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement