jasmine-headless-webkit/ext/jasmine-webkit-specrunner/Page.h
2011-10-25 22:22:29 -04:00

20 lines
476 B
C++

#ifndef JHW_PAGE
#define JHW_PAGE
#include <QtGui>
#include <QtWebKit>
class Page: public QWebPage {
Q_OBJECT
public:
Page();
protected:
void javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID);
void javaScriptAlert(QWebFrame *, const QString &);
bool javaScriptConfirm(QWebFrame *, const QString &);
signals:
void handleError(const QString & message, int lineNumber, const QString & sourceID);
};
#endif