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.

140 lines
4.1 KiB

  1. #if !defined(AFX_AGENTDETAIL_H__E50B8967_D321_11D2_A1E2_00A0C9AFE114__INCLUDED_)
  2. #define AFX_AGENTDETAIL_H__E50B8967_D321_11D2_A1E2_00A0C9AFE114__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // AgentDetail.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CAgentDetail dialog
  10. #include "resource.h"
  11. #include "ServList.hpp"
  12. #include "Globals.h"
  13. class CAgentDetailDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CAgentDetailDlg(CWnd* pParent = NULL); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(CAgentDetailDlg)
  20. enum { IDD = IDD_DETAILS };
  21. CButton m_StopAgentButton;
  22. CButton m_RefreshButton;
  23. CButton m_ViewLogButton;
  24. CButton m_PlugInButton;
  25. CButton m_OKButton;
  26. CStatic m_UnchangedLabelStatic;
  27. CStatic m_SharesStatic;
  28. CStatic m_FilesStatic;
  29. CStatic m_ExaminedStatic;
  30. CStatic m_DirStatic;
  31. CStatic m_ChangedStatic;
  32. CString m_Current;
  33. CString m_Stats;
  34. CString m_Status;
  35. CString m_FilesChanged;
  36. CString m_FilesExamined;
  37. CString m_FilesUnchanged;
  38. CString m_DirectoriesChanged;
  39. CString m_DirectoriesExamined;
  40. CString m_DirectoriesUnchanged;
  41. CString m_SharesChanged;
  42. CString m_SharesExamined;
  43. CString m_SharesUnchanged;
  44. CString m_DirectoryLabelText;
  45. CString m_FilesLabelText;
  46. CString m_Operation;
  47. CString m_SharesLabelText;
  48. CString m_ChangedLabel;
  49. CString m_ExaminedLabel;
  50. CString m_UnchangedLabel;
  51. CString m_RefreshRate;
  52. //}}AFX_DATA
  53. CString m_ServerName;
  54. CString m_LogFile;
  55. // Overrides
  56. // ClassWizard generated virtual function overrides
  57. //{{AFX_VIRTUAL(CAgentDetailDlg)
  58. protected:
  59. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  60. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  61. //}}AFX_VIRTUAL
  62. public:
  63. void SetNode(TServerNode * p) { m_pNode = p; }
  64. void SetJobID(WCHAR const * job) { m_JobGuid = job; }
  65. BOOL IsAgentAlive() { return m_AgentAlive; }
  66. BOOL IsStatusUnknown() { return m_StatusUnknown; }
  67. void SetStats(DetailStats * pStats) { m_pStats = pStats; }
  68. void SetPlugInText(CString pText) { m_PlugInText = pText; }
  69. void SetFormat(int format) { m_format = format; }
  70. void SetRefreshInterval(int interval) { m_RefreshRate.Format(L"%ld",interval); }
  71. void SetLogFile(CString file) { m_LogFile = file; }
  72. void SetGatheringInfo(BOOL bValue) { m_bGatheringInfo = bValue;}
  73. void SetAutoCloseHide(int nValue)
  74. {
  75. switch (nValue)
  76. {
  77. case 2:
  78. m_bAutoHide = TRUE;
  79. m_bAutoClose = TRUE;
  80. break;
  81. case 1:
  82. m_bAutoHide = FALSE;
  83. m_bAutoClose = TRUE;
  84. break;
  85. default:
  86. m_bAutoHide = FALSE;
  87. m_bAutoClose = FALSE;
  88. break;
  89. }
  90. }
  91. // Implementation
  92. protected:
  93. IDCTAgentPtr m_pAgent;
  94. TServerNode * m_pNode;
  95. HANDLE m_hBinding;
  96. _bstr_t m_JobGuid;
  97. BOOL m_bCoInitialized;
  98. int m_format;
  99. BOOL m_AgentAlive;
  100. DetailStats * m_pStats;
  101. CString m_PlugInText;
  102. BOOL m_StatusUnknown;
  103. BOOL m_bGatheringInfo;
  104. BOOL m_bAutoHide;
  105. BOOL m_bAutoClose;
  106. BOOL m_bAlwaysEnableClose;
  107. // Generated message map functions
  108. //{{AFX_MSG(CAgentDetailDlg)
  109. virtual BOOL OnInitDialog();
  110. afx_msg void OnRefresh();
  111. virtual void OnOK();
  112. afx_msg void OnChangeEdit2();
  113. afx_msg void OnStopAgent();
  114. afx_msg void OnViewLog();
  115. afx_msg void OnPlugInResults();
  116. afx_msg void OnClose();
  117. afx_msg void OnNcPaint();
  118. //}}AFX_MSG
  119. LRESULT DoRefresh(UINT nID, long x);
  120. void SetupAcctReplFormat();
  121. void SetupFSTFormat();
  122. void SetupESTFormat();
  123. void SetupOtherFormat();
  124. DECLARE_MESSAGE_MAP()
  125. };
  126. DWORD DoRpcQuery(HANDLE hBinding,LPUNKNOWN * ppUnk);
  127. //{{AFX_INSERT_LOCATION}}
  128. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  129. #endif // !defined(AFX_AGENTDETAIL_H__E50B8967_D321_11D2_A1E2_00A0C9AFE114__INCLUDED_)