CMessengerServerView

Back to Classes Page

Parent Class: CFormView

Resource ID: IDD_MESSENGERSERVER_FORM

Only 1 object of this class is created. It's the main View object of the application. This is an MFC generated class. This clas is associated with the main window resource (IDD_MESSENGERSERVER_FORM).

Most of the fields in this class are control variables. They are marked with (CTRL), with variable name. To view their functionalities, see the Chatter-jee Server Manual.

Field Summary

Access Data Type Name
protected bool m_bFirstTime
public CButton m_btnDisconnectUsers(CTRL)
public CEdit m_ctrlNumOfConnections(CTRL)
public CEdit m_ctrlNumOfOfflineUsers(CTRL)
public CEdit m_ctrlNumOfOnlineUsers(CTRL)
public CEdit m_ctrlServerMsgs(CTRL)
public CListCtrl m_lstOffLineUsers(CTRL)
public CListCtrl m_lstOnlineUsers(CTRL)
public int m_nNumOfConnections(CTRL)
public int m_nNumOfOfflineUsers(CTRL)
public int m_nNumOfOnlineUsers(CTRL)
public CString m_ServerMsgs(CTRL)

Constructor Summary

CMessengerServerView()

Destructor Summary

~CMessengerServerView()

Method Summary

protected:void AdjustFormControls()
protected:void GetListOfAllUsers()
protected:void OnDisconnectUser()
protected:void OnInitialUpdate()

Field Detail

m_bFirstTime
True when the view is updated the first time. Used for handling the resizing of server view window. This functionality is not fully implemented yet on server side.

m_btnDisconnectUsers
'Disconnect Selected Users' Button.

m_ctrlNumOfConnections
Edit control for number of connections.

m_ctrlNumOfOfflineUsers
Number of offline users.

m_ctrlNumOfOnlineUsers
Number of online users.

m_ctrlServerMsgs
Edit control to show various messages generated by Chatter-jee server.

m_lstOffLineUsers
List of all offline users.

m_lstOnLineUsers
List of all online users.

m_nNumOfConnections
Number of connections (Online users + offline users)

m_nNumOfOfflineUsers
Number of offline users.

m_nNumOfOnlineUsers
Number of online users

m_ServerMsgs
Stores all server messages in the background.

Constructor Detail

CMessengerServerView()
Default constructor. Does nothing additional.

Destructor Detail

~CMessengerServerView()
Default destructor, nothing additional written.

Method Detail

AdjustFormControls()
Adjusts the position and spacing of vaious controls on the Chatter-jee Server view window. Not fully implemented yet.


GetListOfAllUsers()
Retrieves all user names from the database. This is done at startup, so that Server console can see the list of online and offline users during it's life cycle.


OnDisconnectUser()
Called automatically when 'Disconnect Selected Usres' button is pressed. Disconnects all users whose names are selected in the Online Users' List. For more info on this feature, see the Chatter-jee Server User Manual.


OnInitialUpdate()
Overridden, calls GetListOfAllUsers() to retreive a list of all users of Chatter-jee Server.


Back to Classes Page