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