Source code of Windows XP (NT5)
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.

71 lines
1.8 KiB

  1. // emshellDoc.h : interface of the CEmshellDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_EMSHELLDOC_H__DE402522_2120_4FEC_92AA_41CD749E2ADF__INCLUDED_)
  5. #define AFX_EMSHELLDOC_H__DE402522_2120_4FEC_92AA_41CD749E2ADF__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ConnectionDlg.h" // Added by ClassView
  10. #include "emsvc.h"
  11. class CEmshellDoc : public CDocument
  12. {
  13. protected: // create from serialization only
  14. CEmshellDoc();
  15. DECLARE_DYNCREATE(CEmshellDoc)
  16. // Attributes
  17. public:
  18. // Operations
  19. public:
  20. // Overrides
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CEmshellDoc)
  23. public:
  24. virtual void Serialize(CArchive& ar);
  25. virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
  26. virtual BOOL OnNewDocument();
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. public:
  30. void AppendVersionOfShell(CString &strVersion);
  31. LPCTSTR GetServerName();
  32. BOOL GetConnectedToServerState();
  33. IEmManager* GetEmManager();
  34. BOOL DisconnectFromServer();
  35. HRESULT ConnectToServer(CString &strServer);
  36. virtual ~CEmshellDoc();
  37. #ifdef _DEBUG
  38. virtual void AssertValid() const;
  39. virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41. protected:
  42. // Generated message map functions
  43. protected:
  44. CConnectionDlg m_connectionDlg;
  45. IEmManager* m_pIEmManager;
  46. BOOL m_bConnectedToServer;
  47. CString m_strServerName;
  48. //{{AFX_MSG(CEmshellDoc)
  49. afx_msg void OnFileConnect();
  50. afx_msg void OnFileDisconnect();
  51. afx_msg void OnUpdateFileDisconnect(CCmdUI* pCmdUI);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. /////////////////////////////////////////////////////////////////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_EMSHELLDOC_H__DE402522_2120_4FEC_92AA_41CD749E2ADF__INCLUDED_)