home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / pserv.cpl / pserv-2.4.exe / source / pserv2Doc.h < prev    next >
C/C++ Source or Header  |  2005-01-05  |  2KB  |  93 lines

  1. // pserv2Doc.h : interface of the CPserv2Doc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_PSERV2DOC_H__143F6D6A_1D24_4B95_8594_1D16552F82F5__INCLUDED_)
  6. #define AFX_PSERV2DOC_H__143F6D6A_1D24_4B95_8594_1D16552F82F5__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "CService.h"
  13. #include "CEventLog.h"
  14. #include "CProcessList.h"
  15. #include "CModulesList.h"
  16.  
  17. typedef enum 
  18. {
  19.     DocType_Services, 
  20.     DocType_Events,
  21.     DocType_ProcessList,
  22.     DocType_ModulesList
  23. } DocType;
  24.  
  25. class CPserv2Doc : public CDocument
  26. {
  27. protected: // create from serialization only
  28.     CPserv2Doc();
  29.     DECLARE_DYNCREATE(CPserv2Doc)
  30.  
  31. // Attributes
  32. public:
  33.  
  34. // Operations
  35. public:
  36.  
  37. // Overrides
  38.     // ClassWizard generated virtual function overrides
  39.     //{{AFX_VIRTUAL(CPserv2Doc)
  40.     public:
  41.     virtual BOOL OnNewDocument();
  42.     virtual void Serialize(CArchive& ar);
  43.     //}}AFX_VIRTUAL
  44.  
  45. // Implementation
  46. public:
  47.     virtual ~CPserv2Doc();
  48. #ifdef _DEBUG
  49.     virtual void AssertValid() const;
  50.     virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52.     
  53.     CListViewEntries* m_pEntries;
  54.  
  55.     // should be removed one day ;)
  56.     DocType m_DocType;
  57.  
  58. protected:
  59.     CObList m_Providers;
  60.     CServiceList m_ServiceList;
  61.     CEventLog m_EventLog;
  62.     CProcessList m_ProcessList;
  63.     CModuleList m_ModulesList;
  64.  
  65.     void DoConfigExchange(BOOL bSave);
  66.  
  67.     void IGetExportFilename(LPCTSTR lpszDefExt, CString& refFilename, LPCTSTR lpszFilter, BOOL& success, BOOL bOpenFileDialog = FALSE);
  68.     BOOL GetExportFilename(LPCTSTR lpszDefExt, CString& refFilename, LPCTSTR lpszFilter, BOOL bOpenFileDialog);
  69.  
  70. // Generated message map functions
  71. protected:
  72.     //{{AFX_MSG(CPserv2Doc)
  73.     afx_msg void OnDisplayExportAsXml();
  74.     afx_msg void OnViewServices();
  75.     afx_msg void OnViewDevices();
  76.     afx_msg void OnViewSystemEvents();
  77.     afx_msg void OnViewSecurityEvents();
  78.     afx_msg void OnViewProcessList();
  79.     afx_msg void OnViewModulesList();
  80.     afx_msg void OnViewApplicationEvents();
  81.     afx_msg void OnDisplayExportToClipboard();
  82.     afx_msg void OnTemplatesApply();
  83.     //}}AFX_MSG
  84.     DECLARE_MESSAGE_MAP()
  85. };
  86.  
  87. /////////////////////////////////////////////////////////////////////////////
  88.  
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91.  
  92. #endif // !defined(AFX_PSERV2DOC_H__143F6D6A_1D24_4B95_8594_1D16552F82F5__INCLUDED_)
  93.