ALBA
albaGUIDialogLogin.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIDialogLogin
5 Authors: Paolo Quadrani
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16#ifndef __albaGUIDialogLogin_H__
17#define __albaGUIDialogLogin_H__
18
19//----------------------------------------------------------------------------
20// Include:
21//----------------------------------------------------------------------------
22#include "albaGUIDialog.h"
23
24//----------------------------------------------------------------------------
25// forward declarations
26//----------------------------------------------------------------------------
27
32{
33public:
34 albaGUIDialogLogin(const wxString& title, long style = albaCLOSEWINDOW | albaOK | albaCANCEL);
36
37 void OnEvent(albaEventBase *alba_event);
38
40 void SetUserCredentials(albaString &usename, albaString &pwd, int &proxyFlag, albaString &proxyHost, int &proxyPort, int &remember_me);
41
44
47
49 int GetProxyFlag(){return m_ProxyFlag;};
50
53
56
58 void SetRememberUserCredentials(int remember = 1) {m_RememberMe = remember;};
59
62
63protected:
64
67
78};
79#endif
@ albaCANCEL
Definition: albaGUIDialog.h:36
@ albaOK
Definition: albaGUIDialog.h:35
@ albaCLOSEWINDOW
Definition: albaGUIDialog.h:34
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
albaGUIDialogLogin - a dialog widget with a find VME GUI.
int m_ProxyFlag
Flag used to for enable proxy.
bool m_InformationsInserted
Flag used to check if the user insert some information or not.
albaString m_Username
Current username inserted into the dialog.
int GetProxyFlag()
Select image type during saving of the views.
albaString m_UsernameOld
Last username inserted.
albaString & GetProxyHost()
Select image type during saving of the views.
albaString m_PwdOld
Last password inserted.
int GetRememberUserCredentials()
Return information to allow saving or not users' information.
albaString m_ProxyHost
Proxy Host.
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
void EnableItems()
Used to enable/disable items according to the current widgets state.
int GetProxyPort()
Get Port in proxy connection.
void SetUserCredentials(albaString &usename, albaString &pwd, int &proxyFlag, albaString &proxyHost, int &proxyPort, int &remember_me)
Set the user credentials.
albaString & GetUser()
Return the username information.
albaGUI * m_Gui
Gui variable used to plug custom widgets.
int m_ProxyPort
Proxy Host.
albaString m_Pwd
Current password inserted into the dialog.
virtual ~albaGUIDialogLogin()
void SetRememberUserCredentials(int remember=1)
Set the flag to store user credentials.
albaString & GetPwd()
Return the password information.
albaGUIDialogLogin(const wxString &title, long style=albaCLOSEWINDOW|albaOK|albaCANCEL)
albaGUIDialog is the base class for albaDialogs.
Definition: albaGUIDialog.h:76
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
albaString - performs common string operations on c-strings.
Definition: albaString.h:43