summaryrefslogtreecommitdiffstats
path: root/webkitTest/webkittest.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkitTest/webkittest.h')
-rw-r--r--webkitTest/webkittest.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/webkitTest/webkittest.h b/webkitTest/webkittest.h
new file mode 100644
index 0000000..7136976
--- /dev/null
+++ b/webkitTest/webkittest.h
@@ -0,0 +1,27 @@
+#ifndef WEBKITTEST_H
+#define WEBKITTEST_H
+
+#include <QtGui/QWidget>
+#include "ui_webkittest.h"
+
+class webkitTest : public QWidget
+{
+ Q_OBJECT
+
+public:
+ webkitTest(QWidget *parent, QUrl & url);
+ ~webkitTest();
+ Q_INVOKABLE void writeText(QString text); //used for writing web content into a file
+ //void setQApplication(const QApplication & app);
+ void setUrl(QUrl & url);
+
+private:
+ Ui::webkitTestClass ui;
+ QApplication * app;
+ QUrl url;
+
+private slots:
+ void addJSObject();
+};
+
+#endif // WEBKITTEST_H