#include <twebsocketsession.h>
The TWebSocketSession class holds information associated with individual visitors for WebSocket connection.
This class inherits QVariantMap class.
- See also
- http://doc.qt.io/qt-5/qvariant.html#QVariantMap-typedef
◆ TWebSocketSession() [1/2]
TWebSocketSession::TWebSocketSession |
( |
| ) |
|
|
inline |
◆ TWebSocketSession() [2/2]
◆ insert()
TWebSocketSession::iterator TWebSocketSession::insert |
( |
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
|
inline |
Inserts a new item with the key and a value of value.
If there is already an item with the key, that item's value is replaced with value.
◆ operator=()
◆ reset()
void TWebSocketSession::reset |
( |
| ) |
|
|
inline |
◆ unite()
Inserts all the items in the other session into this session.
If a key is common to both sessions, its value will be replaced with the value stored in session.
◆ value() [1/2]
const QVariant TWebSocketSession::value |
( |
const QString & |
key | ) |
const |
|
inline |
Returns the value associated with the key.
◆ value() [2/2]
const QVariant TWebSocketSession::value |
( |
const QString & |
key, |
|
|
const QVariant & |
defaultValue |
|
) |
| const |
|
inline |
This is an overloaded function.
If the session contains no item with the given key, the function returns defaultValue.
The documentation for this class was generated from the following files: