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.cpp
2012-05-25 21:09:41 -04:00

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();
}