Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Protected Attributes
qSlicerPersistentCookieJar Class Reference

#include <Base/QTCore/qSlicerPersistentCookieJar.h>

Inheritance diagram for qSlicerPersistentCookieJar:
Inheritance graph
[legend]
Collaboration diagram for qSlicerPersistentCookieJar:
Collaboration graph
[legend]

Public Types

typedef QNetworkCookieJar Superclass
 

Public Member Functions

QList< QNetworkCookie > cookiesForUrl (const QUrl &url) const override
 
QString filePath () const
 
 qSlicerPersistentCookieJar (QObject *parent=nullptr)
 
bool setCookiesFromUrl (const QList< QNetworkCookie > &cookieList, const QUrl &url) override
 
void setFilePath (const QString &filePath)
 
 ~qSlicerPersistentCookieJar () override
 

Protected Attributes

QScopedPointer< qSlicerPersistentCookieJarPrivate > d_ptr
 

Detailed Description

qSlicerPersistentCookieJar provides a mechanism allowing to store persistently cookies when associated with an instance of QNetworkAccessManager.

The cookies will be storted in a INI config file. By default, the config file will be located in the directory associated with the current application settings and will be named cookies.ini. This could be overwritten using qSlicerPersistentCookieJar::setFilePath

A cookie jar can be associated with a QNetworkAccessManager using method QNetworkAccessManager::setCookieJar

See also
QSettings::IniFormat, QNetworkAccessManager::setCookieJar

Definition at line 42 of file qSlicerPersistentCookieJar.h.

Member Typedef Documentation

◆ Superclass

typedef QNetworkCookieJar qSlicerPersistentCookieJar::Superclass

Definition at line 45 of file qSlicerPersistentCookieJar.h.

Constructor & Destructor Documentation

◆ qSlicerPersistentCookieJar()

qSlicerPersistentCookieJar::qSlicerPersistentCookieJar ( QObject *  parent = nullptr)

◆ ~qSlicerPersistentCookieJar()

qSlicerPersistentCookieJar::~qSlicerPersistentCookieJar ( )
override

Member Function Documentation

◆ cookiesForUrl()

QList<QNetworkCookie> qSlicerPersistentCookieJar::cookiesForUrl ( const QUrl &  url) const
override

◆ filePath()

QString qSlicerPersistentCookieJar::filePath ( ) const

◆ setCookiesFromUrl()

bool qSlicerPersistentCookieJar::setCookiesFromUrl ( const QList< QNetworkCookie > &  cookieList,
const QUrl &  url 
)
override

◆ setFilePath()

void qSlicerPersistentCookieJar::setFilePath ( const QString &  filePath)

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerPersistentCookieJarPrivate> qSlicerPersistentCookieJar::d_ptr
protected

Definition at line 56 of file qSlicerPersistentCookieJar.h.


The documentation for this class was generated from the following file: