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