Rev | Line | |
---|
[771] | 1 | #ifndef PACKAGEPAGE2_H
|
---|
| 2 | #define PACKAGEPAGE2_H
|
---|
| 3 |
|
---|
[1047] | 4 | #include "utilvago.h"
|
---|
[811] | 5 |
|
---|
[771] | 6 | #include <QWizardPage>
|
---|
| 7 | #include <QtNetwork/QNetworkAccessManager>
|
---|
| 8 | #include <QtNetwork/QNetworkRequest>
|
---|
| 9 | #include <QtNetwork/QNetworkReply>
|
---|
| 10 | #include <QScriptEngine>
|
---|
| 11 | #include <QScriptValueIterator>
|
---|
[1047] | 12 | #include <JlCompress.h>
|
---|
[771] | 13 |
|
---|
| 14 | namespace Ui {
|
---|
| 15 | class PackagePage2;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | class PackagePage2 : public QWizardPage
|
---|
| 19 | {
|
---|
| 20 | Q_OBJECT
|
---|
| 21 |
|
---|
| 22 | public:
|
---|
[1093] | 23 | explicit PackagePage2(QWidget *parent = 0);
|
---|
[771] | 24 |
|
---|
| 25 | ~PackagePage2();
|
---|
| 26 |
|
---|
| 27 | private slots:
|
---|
| 28 | void on_pbCheck_clicked();
|
---|
| 29 | void downloadPackagesCache(QNetworkReply *result);
|
---|
| 30 |
|
---|
| 31 | void on_cbType_currentIndexChanged(int index);
|
---|
| 32 | bool validatePage();
|
---|
| 33 |
|
---|
| 34 | private:
|
---|
| 35 | Ui::PackagePage2 *ui;
|
---|
| 36 | static const QString ZipCacheFile;
|
---|
| 37 | static const QString CacheFile;
|
---|
| 38 | static const QString PackagesCacheUrl;
|
---|
| 39 | void checkForPackagesInCache();
|
---|
| 40 | };
|
---|
| 41 |
|
---|
| 42 | #endif // PACKAGEPAGE2_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.