qBittorrent
ISession Struct Referenceabstract

#include <isessionmanager.h>

Inheritance diagram for ISession:

Public Member Functions

virtual ~ISession ()=default
 
virtual QString id () const =0
 
virtual QVariant getData (const QString &id) const =0
 
virtual void setData (const QString &id, const QVariant &data)=0
 
template<class T >
getData (const QString &id) const
 

Detailed Description

Definition at line 35 of file isessionmanager.h.

Constructor & Destructor Documentation

◆ ~ISession()

virtual ISession::~ISession ( )
virtualdefault

Member Function Documentation

◆ getData() [1/2]

template<class T >
T ISession::getData ( const QString &  id) const
inline

Definition at line 43 of file isessionmanager.h.

44  {
45  return this->getData(id).value<T>();
46  }
virtual QVariant getData(const QString &id) const =0

References getData().

Here is the call graph for this function:

◆ getData() [2/2]

◆ id()

virtual QString ISession::id ( ) const
pure virtual

Implemented in WebSession.

◆ setData()

virtual void ISession::setData ( const QString &  id,
const QVariant &  data 
)
pure virtual

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