⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdf.h

📁 电信机房MDF、电源柜监控源码,主要用在通信机房配线设备监控、电源柜监控
💻 H
字号:
// MDF.h : main header file for the MDF application
//

#if !defined(AFX_MDF_H__254B4DBC_4F2C_4354_9187_C45106FE7B24__INCLUDED_)
#define AFX_MDF_H__254B4DBC_4F2C_4354_9187_C45106FE7B24__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

#include "AdoDB.h"	// Added by ClassView
#include "MDFDlg.h"
//#include "Media.h"
#include "MDF_i.h"
#include "monitor.h"
//#include "rightform.h"



/////////////////////////////////////////////////////////////////////////////
// CMDFApp:
// See MDF.cpp for the implementation of this class
//

//##ModelId=44B6F8850290
class CMDFApp : public CWinApp
{
public:
	//##ModelId=44B6F8850292
	static UINT RefreshThd(LPVOID pPara);
	//##ModelId=44B6F885029F
	BOOL WriteTxtLog(CString strTxt);
	//##ModelId=44B6F88502A1
	void TestWriteLog(CString strTip);
	//##ModelId=44B6F88502A3
	int AddDebugAlarm(sCommEQ* pEQ,int nPort);
	//##ModelId=44B6F88502AF
	BOOL m_bRefresh;
	//##ModelId=44B6F88502B0
	BOOL m_bReStart ;
	//##ModelId=44B6F88502B1
	BOOL m_bTest ;
	//##ModelId=44B6F88502B2
	HANDLE m_hTxt ;
	//##ModelId=44B6F88502BF
	CString m_strPath;
	//CStringArray m_strDBArray ;
	//##ModelId=44B6F88502C0
	CList<CString , CString> m_strDBArray ;
	//##ModelId=44B6F88502C1
	void ClearTimeOut(int nId, sCommEQ* pEQ=NULL);
	//##ModelId=44B6F88502D0
	void SetTimeOut(int nId,int nTime,sCommEQ* pEQ=NULL);
	//##ModelId=44B6F88502D4
	int ReStart();
	//##ModelId=44B6F88502DE
	int Refresh();
	//##ModelId=44B6F88502DF
	int DebugShow(CString strTip);
	//##ModelId=44B6F88502E1
	CString m_strTip;
	//##ModelId=44B6F88502E2
	int Show(CString strTip);
	//##ModelId=44B6F88502EF
	int ReadConfig();
	//##ModelId=44B6F88502F0
	int WriteConfig();
	//##ModelId=44B6F88502F1
	int ReadINI(CString& strSys);
	//##ModelId=44B6F88502FE
	int WriteINI(CString strSys);
	//##ModelId=44B6F885030E
	CAdoDB *m_pAdoDB ;
	//##ModelId=44B6F8850313
	//CComm  *m_pComm ;
	//##ModelId=44B6F885031D
	//CMedia *m_pMedia ;
	//##ModelId=44B6F8850321
	HANDLE m_hRefresh ;
	//##ModelId=44B6F8850322
	CMDFApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMDFApp)
	public:
	//##ModelId=44B6F885032C
	virtual BOOL InitInstance();
	//##ModelId=44B6F885032E
	virtual int ExitInstance();
	//##ModelId=44B6F885033D
	CString m_strIp ;
	//##ModelId=44B6F885033E
	CString m_strUserId ;
	//##ModelId=44B6F885034B
	CString m_strPassWord ;
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CMDFApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	//##ModelId=44B6F885034C
	BOOL m_bTOMsg ;
	//##ModelId=44B6F885035B
	BOOL m_bTOVoice ;
	//##ModelId=44B6F885035C
	BOOL m_bTOScan ;
	//##ModelId=44B6F885036B
	BOOL m_bTOConnect ;


private:
public:
	// 系统基本配置信息
	//##ModelId=44B6F885036D
	CBaseInfo m_Baseinfo;
	// 输出函数
	//##ModelId=44B6F885037A
	int OutPut(CString sNote);
	// 监测主进程
	//##ModelId=44B6F885037D
	CMonitor *m_pMonitor;
	CMDFDlg *dlgServer;
	// 初始化基本配置信息
	int IniBaseInfo(CBaseInfo & m_Info);
	// 重新起动监测服务
	BOOL RestartMonitoring(void);
	afx_msg void OnCmStop();
	// 起动监测服务
	BOOL StartMonitoring(void);
	// 停止监测服务
	BOOL StopMonitoring(void);
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MDF_H__254B4DBC_4F2C_4354_9187_C45106FE7B24__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -