BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
bbb::UserSession Class Reference

#include <usersession.h>

Collaboration diagram for bbb::UserSession:
Collaboration graph
[legend]

Public Member Functions

void setUsername (QString userName)
 
void setPassword (QString password)
 
bool validateSessionInfo ()
 

Static Public Member Functions

static UserSessiongetInstance ()
 
static void logout ()
 

Private Types

enum  Roles { ROOT = 0, ADMIN = 1, USER = 2 }
 

Private Member Functions

 UserSession ()
 
 ~UserSession ()
 

Private Attributes

QString userName
 
QString password
 
Roles userRole
 

Static Private Attributes

static UserSessioninstance = nullptr
 

Member Enumeration Documentation

Enumerator
ROOT 
ADMIN 
USER 

Constructor & Destructor Documentation

UserSession::UserSession ( )
private

Here is the caller graph for this function:

UserSession::~UserSession ( )
private

Here is the call graph for this function:

Member Function Documentation

UserSession * UserSession::getInstance ( )
static

Here is the call graph for this function:

void UserSession::logout ( )
static

Here is the caller graph for this function:

void UserSession::setPassword ( QString  password)
void UserSession::setUsername ( QString  userName)
bool UserSession::validateSessionInfo ( )

Member Data Documentation

UserSession * UserSession::instance = nullptr
staticprivate
QString bbb::UserSession::password
private
QString bbb::UserSession::userName
private
Roles bbb::UserSession::userRole
private

The documentation for this class was generated from the following files: