AnyConnect Secure Mobility Client
3.1.07021
|
#include <MainDialog.h>
Public Types | |
enum | { IDD = IDD_EXAMPLE4_DIALOG } |
Public Member Functions | |
MainDialog (Gui *pParent=NULL) | |
void | HandlePromptCB (ConnectPromptInfo &connectPrompt) |
void | HandleEventAvailable () |
void | showStatusbarText (const tstring &text) |
Public Attributes | |
CStatusBarCtrl * | m_statusBar |
PromptDialog * | m_promptDialog |
GUIClientImpl * | m_pApiImpl |
ConnectPromptInfo * | m_pPromptInfo |
std::list< tstring > | m_promptNames |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnSysCommand (UINT nID, LPARAM lParam) |
afx_msg void | OnCbnSelchangeCombo1 () |
afx_msg void | OnBnClickedOk () |
afx_msg void | OnBnClickedCancel () |
afx_msg void | OnBnClickedDisconnect () |
LRESULT | OnEventAvailable (WPARAM wparam, LPARAM lparam) |
Protected Attributes | |
Gui * | m_pParent |
tstring | m_hostName |
MainDialog dialog
void MainDialog::HandleEventAvailable | ( | ) |
This method demonstrates the posting of an event once the API has indicated there is data available (see GUIClientImpl::EventAvailable).
After the posted event fires, the method MainDialog::OnEventAvailable is called.
{ ::PostMessage( this->m_hWnd , MF_NEWEVENT, 0, 0); }
LRESULT MainDialog::OnEventAvailable | ( | WPARAM | wparam, |
LPARAM | lparam | ||
) | [protected] |
This method is invoked after the posted event from the method MainDialog::HandleEventAvailable fires.
This method invokes the API method ClientIfc::ProcessEvents which in turn causes all pending events (NoticeCB, UserPromptCB, etc.) to be delivered.
{ m_pApiImpl->ProcessEvents(); return 0; }