ALBA
|
#include <albaUser.h>
Public Member Functions | |
albaUser () | |
virtual | ~albaUser () |
int | ShowLoginDialog () |
virtual bool | CheckUserCredentials () |
virtual bool | IsAuthenticated () |
bool | SetCredentials (albaString &name, albaString &pwd, int &proxyFlag, albaString &proxyHost, albaString &proxyPort, int &remember_me) |
albaString & | GetName () |
albaString & | GetPwd () |
albaString & | GetProxyHost () |
int & | GetProxyPort () |
int & | GetProxyFlag () |
int | GetRememberUserCredentials () |
Protected Member Functions | |
void | InitializeUserInformations () |
void | UpdateUserCredentialsFile () |
void | InitUserInfoHome () |
Protected Attributes | |
albaString | m_Username |
albaString | m_Password |
albaString | m_ProxyHost |
int | m_ProxyFlag |
int | m_ProxyPort |
albaString | m_UserHome |
albaString | m_UserInfoFile |
int | m_RememberCredentials |
bool | m_Initialized |
albaUser - Used to manage username and password; store them and give basic function to check user's credentials.
This is intended as starting point for user managing. Method for Check User Credentials can be redefined to be customized at application level according to custom requests.
Definition at line 32 of file albaUser.h.
albaUser::albaUser | ( | ) |
|
virtual |
int albaUser::ShowLoginDialog | ( | ) |
Allows to show login dialog and get credentials from the application's user.
|
virtual |
Function to be customized at application level.
By default open Login Dialog if the user did not inserted any information.
|
virtual |
Function to be customized at application level.
Must return true if user is authenticated
bool albaUser::SetCredentials | ( | albaString & | name, |
albaString & | pwd, | ||
int & | proxyFlag, | ||
albaString & | proxyHost, | ||
albaString & | proxyPort, | ||
int & | remember_me | ||
) |
Set the user's credentials.
Return 'true' if the users' credentials are correctly initialized, otherwise 'flase' value is returned.
albaString & albaUser::GetName | ( | ) |
Return the information on user name.
albaString & albaUser::GetPwd | ( | ) |
Return the information on users' password.
albaString & albaUser::GetProxyHost | ( | ) |
Return the information on proxy host.
int & albaUser::GetProxyPort | ( | ) |
Return the information on proxy port.
int & albaUser::GetProxyFlag | ( | ) |
Return the information on proxy flag.
int albaUser::GetRememberUserCredentials | ( | ) |
Return information to allow saving or not users' information.
|
protected |
Retrieve user information saved into an encrypted file.
|
protected |
Update user credentials into an encrypted file or remove the file if the user don't want to save its credentials.
|
protected |
Set the folder in which store encrypted user credentials.
|
protected |
Definition at line 83 of file albaUser.h.
|
protected |
Definition at line 84 of file albaUser.h.
|
protected |
Proxy Host.
Definition at line 85 of file albaUser.h.
|
protected |
Flag used to for enable proxy.
Definition at line 86 of file albaUser.h.
|
protected |
Proxy Host.
Definition at line 87 of file albaUser.h.
|
protected |
Definition at line 88 of file albaUser.h.
|
protected |
Definition at line 89 of file albaUser.h.
|
protected |
Definition at line 90 of file albaUser.h.
|
protected |
Flag used to verify if users' information has been initialized.
Definition at line 91 of file albaUser.h.