-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagemanager.h
40 lines (32 loc) · 903 Bytes
/
imagemanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef IMAGEMANAGER_H
#define IMAGEMANAGER_H
#include <QtWidgets/QMainWindow>
#include <./QtFlickr/qtflickr.h>
#include <QNetworkReply>
#include <photodetail.h>
class ImageManager : public QWidget
{
Q_OBJECT
public:
ImageManager(QWidget * parent = 0);
~ImageManager();
private slots:
void GetPhotos();
void requestFinished ( int reqId, QtfResponse data, QtfError err, void* userData );
void onRequestCompleted();
private:
void GetPhotos(QString page);
void CheckDownloadQueue();
QImage RotateImage(const QImage &src, unsigned short orientation);
QtFlickr *qtFlickr;
QHash<QString, PhotoDetail> photos;
QString key;
QString secret;
QString token;
QString userId;
QQueue<PhotoDetail> photosToDownload;
QNetworkAccessManager *networkAccessManager;
QString photoPath;
QTimer *checkUpdateTimer;
};
#endif // IMAGEMANAGER_H