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.

97 lines
3.1 KiB

  1. // ClientConsoleDoc.h : interface of the CClientConsoleDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CLIENTCONSOLEDOC_H__6E33CFA1_C99A_4691_9F91_00451692D3DB__INCLUDED_)
  5. #define AFX_CLIENTCONSOLEDOC_H__6E33CFA1_C99A_4691_9F91_00451692D3DB__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. typedef list<CServerNode *> SERVERS_LIST, *PSERVERS_LIST;
  10. class CClientConsoleDoc : public CDocument
  11. {
  12. protected: // create from serialization only
  13. CClientConsoleDoc();
  14. DECLARE_DYNCREATE(CClientConsoleDoc)
  15. // Attributes
  16. public:
  17. virtual ~CClientConsoleDoc();
  18. // Operations
  19. public:
  20. // Overrides
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CClientConsoleDoc)
  23. public:
  24. virtual BOOL OnNewDocument();
  25. virtual void Serialize(CArchive& ar);
  26. virtual void OnCloseDocument();
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. public:
  30. const SERVERS_LIST& GetServersList() const { return m_ServersList; }
  31. DWORD GetServerCount() { return m_ServersList.size(); }
  32. static const HANDLE GetShutdownEvent () { return m_hShutdownEvent; }
  33. static const BOOL ShuttingDown () { return m_bShuttingDown; }
  34. BOOL IsSendFaxEnable();
  35. BOOL CanReceiveNow();
  36. DWORD RefreshServersList ();
  37. BOOL IsFolderRefreshing(FolderType type);
  38. int GetFolderDataCount(FolderType type);
  39. void SetInvalidFolder(FolderType type);
  40. void ViewFolder(FolderType type);
  41. CString& GetSingleServerName() { return m_cstrSingleServer; }
  42. CServerNode* FindServerByName(LPCTSTR lpctstrServer);
  43. #ifdef _DEBUG
  44. virtual void AssertValid() const;
  45. virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47. protected:
  48. // Generated message map functions
  49. protected:
  50. //{{AFX_MSG(CClientConsoleDoc)
  51. // NOTE - the ClassWizard will add and remove member functions here.
  52. // DO NOT EDIT what you see in these blocks of generated code !
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. void SetAllServersInvalid();
  57. DWORD RemoveAllInvalidServers();
  58. DWORD RemoveServerNode(CServerNode* pServer);
  59. void ClearServersList ();
  60. DWORD Init ();
  61. DWORD AddServerNode (LPCTSTR lpctstrServer);
  62. BOOL m_bWin9xPrinterFormat; // EnumPrinters() fills PRINTER_INFO_2 in Win9x style
  63. // pShareName and pServerName aren't valid
  64. SERVERS_LIST m_ServersList; // List of servers
  65. static HANDLE m_hShutdownEvent; // Set when the app. shuts down.
  66. static BOOL m_bShuttingDown; // Are we shutting down?
  67. BOOL m_bRefreshingServers; // Are we refreshing the server's list?
  68. CString m_cstrSingleServer; // Name of single server. Empty if we're in normal mode.
  69. };
  70. /////////////////////////////////////////////////////////////////////////////
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_CLIENTCONSOLEDOC_H__6E33CFA1_C99A_4691_9F91_00451692D3DB__INCLUDED_)