Sha256: e088c535ea6ad77a0beaa141405ee0c9f527afe361fbcf7f988310bd90ed98e7

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

#include "ClearCookies.h"
#include "WebPage.h"
#include "NetworkCookieJar.h"
#include <QNetworkCookie>

ClearCookies::ClearCookies(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {}

void ClearCookies::start()
{
  NetworkCookieJar *jar = qobject_cast<NetworkCookieJar*>(page()
                                                          ->networkAccessManager()
                                                          ->cookieJar());
  jar->clearCookies();
  emit finished(new Response(true));
}

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
imseng-capybara-webkit-0.12.1 src/ClearCookies.cpp
capybara-webkit-0.12.1 src/ClearCookies.cpp
otherinbox-capybara-webkit-0.12.0 src/ClearCookies.cpp
capybara-webkit-0.12.0 src/ClearCookies.cpp