Remoto - VFS
|
A static class coupled with VFS_tcp_export_client for managing sessions. More...
#include <VFS_tcp_export_sessionManager.h>
Static Public Member Functions | |
static VFS_session * | fetchSession (QString id) |
Fetch a session by id. More... | |
static bool | registerSession (QString id, VFS_session *session) |
Register a session with the session registry. More... | |
static bool | requestSession (QString id, VFS_tcp_export_client *client) |
Request a session by id from a given VFS_tcp_export_client. More... | |
Private Slots | |
void | expireSession (bool) |
A session has expired. More... | |
Static Private Attributes | |
static VFS_tcp_export_sessionManager | _instance |
A static instance of this class, used to receive expirations. More... | |
static QMutex | _lock |
A mutex for locking _sessions. More... | |
static QMap< QString, bool > | _requests |
Sessions which are currently under request. More... | |
static QMap< QString, VFS_session * > | _sessions |
The sessions registered to this node. More... | |
A static class coupled with VFS_tcp_export_client for managing sessions.
This class will request unknown sessions from a connected client by id.
Definition at line 7 of file VFS_tcp_export_sessionManager.h.
|
privateslot |
A session has expired.
Remove it from _sessions and _requests.
Definition at line 94 of file VFS_tcp_export_sessionManager.cpp.
|
static |
Fetch a session by id.
id | The id of the session to search for |
id
, if it exists. Definition at line 24 of file VFS_tcp_export_sessionManager.cpp.
|
static |
Register a session with the session registry.
id | The id of the session to register |
session | The VFS_session to register |
Definition at line 41 of file VFS_tcp_export_sessionManager.cpp.
|
static |
Request a session by id from a given VFS_tcp_export_client.
id | The id to request |
client | The client to request from |
Definition at line 65 of file VFS_tcp_export_sessionManager.cpp.
|
staticprivate |
A static instance of this class, used to receive expirations.
Definition at line 20 of file VFS_tcp_export_sessionManager.h.
|
staticprivate |
A mutex for locking _sessions.
Definition at line 17 of file VFS_tcp_export_sessionManager.h.
|
staticprivate |
Sessions which are currently under request.
Definition at line 19 of file VFS_tcp_export_sessionManager.h.
|
staticprivate |
The sessions registered to this node.
Definition at line 18 of file VFS_tcp_export_sessionManager.h.