2011-02-18 22:53:06 -05:00
|
|
|
#include "Reset.h"
|
|
|
|
#include "WebPage.h"
|
|
|
|
|
|
|
|
Reset::Reset(WebPage *page, QObject *parent) : Command(page, parent) {
|
|
|
|
}
|
|
|
|
|
2011-02-25 23:29:36 -05:00
|
|
|
void Reset::start(QStringList &arguments) {
|
|
|
|
Q_UNUSED(arguments);
|
|
|
|
|
2011-02-18 22:53:06 -05:00
|
|
|
page()->triggerAction(QWebPage::Stop);
|
2011-04-19 03:16:25 -04:00
|
|
|
page()->currentFrame()->setHtml("<html><body></body></html>");
|
2011-02-26 17:05:28 -05:00
|
|
|
page()->networkAccessManager()->setCookieJar(new QNetworkCookieJar());
|
2011-05-05 17:45:44 -04:00
|
|
|
emit finished(new Response(true));
|
2011-02-18 22:53:06 -05:00
|
|
|
}
|
|
|
|
|