1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/src/WebPageManager.h

35 lines
673 B
C
Raw Normal View History

#ifndef _WEBPAGEMANAGER_H
#define _WEBPAGEMANAGER_H
2012-03-26 18:41:33 -04:00
#include <QList>
#include <QObject>
class WebPage;
2012-03-26 18:41:33 -04:00
class WebPageManager : public QObject {
Q_OBJECT
2012-03-26 18:41:33 -04:00
public:
WebPageManager(QObject *parent = 0);
2012-03-26 18:41:33 -04:00
void append(WebPage *value);
QListIterator<WebPage *> iterator();
void setCurrentPage(WebPage *);
WebPage *currentPage();
WebPage *createPage(QObject *parent);
void setIgnoreSslErrors(bool);
bool ignoreSslErrors();
2012-03-26 18:41:33 -04:00
public slots:
void emitPageFinished(bool);
signals:
void pageFinished(bool);
2012-03-26 18:41:33 -04:00
private:
QList<WebPage *> m_pages;
WebPage *m_currentPage;
bool m_ignoreSslErrors;
2012-03-26 18:41:33 -04:00
};
#endif // _WEBPAGEMANAGER_H