Sha256: 992e7f85763e56fdef1be88ee759ac4119e0f280a681d5fef663906b251906a8

Contents?: true

Size: 640 Bytes

Versions: 4

Compression:

Stored size: 640 Bytes

Contents

#include "GetCookies.h"
#include "WebPage.h"
#include "NetworkCookieJar.h"

GetCookies::GetCookies(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent)
{
  m_buffer = "";
}

void GetCookies::start()
{
  NetworkCookieJar *jar = qobject_cast<NetworkCookieJar*>(page()
                                                          ->networkAccessManager()
                                                          ->cookieJar());
  foreach (QNetworkCookie cookie, jar->getAllCookies()) {
    m_buffer.append(cookie.toRawForm());
    m_buffer.append("\n");
  }
  emit finished(new Response(true, m_buffer));
}

Version data entries

4 entries across 4 versions & 3 rubygems

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