Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
7.1 KiB

  1. // t3testDlg.h : header file
  2. //
  3. #if !defined(AFX_T3TESTDLG_H__2584F27A_D15F_11D0_8ECA_00C04FB6809F__INCLUDED_)
  4. #define AFX_T3TESTDLG_H__2584F27A_D15F_11D0_8ECA_00C04FB6809F__INCLUDED_
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CT3testDlg dialog
  10. #include "autoans.h"
  11. class CT3testDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CT3testDlg(CWnd* pParent = NULL); // standard constructor
  16. void InitializeTrees();
  17. static void AddAddressToTree( ITAddress * pAddress );
  18. static void ReleaseAddresses( );
  19. static void SelectFirstItem(HWND hWnd,HTREEITEM hRoot);
  20. static void DeleteSelectedItem(HWND hWnd);
  21. static void UpdateMediaTypes(ITAddress * pAddress);
  22. static void UpdateCalls(ITAddress * pAddress);
  23. static void UpdateSelectedCalls(ITPhone * pPhone);
  24. static void UpdateTerminalClasses(ITAddress * pAddress,long lMediaType);
  25. static void UpdateTerminals(ITAddress * pAddress,long lMediaType);
  26. static void UpdatePhones(ITAddress * pAddress);
  27. static void CreateSelectedTerminalMenu(POINT pt, HWND);
  28. static void DoDigitGenerationTerminalMenu(HWND hWnd,POINT *);
  29. static void DoDigitDetectTerminalMenu(HWND hWnd, POINT *);
  30. static void CreateCallMenu(POINT pt, HWND hWnd);
  31. static void PutCaptions();
  32. static void HandleCallHubEvent( IDispatch * );
  33. static void HandleTapiObjectMessage( IDispatch * pEvent );
  34. static void HandleAddressEvent( IDispatch * pEvent );
  35. static void HandlePhoneEvent( IDispatch * pEvent );
  36. static LPWSTR GetCallPrivilegeName(ITCallInfo * pCall);
  37. static LPWSTR GetPhonePrivilegeName(ITPhone * pPhone);
  38. static LPWSTR GetCallStateName(ITCallInfo * pCall);
  39. static BSTR GetTerminalClassName( GUID * pguid );
  40. static void InitializeAddressTree();
  41. static void RegisterEventInterface();
  42. static void RegisterForCallNotifications();
  43. static void AddMediaType( long lMediaType );
  44. static void AddTerminal( ITTerminal * pTerminal );
  45. static void AddCreatedTerminal( ITTerminal * pTerminal );
  46. static void AddCall( ITCallInfo * pCall );
  47. static void AddPhone( ITPhone * pPhone );
  48. static void UpdateCall( ITCallInfo * pCall );
  49. static void UpdatePhone( ITPhone * pPhone);
  50. static void AddSelectedTerminal( ITTerminal * pTerminal);
  51. static void AddSelectedCall( ITCallInfo *pCall);
  52. static void AddTerminalClass( GUID * );
  53. static void AddListen( long );
  54. static void ReleaseMediaTypes( );
  55. static void ReleaseTerminals();
  56. static void ReleaseCalls();
  57. static void ReleasePhones();
  58. static void ReleaseTerminalClasses();
  59. static void ReleaseCreatedTerminals();
  60. static void ReleaseDynamicClasses();
  61. static void ReleaseSelectedTerminals();
  62. static void ReleaseSelectedCalls();
  63. static void ReleaseListen();
  64. static void GetMediaTypeName( long, LPWSTR );
  65. static BOOL GetMediaType( long * plMediaType );
  66. static BOOL GetCall( ITCallInfo ** ppCall );
  67. static BOOL GetAddress( ITAddress ** ppAddress );
  68. static BOOL GetTerminal( ITTerminal ** ppTerminal );
  69. static BOOL GetPhone( ITPhone ** ppPhone );
  70. static BOOL GetTerminalClass( BSTR * pbstrClass );
  71. static BOOL GetCreatedTerminal( ITTerminal ** ppTerminal );
  72. static BOOL GetSelectedTerminal( ITTerminal ** ppTerminal );
  73. static BOOL GetSelectedCall( ITCallInfo ** ppCall );
  74. void FreeData( AADATA * pData );
  75. static void HelpCreateTerminal(
  76. ITTerminalSupport * pTerminalSupport,
  77. BSTR bstrClass,
  78. long lMediaType,
  79. TERMINAL_DIRECTION dir
  80. );
  81. BOOL IsVideoCaptureStream(ITStream * pStream);
  82. HRESULT GetVideoRenderTerminal(ITTerminal ** ppTerminal) ;
  83. HRESULT SelectTerminalOnCall(ITTerminal * pTerminal, ITCallInfo * pCall);
  84. HRESULT EnablePreview(ITStream * pStream);
  85. void RemovePreview( ITStream * pStream );
  86. void DoAutoAnswer(ITCallInfo * pCall);
  87. afx_msg void OnClose() ;
  88. // Dialog Data
  89. //{{AFX_DATA(CT3testDlg)
  90. enum { IDD = IDD_T3TEST_DIALOG };
  91. // NOTE: the ClassWizard will add data members here
  92. //}}AFX_DATA
  93. // ClassWizard generated virtual function overrides
  94. //{{AFX_VIRTUAL(CT3testDlg)
  95. public:
  96. virtual void OnFinalRelease();
  97. protected:
  98. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  99. //}}AFX_VIRTUAL
  100. // Implementation
  101. protected:
  102. HICON m_hIcon;
  103. // Generated message map functions
  104. //{{AFX_MSG(CT3testDlg)
  105. virtual BOOL OnInitDialog();
  106. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  107. afx_msg void OnPaint();
  108. afx_msg HCURSOR OnQueryDragIcon();
  109. afx_msg void OnDestroy();
  110. afx_msg void OnSelchangedAddresses(NMHDR* pNMHDR, LRESULT* pResult);
  111. afx_msg void OnAddterminal();
  112. afx_msg void OnRemoveterminal();
  113. afx_msg void OnCreatecall();
  114. afx_msg void OnConnect();
  115. afx_msg void OnDrop();
  116. afx_msg void OnAnswer();
  117. afx_msg void OnListen();
  118. afx_msg void OnSelchangedCalls(NMHDR* pNMHDR, LRESULT* pResult);
  119. afx_msg void OnSelchangedPhones(NMHDR* pNMHDR, LRESULT* pResult);
  120. afx_msg void OnRelease();
  121. afx_msg void OnCreateTerminal();
  122. afx_msg void OnReleaseterminal();
  123. afx_msg void OnAddcreated();
  124. afx_msg void OnAddnull();
  125. afx_msg void OnAddtolisten();
  126. afx_msg void OnListenall();
  127. afx_msg void OnOpenPhone();
  128. afx_msg void OnClosePhone();
  129. afx_msg void OnSelchangedMediatypes(NMHDR* pNMHDR, LRESULT* pResult);
  130. afx_msg void OnRclickSelectedterminals(NMHDR* pNMHDR, LRESULT* pResult);
  131. afx_msg void OnStartTone();
  132. afx_msg void OnStopTone();
  133. afx_msg void OnBusyTone();
  134. afx_msg void OnRingBackTone();
  135. afx_msg void OnErrorTone();
  136. afx_msg void OnStartRing();
  137. afx_msg void OnStopRing();
  138. afx_msg void OnPhoneAutoOn();
  139. afx_msg void OnPhoneAutoOff();
  140. afx_msg void OnPhoneSpeakerOnHook();
  141. afx_msg void OnPhoneSpeakerOffHook();
  142. afx_msg void OnSelectCall();
  143. afx_msg void OnUnselectCall();
  144. #ifdef ENABLE_DIGIT_DETECTION_STUFF
  145. afx_msg void OnGenerate();
  146. afx_msg void OnModesSupported();
  147. afx_msg void OnModesSupported2();
  148. afx_msg void OnStartDetect();
  149. afx_msg void OnStopDetect();
  150. #endif // ENABLE_DIGIT_DETECTION_STUFF
  151. afx_msg void OnConfigAutoAnswer();
  152. afx_msg void OnILS();
  153. afx_msg void OnRate();
  154. afx_msg void OnPark1();
  155. afx_msg void OnPark2();
  156. afx_msg void OnHandoff1();
  157. afx_msg void OnHandoff2();
  158. afx_msg void OnUnpark();
  159. afx_msg void OnPickup1();
  160. afx_msg void OnPickup2();
  161. afx_msg void OnRclickCalls(NMHDR* pNMHDR, LRESULT* pResult);
  162. afx_msg LONG CT3testDlg::OnTapiEvent(UINT u, LONG_PTR l);
  163. //}}AFX_MSG
  164. DECLARE_MESSAGE_MAP()
  165. };
  166. HRESULT ListILSServers(
  167. LPWSTR ** ppServers,
  168. DWORD * pdwNumServers
  169. );
  170. //{{AFX_INSERT_LOCATION}}
  171. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  172. #endif // !defined(AFX_T3TESTDLG_H__2584F27A_D15F_11D0_8ECA_00C04FB6809F__INCLUDED_)