forked from EXL/QAndroidFileHostParser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget.h
55 lines (45 loc) · 936 Bytes
/
widget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef WIDGET_H
#define WIDGET_H
#include "webpage.h"
#include <QWidget>
#include <QTimer>
#include <QFile>
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
private slots:
void webPageLoaded(bool);
void goToURL();
void timerOff();
private:
void fillTableLinks(const QStringList &stackLinks);
int getPageCount() const;
int getFilesCount() const;
void flushToFile(int begin, int end);
void tableDirectLinks(const QString &links);
void md5ToTable(const QString &md5);
int getArg() const;
private:
Ui::Widget *ui;
private:
WebPage *webPage;
QWebFrame *mainFrame;
QTimer *timer;
QFile *textLog;
private:
int pageCount;
bool directLink;
bool lastPage;
int pgtCNT;
int fileCNT;
int filesCount;
int stackSize;
int filesOnPage;
};
#endif // WIDGET_H