This dialog is automatically shown when User starts Chatter-jee client. It can also be invoked by clicking the
File-Change User or File-Login option from menu, or by clicking button on the toolbar.
Field Summary |
||
Access | Data Type | Name |
public | BOOL | m_bAutoLogin |
public | bool | m_bDoLogin |
public | BOOL | m_bRememberLogin |
public | CButton | m_btnOK |
public | CString | m_Password |
public | CMessengerClientDoc * | m_pParent |
public | CRegisterDlg * | m_pRegisterDlg |
public | CString | m_UserName |
Constructor Summary |
||
CMessengerDialog(CWnd* pParent /*=NULL*/) | ||
CMessengerDialog(CMessengerClientDoc *pDoc, CWnd* pParent /*= NULL*/) |
Destructor Summary |
Method Summary |
||
int | IsPasswordValid(CString password) | |
protected: void | OnCancel() | |
protected: void | OnChangeUsername() | |
protected: BOOL | OnInitDialog() | |
protected: void | OnOK() | |
protected: void | OnRegister() | |
bool | SendMessagePacket(CMessagePacket& msgPacket) |
Field Detail |
m_bAutoLogin
When true, it means the Chatter-jee client will automatically try to login using the saved login info.
It's the background variable for "Automatically Login" check box.
m_bDoLogin
Redundent variable. Can be removed.
m_btnOK
Background button for "Login" button. Used to enable/disable the button.
m_Password
New password entered by the user, background variable for the dialog.
m_pParent
Pointer to the Document object.
m_pRegisterDlg
Pointer to a Registration Dialog object. If the User wants to register with
Chatter-jee Server, he/she can click on the "Register with Chatter-jee" button to invoke this dialog.
m_UserName
User ID of the person logging in.
Constructor Detail |
CMessengerDialog(CWnd* pParent /*=NULL*/)
Default constructor. Never use this constructor.
CMessengerDialog(CMessengerClientDoc *pDoc, CWnd* pParent /*= NULL*/)
Points m_pParent to the Document object. Sets all boolean data members to FALSE.
Destructor Detail |
Method Detail |
IsPasswordValid(CString password)
Determines whether the password entered by the user is valid. The conditions for password validity are as follows:
OnChangeUsername()
Enables the "Login" button by using m_btnOK variable. This makes sure something is typed in
User Name field before Login button is pressed.
SendMessagePacket(CMessagePacket& msgPacket)