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

23 lines
424 B
C++
Raw Normal View History

2012-03-26 18:41:33 -04:00
#include "WebPageManager.h"
WebPageManager *WebPageManager::m_instance = NULL;
WebPageManager::WebPageManager() {
}
WebPageManager *WebPageManager::getInstance() {
if(!m_instance)
m_instance = new WebPageManager();
return m_instance;
}
void WebPageManager::append(WebPage *value) {
m_pages.append(value);
2012-03-26 18:41:33 -04:00
}
QListIterator<WebPage *> WebPageManager::iterator() {
return QListIterator<WebPage *>(m_pages);
2012-03-26 18:41:33 -04:00
}