📄 kj4service.h
字号:
// KJ4Service.h: interface for the KJ4Service class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_KJ4SERVICE_H__86EF48F0_9685_4395_B30D_8EAEEFFF054D__INCLUDED_)
#define AFX_KJ4SERVICE_H__86EF48F0_9685_4395_B30D_8EAEEFFF054D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "../KylinSystem/KService.h"
#include "../KylinSystem/ITimerHandler.h"
#include "../SuperKJ/KSensorType.h"
#include "../SuperKJ/KRealDataStatus.h"
#include "KJ4RealDataJob.h"
#include "KJ4SensorJob.h"
class KJ4Service : public KService, public ITimerHandler
{
friend class KJ4RealDataJob;
friend class KJ4SensorJob;
public:
virtual const KGuid GetTypeID();
virtual const CString GetTypeName();
virtual bool Initialize(KXMLNode& node);
virtual bool Start();
virtual bool Stop();
virtual void OnTimer(UINT timer, LPVOID param);
void GetSensorType(SensorItem& item, const CString& token);
public:
KJ4Service();
virtual ~KJ4Service();
public:
void GetRealDataStatus(RealDataItem& item, const CString& token);
static const KGuid TypeID();
static const CString TypeName();
private:
static const KGuid _TypeID;
static const CString _TypeName;
KSensorType mSensorType;
KRealDataStatus mRealDataStatus;
KJ4RealDataJob mRealDataJob;
KJ4SensorJob mSensorJob;
KGuid mMineID;
CString mMineName;
CString mAddr;
UINT mPort;
CString mPath;
UINT mInterval;
bool mInterfaceFail;
};
#endif // !defined(AFX_KJ4SERVICE_H__86EF48F0_9685_4395_B30D_8EAEEFFF054D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -