User Name and Password entry form with optional label description and validate password fields. More...
#include <mgui/formpassword.h>

Public Types | |
| enum | FLAGS { FLAG_Default = 0x0000, FLAG_ValidatePassword = 0x0001, FLAG_RememberPassword = 0x0002, FLAG_NoUserName = 0x0004 } |
Public Member Functions | |
| FORM_PASSWORD () | |
| virtual | ~FORM_PASSWORD () |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &Description, FLAGS flags=FLAG_Default, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedHeight) |
| bool | DoRememberPassword () const |
| void | GetBasicAuthString (MISTRING &AuthString) |
| const MISTRING & | GetPassword () |
| const MISTRING & | GetUserName () |
| void | SetDelegateOnComplete (FastDelegate< void(bool)> delegate) |
| void | SetDelegateOnValidateUserName (FastDelegate< bool(const MISTRING &)> delegate) |
| void | SetFocusToName () |
| void | SetUserName (const MISTRING &UserName) |
User Name and Password entry form with optional label description and validate password fields.
| MGUI::FORM_PASSWORD::FORM_PASSWORD | ( | ) |
Constructor.
| virtual MGUI::FORM_PASSWORD::~FORM_PASSWORD | ( | ) | [virtual] |
Destructor.
| void MGUI::FORM_PASSWORD::Create | ( | MGUI::LAYOUT_PANE_BASE & | ParentPane, | |
| const MISTRING & | Description, | |||
| FLAGS | flags = FLAG_Default, |
|||
| MGUI::LAYOUT_SIZEALIGN | sizealign = MGUI::LAYOUT_SIZEALIGN_FixedHeight | |||
| ) |
Create form with label from resource lookup.
| ParentPane | Parent pane | |
| Description | String to be placed above User Name and Password, empty if none wanted. Eg: HTTP Realm string |
| bool MGUI::FORM_PASSWORD::DoRememberPassword | ( | ) | const |
Determine if the user wants us to remember the password for future use.
It is up to the calling code to 'remember' the password. This method can only return true if the FLAG_RememberPassword is used.
| void MGUI::FORM_PASSWORD::GetBasicAuthString | ( | MISTRING & | AuthString | ) |
Get HTTP Basic Authentication string Does not include: "Authorization: Basic" part.
| const MISTRING& MGUI::FORM_PASSWORD::GetPassword | ( | ) |
Get password entered If you make a copy of the password, you need to make sure to clean up properly.
| const MISTRING& MGUI::FORM_PASSWORD::GetUserName | ( | ) |
Get user name entered.
| void MGUI::FORM_PASSWORD::SetDelegateOnComplete | ( | FastDelegate< void(bool)> | delegate | ) | [inline] |
Set delegate to call to get notified on any descriptor changes.
| void MGUI::FORM_PASSWORD::SetDelegateOnValidateUserName | ( | FastDelegate< bool(const MISTRING &)> | delegate | ) | [inline] |
Set delegate to call to validate user name.
This delegate is called only if the FLAG_ValidatePassword is used. This delegate can be used to enforce a unique user name
| void MGUI::FORM_PASSWORD::SetFocusToName | ( | ) |
Sets the focus to the name prompt Note: if the form was created with FLAG_NoUserName, this will actually set the focus to the password form.
| void MGUI::FORM_PASSWORD::SetUserName | ( | const MISTRING & | UserName | ) |
Set the UserName to a value.
1.6.1