diff options
author | Simon Rettberg | 2017-07-07 15:21:28 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-07-07 15:21:28 +0200 |
commit | f5663edb4e1a53b6d80de909f2888ffd9ee1e170 (patch) | |
tree | f776b8e929bc356c215fafc46e6548ffe957e7f9 /src/slxbrowser.h | |
download | slxbrowser-f5663edb4e1a53b6d80de909f2888ffd9ee1e170.tar.gz slxbrowser-f5663edb4e1a53b6d80de909f2888ffd9ee1e170.tar.xz slxbrowser-f5663edb4e1a53b6d80de909f2888ffd9ee1e170.zip |
FIRST!!!1
Diffstat (limited to 'src/slxbrowser.h')
-rw-r--r-- | src/slxbrowser.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/slxbrowser.h b/src/slxbrowser.h new file mode 100644 index 0000000..fbd4c4a --- /dev/null +++ b/src/slxbrowser.h @@ -0,0 +1,40 @@ +#ifndef SLXBROWSER_H_ +#define SLXBROWSER_H_ + +#include <QMainWindow> +#include <QList> +#include <QSslError> +#include <QTimer> + +class QNetworkReply; +class QWebView; +class QProgressBar; +class QNetworkReply; + +class SLXbrowser : public QMainWindow +{ + Q_OBJECT +public: + SLXbrowser(QString url, bool fullscreen, bool ignoreSslErrors); + virtual ~SLXbrowser(); + +private slots: + void loadStarted(); + void loadFinished(bool ok); + void loadProgress(int progress); + void sslErrors(QNetworkReply * reply, const QList<QSslError> & errors); + void requestFinished(QNetworkReply *reply); + void reloadInitial(); + +private: + QString _url; + bool _ignoreSslErrors; + QWebView *_browser; + QProgressBar *_progress; + QTimer _reset; + QList<QSslError> _sslErrors; + QString _normalError; +}; + +#endif /* SLXBROWSER_H_ */ + |