equal
deleted
inserted
replaced
25 class DataBrowser; |
25 class DataBrowser; |
26 class QProgressBar; |
26 class QProgressBar; |
27 class QNetworkReply; |
27 class QNetworkReply; |
28 class QVBoxLayout; |
28 class QVBoxLayout; |
29 |
29 |
|
30 |
30 class PageDataDownload : public AbstractPage |
31 class PageDataDownload : public AbstractPage |
31 { |
32 { |
32 Q_OBJECT |
33 Q_OBJECT |
33 |
34 |
34 public: |
35 public: |
37 public slots: |
38 public slots: |
38 void fetchList(); |
39 void fetchList(); |
39 |
40 |
40 protected: |
41 protected: |
41 QLayout * bodyLayoutDefinition(); |
42 QLayout * bodyLayoutDefinition(); |
|
43 QLayout * footerLayoutDefinition(); |
42 void connectSignals(); |
44 void connectSignals(); |
43 |
45 |
44 private: |
46 private: |
45 DataBrowser *web; |
47 DataBrowser *web; |
46 QHash<QNetworkReply*, QProgressBar *> progressBars; |
48 QHash<QNetworkReply*, QProgressBar *> progressBars; |
47 QVBoxLayout *progressBarsLayout; |
49 QVBoxLayout *progressBarsLayout; |
|
50 QPushButtonWithSound * pbOpenDir; |
48 |
51 |
49 bool m_contentDownloaded; ///< true if something was downloaded since last page leave |
52 bool m_contentDownloaded; ///< true if something was downloaded since last page leave |
50 |
53 |
51 private slots: |
54 private slots: |
52 void request(const QUrl &url); |
55 void request(const QUrl &url); |
53 |
56 |
54 void pageDownloaded(); |
57 void pageDownloaded(); |
55 void fileDownloaded(); |
58 void fileDownloaded(); |
56 void downloadProgress(qint64, qint64); |
59 void downloadProgress(qint64, qint64); |
|
60 void openPackagesDir(); |
57 |
61 |
58 void onPageLeave(); |
62 void onPageLeave(); |
59 }; |
63 }; |
60 |
64 |
61 #endif |
65 #endif |