summaryrefslogtreecommitdiffstats
path: root/src/slxbrowser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/slxbrowser.h')
-rw-r--r--src/slxbrowser.h40
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_ */
+