RestLink 2.2.0
Powerfull Rest Client for Qt
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RestLink::CookieJar Class Reference

A custom cookie jar for managing HTTP cookies in RestLink. More...

#include <cookiejar.h>

Inherits QNetworkCookieJar.

Public Member Functions

 CookieJar (QObject *parent=nullptr)
 Constructs a CookieJar with a specified parent.
 
virtual ~CookieJar ()
 
bool load ()
 
bool save ()
 
bool loadFromFile (const QString &fileName)
 
bool saveToFile (const QString &fileName) const
 
bool loadFromDevice (QIODevice *device)
 
bool saveToDevice (QIODevice *device) const
 
void loadFromData (const QByteArray &data)
 
void saveToData (QByteArray *data) const
 

Detailed Description

A custom cookie jar for managing HTTP cookies in RestLink.

This class extends QNetworkCookieJar to provide custom cookie handling for the RestLink network manager. It allows for advanced control over cookies in the HTTP requests and responses.

Constructor & Destructor Documentation

◆ CookieJar()

RestLink::CookieJar::CookieJar ( QObject *  parent = nullptr)
explicit

Constructs a CookieJar with a specified parent.

Initializes the custom cookie jar. The parent object will be passed to the QNetworkCookieJar constructor to maintain proper ownership.

Parameters
parentThe parent object for this CookieJar. Defaults to nullptr.

◆ ~CookieJar()

RestLink::CookieJar::~CookieJar ( )
virtual

Member Function Documentation

◆ load()

bool RestLink::CookieJar::load ( )

◆ save()

bool RestLink::CookieJar::save ( )

◆ loadFromFile()

bool RestLink::CookieJar::loadFromFile ( const QString &  fileName)

◆ saveToFile()

bool RestLink::CookieJar::saveToFile ( const QString &  fileName) const

◆ loadFromDevice()

bool RestLink::CookieJar::loadFromDevice ( QIODevice *  device)

◆ saveToDevice()

bool RestLink::CookieJar::saveToDevice ( QIODevice *  device) const

◆ loadFromData()

void RestLink::CookieJar::loadFromData ( const QByteArray &  data)

◆ saveToData()

void RestLink::CookieJar::saveToData ( QByteArray *  data) const