QTfrontend/pagedata.h
branchhedgeroid
changeset 5824 2e5835130d9a
parent 5765 e87f6756773e
child 6009 14f6fc9869f2
equal deleted inserted replaced
5733:5ab22736bdb6 5824:2e5835130d9a
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    17  */
    17  */
    18 
    18 
    19 #ifndef PAGE_DATA_H
    19 #ifndef PAGE_DATA_H
    20 #define PAGE_DATA_H
    20 #define PAGE_DATA_H
    21 #include <QWebView>
    21 
    22 #include <QUrl>
    22 #include <QUrl>
    23 #include "AbstractPage.h"
    23 #include "AbstractPage.h"
       
    24 
       
    25 class DataBrowser;
       
    26 class QProgressBar;
       
    27 class QNetworkReply;
       
    28 class QVBoxLayout;
    24 
    29 
    25 class PageDataDownload : public AbstractPage
    30 class PageDataDownload : public AbstractPage
    26 {
    31 {
    27     Q_OBJECT
    32     Q_OBJECT
    28 
    33 
    29 public:
    34 public:
    30     PageDataDownload(QWidget* parent = 0);
    35     PageDataDownload(QWidget* parent = 0);
    31 
    36 
    32     QPushButton *BtnBack;
    37     QPushButton *BtnBack;
    33     QWebView *web;
    38 
       
    39 public slots:
       
    40     void fetchList();
       
    41 
       
    42 private:
       
    43     DataBrowser *web;
       
    44     QHash<QNetworkReply*, QProgressBar *> progressBars;
       
    45     QVBoxLayout *progressBarsLayout;
       
    46 
       
    47     bool extractDataPack(QByteArray * buf);
    34 
    48 
    35 private slots:
    49 private slots:
    36     void install(const QUrl &url);
    50     void request(const QUrl &url);
       
    51 
       
    52     void pageDownloaded();
       
    53     void fileDownloaded();
       
    54     void downloadProgress(qint64, qint64);
    37 };
    55 };
    38 
    56 
    39 #endif
    57 #endif