1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/src/ClearCookies.cpp

14 lines
377 B
C++
Raw Normal View History

#include "ClearCookies.h"
#include "WebPage.h"
#include "WebPageManager.h"
#include "NetworkCookieJar.h"
#include <QNetworkCookie>
ClearCookies::ClearCookies(WebPageManager *manager, QStringList &arguments, QObject *parent) : Command(manager, arguments, parent) {}
void ClearCookies::start()
{
2012-06-21 23:34:51 -04:00
manager()->cookieJar()->clearCookies();
emit finished(new Response(true));
}