equal
deleted
inserted
replaced
27 class QNetworkReply; |
27 class QNetworkReply; |
28 class QVBoxLayout; |
28 class QVBoxLayout; |
29 |
29 |
30 class PageDataDownload : public AbstractPage |
30 class PageDataDownload : public AbstractPage |
31 { |
31 { |
32 Q_OBJECT |
32 Q_OBJECT |
33 |
33 |
34 public: |
34 public: |
35 PageDataDownload(QWidget* parent = 0); |
35 PageDataDownload(QWidget* parent = 0); |
36 |
36 |
37 public slots: |
37 public slots: |
38 void fetchList(); |
38 void fetchList(); |
39 |
39 |
40 protected: |
40 protected: |
41 QLayout * bodyLayoutDefinition(); |
41 QLayout * bodyLayoutDefinition(); |
42 void connectSignals(); |
42 void connectSignals(); |
43 |
43 |
44 private: |
44 private: |
45 DataBrowser *web; |
45 DataBrowser *web; |
46 QHash<QNetworkReply*, QProgressBar *> progressBars; |
46 QHash<QNetworkReply*, QProgressBar *> progressBars; |
47 QVBoxLayout *progressBarsLayout; |
47 QVBoxLayout *progressBarsLayout; |
48 |
48 |
49 bool extractDataPack(QByteArray * buf); |
49 bool extractDataPack(QByteArray * buf); |
50 |
50 |
51 private slots: |
51 private slots: |
52 void request(const QUrl &url); |
52 void request(const QUrl &url); |
53 |
53 |
54 void pageDownloaded(); |
54 void pageDownloaded(); |
55 void fileDownloaded(); |
55 void fileDownloaded(); |
56 void downloadProgress(qint64, qint64); |
56 void downloadProgress(qint64, qint64); |
57 }; |
57 }; |
58 |
58 |
59 #endif |
59 #endif |