Slicer  4.10
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
 
QString filePath () const
 
 qSlicerPersistentCookieJar (QObject *parent=0)
 
bool setCookiesFromUrl (const QList< QNetworkCookie > &cookieList, const QUrl &url)
 
void setFilePath (const QString &filePath)
 
virtual ~qSlicerPersistentCookieJar ()
 

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 = 0)

◆ ~qSlicerPersistentCookieJar()

virtual qSlicerPersistentCookieJar::~qSlicerPersistentCookieJar ( )
virtual

Member Function Documentation

◆ cookiesForUrl()

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

◆ filePath()

QString qSlicerPersistentCookieJar::filePath ( ) const

◆ setCookiesFromUrl()

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

◆ 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: