• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. KIO
  • KDE Home
  • Contact Us

Quick Links

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Dependencies
  • Related Pages

Class Picker

About

Resource and network access abstraction

Maintainer
David Faure
Supported platforms
FreeBSD, Linux, MacOSX, Windows
Community
IRC: #kde-devel on Freenode
Mailing list: kde-frameworks-devel
Use with CMake
find_package(KF5KIO)
target_link_libraries(yourapp KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets KF5::KIONTLM)
Use with QMake
QT += KIOCore KIOFileWidgets KIOWidgets KNTLM 
Clone
git clone git://anongit.kde.org/kio.git
Browse source
KIO on cgit.kde.org

KIO

  • View on LXR
  • KIO
  • CookieJar
KIO::CookieJar Class Reference

#include <KIO/AccessManager>

Detailed Description

A KDE implementation of QNetworkCookieJar.

Use this class in place of QNetworkCookieJar if you want to integrate with KDE's cookiejar instead of the one that comes with Qt.

Here is a simple example that shows how to set the QtWebKit module to use KDE's cookiejar:

QWebView *view = new QWebView(this);
KIO::Integration::CookieJar *cookieJar = new KIO::Integration::CookieJar;
cookieJar->setWindowId(view->window()->winId());
view->page()->networkAccessManager()->setCookieJar(cookieJar);

To access member functions in the cookiejar class at a later point in your code simply downcast the pointer returned by QNetworkAccessManager::cookieJar as follows:

KIO::Integration::CookieJar *cookieJar = qobject_cast<KIO::Integration::CookieJar*>(view->page()->accessManager()->cookieJar());

IMPORTANTThis class is not a replacement for the standard KDE API. It should ONLY be used to provide KDE integration in applications that cannot use the standard KDE API directly.

See also
QNetworkAccessManager::setCookieJar for details.
Author
Dawit Alemayehu <adawit @ kde.org>
Since
4.4

The documentation for this class was generated from the following file:
  • accessmanager.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sat Dec 7 2019 03:27:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal