summaryrefslogtreecommitdiffstats
path: root/webkitTest/webkittest.h
blob: 71369767f3f8a868985aeae4b9dfc975143711ee (plain) (blame)
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
#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