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.

89 lines
3.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1997 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526, 5,488,650,
  15. // 5,434,906, 5,581,604, 5,533,102, 5,568,540, 5,625,676, 5,651,054.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. // ConfExplorer.h : Declaration of the CConfExplorer
  23. #ifndef __CONFEXPLORER_H_
  24. #define __CONFEXPLORER_H_
  25. #include "resource.h" // main symbols
  26. #define MAX_ENUMLISTSIZE 1000
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CConfExplorer
  29. class ATL_NO_VTABLE CConfExplorer :
  30. public CComObjectRootEx<CComMultiThreadModel>,
  31. public CComCoClass<CConfExplorer, &CLSID_ConfExplorer>,
  32. public IConfExplorer
  33. {
  34. // Construction
  35. public:
  36. CConfExplorer();
  37. void FinalRelease();
  38. // Members
  39. protected:
  40. ITRendezvous *m_pITRend;
  41. IConfExplorerTreeView *m_pTreeView;
  42. IConfExplorerDetailsView *m_pDetailsView;
  43. // Attributes
  44. public:
  45. static HRESULT GetDialableAddress( BSTR bstrServer, BSTR bstrConf, BSTR *pbstrAddress );
  46. static HRESULT GetDirectory( ITRendezvous *pRend, BSTR bstrServer, ITDirectory **ppDir );
  47. static HRESULT ConnectAndBindToDirectory( ITDirectory *pDir );
  48. HRESULT GetDirectoryObject( BSTR bstrServer, BSTR bstrConf, ITDirectoryObject **ppDirObj );
  49. HRESULT RemoveConference( BSTR bstrServer, BSTR bstrConf );
  50. // Implementation
  51. public:
  52. static HRESULT GetConference( ITDirectory *pDir, BSTR bstrName, ITDirectoryObjectConference **ppConf );
  53. DECLARE_NOT_AGGREGATABLE(CConfExplorer)
  54. BEGIN_COM_MAP(CConfExplorer)
  55. COM_INTERFACE_ENTRY(IConfExplorer)
  56. END_COM_MAP()
  57. // IConfExplorer
  58. public:
  59. STDMETHOD(IsDefaultServer)(BSTR bstrServer);
  60. STDMETHOD(AddSpeedDial)(BSTR bstrName);
  61. STDMETHOD(EnumSiteServer)(BSTR bstrName, IEnumSiteServer **ppEnum);
  62. STDMETHOD(get_ITRendezvous)(/*[out, retval]*/ IUnknown **ppVal);
  63. STDMETHOD(get_DirectoryObject)(BSTR bstrServer, BSTR bstrConf, /*[out, retval]*/ IUnknown* *pVal);
  64. STDMETHOD(get_ConfDirectory)(BSTR *pbstrServer, /*[out, retval]*/ IDispatch * *pVal);
  65. STDMETHOD(get_DetailsView)(/*[out, retval]*/ IConfExplorerDetailsView * *pVal);
  66. STDMETHOD(get_TreeView)(/*[out, retval]*/ IConfExplorerTreeView * *pVal);
  67. STDMETHOD(Refresh)();
  68. STDMETHOD(Edit)(BSTR bstrName);
  69. STDMETHOD(Delete)(BSTR bstrName);
  70. STDMETHOD(Create)(BSTR bstrName);
  71. STDMETHOD(Join)(long *pDetails);
  72. STDMETHOD(UnShow)();
  73. STDMETHOD(Show)(HWND hWndList, HWND hWndDetails);
  74. };
  75. #endif //__CONFEXPLORER_H_