mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
27 lines
513 B
C++
27 lines
513 B
C++
#include "WebPageManager.h"
|
|
|
|
WebPageManager *WebPageManager::m_instance = NULL;
|
|
|
|
WebPageManager::WebPageManager() {
|
|
webPages = new QList<WebPage*>();
|
|
}
|
|
|
|
WebPageManager *WebPageManager::getInstance() {
|
|
if(!m_instance)
|
|
m_instance = new WebPageManager();
|
|
|
|
return m_instance;
|
|
}
|
|
|
|
void WebPageManager::append(WebPage *value) {
|
|
webPages->append(value);
|
|
}
|
|
|
|
WebPage *WebPageManager::first() {
|
|
return (WebPage*) webPages->first();
|
|
}
|
|
|
|
WebPage *WebPageManager::last() {
|
|
return (WebPage*) webPages->last();
|
|
}
|
|
|