#include <DialDlg.h>
Public Types | |
| enum | { IDD = IDD_DIAL } |
Public Member Functions | |
| void | Init (struct fsDialInfo *dial) |
| CDialDlg (CWnd *pParent) | |
Public Attributes | |
| CComboBox | m_wndEntries |
| CListCtrl | m_wndLog |
Static Public Attributes | |
| static HRASCONN | m_hConn = NULL |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| void | PrepareCHMgr (CPoint point) |
| void | Cancel () |
| void | ApplyLanguage () |
| afx_msg LRESULT | OnNeedEndDialog (WPARAM wp, LPARAM) |
| void | StartConnect () |
| void | SleepInterval () |
| void | Log (LPCSTR pszRecord) |
| virtual BOOL | OnInitDialog () |
| virtual void | OnCancel () |
| afx_msg void | OnConnect () |
| afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
| afx_msg void | OnWhatisthis () |
| afx_msg void | OnAuto () |
| afx_msg BOOL | OnHelpInfo (HELPINFO *pHelpInfo) |
Static Protected Member Functions | |
| static VOID WINAPI | _RasDialFunc (UINT, RASCONNSTATE state, DWORD dwError) |
Protected Attributes | |
| UINT | m_cAgains |
| UINT | m_cAttempts |
| RASDIALPARAMS | m_rp |
| fsDialInfo * | m_dial |
Static Protected Attributes | |
| static BOOL | m_bNeedStop = FALSE |
| static CDialDlg * | m_pThis = NULL |
| static int | m_pThisRefs = 0 |
| static BOOL | m_bInRasFunc = FALSE |
Static Private Member Functions | |
| static void | Release_pThis () |
Definition at line 16 of file DialDlg.h.
| CDialDlg::CDialDlg | ( | CWnd * | pParent | ) |
Definition at line 24 of file DialDlg.cpp.
| void CDialDlg::Init | ( | struct fsDialInfo * | dial | ) |
Definition at line 52 of file DialDlg.cpp.
References m_dial.
Referenced by fsScheduleMgr::_threadDial(), and CMainFrame::OnDial().
| void CDialDlg::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 32 of file DialDlg.cpp.
References IDC_ENTRY, IDC_LOG, m_wndEntries, and m_wndLog.
| void CDialDlg::PrepareCHMgr | ( | CPoint | point | ) | [protected] |
Definition at line 495 of file DialDlg.cpp.
References _CHMgr, IDC__DIALINGTO, IDC_AUTO, IDC_CONNECT, IDC_ENTRY, L_AUTODIALHERE, L_CHOOSEENTRY, L_DIALNOW, L_DONTDIAL, LS, and fsContextHelpMgr::PrepareContextMenu().
Referenced by OnContextMenu(), and OnHelpInfo().
| void CDialDlg::Cancel | ( | ) | [protected] |
Definition at line 443 of file DialDlg.cpp.
References BOOL, FALSE, fsRasHangUp(), IDC_CONNECT, m_bNeedStop, m_dial, m_hConn, m_wndEntries, NULL, Release_pThis(), and TRUE.
Referenced by _RasDialFunc(), and OnCancel().
| void CDialDlg::ApplyLanguage | ( | ) | [protected] |
Definition at line 422 of file DialDlg.cpp.
References _LngMgr, fsMFCLangMgr::ApplyLanguage(), IDC__DIALINGTO, IDC_AUTO, IDC_CONNECT, L_AUTODIAL, L_CANCEL, L_CONNECT, L_CONNECTTO, and L_DIALCONNECTION.
Referenced by OnInitDialog().
| LRESULT CDialDlg::OnNeedEndDialog | ( | WPARAM | wp, | |
| LPARAM | ||||
| ) | [protected] |
Definition at line 387 of file DialDlg.cpp.
References _Snds, EV_DIALINGFAILED, EV_DIALINGSUCCESS, fsSoundsMgr::Event(), fsScheduleMgr::ExciteEvent(), CShedulerWnd::GetMgr(), Release_pThis(), SME_DIALINGFAILED, and SME_DIALINGOK.
| void CDialDlg::StartConnect | ( | ) | [protected] |
Definition at line 356 of file DialDlg.cpp.
References _RasDialFunc(), BOOL, FALSE, fsRasDial(), fsRasGetEntryDialParams(), IDC_CONNECT, L_ATTEMPT, L_DIALING, Log(), LS, m_bNeedStop, m_cAgains, m_cAttempts, m_hConn, m_rp, m_wndEntries, and NULL.
Referenced by OnConnect(), and OnInitDialog().
| void CDialDlg::SleepInterval | ( | ) | [protected] |
Definition at line 335 of file DialDlg.cpp.
References fsDialInfo::cPauseBetween, L_PAUSESECS, Log(), LS, m_bNeedStop, and m_dial.
Referenced by _RasDialFunc().
| void CDialDlg::Log | ( | LPCSTR | pszRecord | ) | [protected] |
Definition at line 314 of file DialDlg.cpp.
References FALSE, and m_wndLog.
Referenced by _RasDialFunc(), OnCancel(), SleepInterval(), and StartConnect().
| VOID WINAPI CDialDlg::_RasDialFunc | ( | UINT | , | |
| RASCONNSTATE | state, | |||
| DWORD | dwError | |||
| ) | [static, protected] |
Definition at line 141 of file DialDlg.cpp.
References fsDialInfo::cAgains, Cancel(), fsDialInfo::cAttempts, _RAS_STATS::dwBps, fsDialInfo::dwHangupLess, _RAS_STATS::dwSize, FALSE, fsRasDial(), fsRasGetErrorString(), fsRasHangUp(), fsSysGetConnectionStatistics(), fsSysGetOsMajorVersion(), INTERNET_AUTODIAL_FORCE_ONLINE, InternetAutodial(), L_ATTEMPT, L_CONNECTEDTOREMOTE, L_CONNSPEEDNOW, L_DIALING, L_DIALTOPROVIDER, L_HANGUPIT, L_HARDWAREFAILURE, L_INVLOGIN2, L_LINEBUSY, L_NODIALTONE, L_OPENPORT, L_REPETITION, L_VERUSERANDPASS, Log(), LS, m_bInRasFunc, m_bNeedStop, m_cAgains, m_cAttempts, m_dial, m_hConn, m_pThis, m_pThisRefs, m_rp, NULL, Release_pThis(), SleepInterval(), stat(), TRUE, and WM_DIALDLG_ENDDIALOG.
Referenced by StartConnect().
| BOOL CDialDlg::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 57 of file DialDlg.cpp.
References _App, ApplyLanguage(), fsAppSettings::Dial_Auto(), fsAppSettings::Dial_LastEntry(), fsRASMgr::EnumEntries(), FALSE, fsRasHangUp(), fsRASMgr::GetEntriesCount(), fsRASMgr::GetEntry(), IDC_AUTO, IDC_CONNECT, L_ERR, L_NODIALENTRIES, LS, m_bNeedStop, m_dial, m_hConn, m_pThis, m_pThisRefs, m_wndEntries, m_wndLog, NULL, fsDialInfo::pszConnection, Release_pThis(), StartConnect(), and TRUE.
| void CDialDlg::OnCancel | ( | ) | [protected, virtual] |
Definition at line 324 of file DialDlg.cpp.
References Cancel(), L_CANCELED, Log(), LS, m_bInRasFunc, m_bNeedStop, and TRUE.
| void CDialDlg::OnConnect | ( | ) | [protected] |
Definition at line 379 of file DialDlg.cpp.
References _App, fsAppSettings::Dial_LastEntry(), m_wndEntries, and StartConnect().
| void CDialDlg::OnContextMenu | ( | CWnd * | pWnd, | |
| CPoint | point | |||
| ) | [protected] |
Definition at line 406 of file DialDlg.cpp.
References _CHMgr, PrepareCHMgr(), and fsContextHelpMgr::ShowMenu().
| void CDialDlg::OnWhatisthis | ( | ) | [protected] |
| void CDialDlg::OnAuto | ( | ) | [protected] |
Definition at line 417 of file DialDlg.cpp.
References _App, fsAppSettings::Dial_Auto(), and IDC_AUTO.
| BOOL CDialDlg::OnHelpInfo | ( | HELPINFO * | pHelpInfo | ) | [protected] |
Definition at line 478 of file DialDlg.cpp.
References _CHMgr, FALSE, NULL, fsContextHelpMgr::OnWT(), PrepareCHMgr(), and TRUE.
| void CDialDlg::Release_pThis | ( | ) | [static, private] |
Definition at line 434 of file DialDlg.cpp.
References m_pThis, m_pThisRefs, and NULL.
Referenced by _RasDialFunc(), Cancel(), OnInitDialog(), and OnNeedEndDialog().
HRASCONN CDialDlg::m_hConn = NULL [static] |
Definition at line 20 of file DialDlg.h.
Referenced by _RasDialFunc(), Cancel(), OnInitDialog(), and StartConnect().
| CComboBox CDialDlg::m_wndEntries |
Definition at line 27 of file DialDlg.h.
Referenced by Cancel(), DoDataExchange(), OnConnect(), OnInitDialog(), and StartConnect().
| CListCtrl CDialDlg::m_wndLog |
UINT CDialDlg::m_cAgains [protected] |
BOOL CDialDlg::m_bNeedStop = FALSE [static, protected] |
Definition at line 45 of file DialDlg.h.
Referenced by _RasDialFunc(), Cancel(), OnCancel(), OnInitDialog(), SleepInterval(), and StartConnect().
UINT CDialDlg::m_cAttempts [protected] |
RASDIALPARAMS CDialDlg::m_rp [protected] |
CDialDlg * CDialDlg::m_pThis = NULL [static, protected] |
Definition at line 55 of file DialDlg.h.
Referenced by _RasDialFunc(), OnInitDialog(), and Release_pThis().
int CDialDlg::m_pThisRefs = 0 [static, protected] |
Definition at line 57 of file DialDlg.h.
Referenced by _RasDialFunc(), OnInitDialog(), and Release_pThis().
BOOL CDialDlg::m_bInRasFunc = FALSE [static, protected] |
fsDialInfo* CDialDlg::m_dial [protected] |
Definition at line 61 of file DialDlg.h.
Referenced by _RasDialFunc(), Cancel(), Init(), OnInitDialog(), and SleepInterval().
1.5.6