TreeFrogFramework  1.29
Public Member Functions | List of all members
TWebSocketSession Class Reference

#include <twebsocketsession.h>

Inheritance diagram for TWebSocketSession:
Inheritance graph
Collaboration diagram for TWebSocketSession:
Collaboration graph

Public Member Functions

 TWebSocketSession ()
 TWebSocketSession (const TWebSocketSession &)
TWebSocketSessionoperator= (const TWebSocketSession &)
iterator insert (const QString &key, const QVariant &value)
const QVariant value (const QString &key) const
const QVariant value (const QString &key, const QVariant &defaultValue) const
TWebSocketSessionunite (const TSession &session)
void reset ()

Detailed Description

The TWebSocketSession class holds information associated with individual visitors for WebSocket connection. This class inherits QVariantMap class.

See also

Constructor & Destructor Documentation

◆ TWebSocketSession() [1/2]

TWebSocketSession::TWebSocketSession ( )


◆ TWebSocketSession() [2/2]

TWebSocketSession::TWebSocketSession ( const TWebSocketSession other)

Copy constructor.

Member Function Documentation

◆ insert()

TWebSocketSession::iterator TWebSocketSession::insert ( const QString &  key,
const QVariant &  value 

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

TWebSocketSession & TWebSocketSession::operator= ( const TWebSocketSession other)

◆ reset()

void TWebSocketSession::reset ( )

Resets the session.

◆ unite()

TWebSocketSession & TWebSocketSession::unite ( const TSession session)

Inserts all the items in the other session into this session. If a key is common to both sessions, the resulting session will contain the key multiple times.

◆ value() [1/2]

const QVariant TWebSocketSession::value ( const QString &  key) const

Returns the value associated with the key.

◆ value() [2/2]

const QVariant TWebSocketSession::value ( const QString &  key,
const QVariant &  defaultValue 
) const

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: