QTfrontend/pagedata.h
branchhedgeroid
changeset 5824 2e5835130d9a
parent 5765 e87f6756773e
child 6009 14f6fc9869f2
--- a/QTfrontend/pagedata.h	Fri Sep 09 04:39:17 2011 +0200
+++ b/QTfrontend/pagedata.h	Fri Sep 09 05:15:45 2011 +0200
@@ -18,10 +18,15 @@
 
 #ifndef PAGE_DATA_H
 #define PAGE_DATA_H
-#include <QWebView>
+
 #include <QUrl>
 #include "AbstractPage.h"
 
+class DataBrowser;
+class QProgressBar;
+class QNetworkReply;
+class QVBoxLayout;
+
 class PageDataDownload : public AbstractPage
 {
     Q_OBJECT
@@ -30,10 +35,23 @@
     PageDataDownload(QWidget* parent = 0);
 
     QPushButton *BtnBack;
-    QWebView *web;
+
+public slots:
+    void fetchList();
+
+private:
+    DataBrowser *web;
+    QHash<QNetworkReply*, QProgressBar *> progressBars;
+    QVBoxLayout *progressBarsLayout;
+
+    bool extractDataPack(QByteArray * buf);
 
 private slots:
-    void install(const QUrl &url);
+    void request(const QUrl &url);
+
+    void pageDownloaded();
+    void fileDownloaded();
+    void downloadProgress(qint64, qint64);
 };
 
 #endif