gk.h
来自「电信的97接口程序,用于把话单入库。这里是采用FTP方式采集话单」· C头文件 代码 · 共 66 行
H
66 行
/*-----------------------------------------------------------------
gk.h gatekeeper process
2001/10/30
Started by shencan@263.net
2002/01/10
Add the compiled condition about HENAN by zoohoo@163.com
2002/05/15
Add the version control by zoohoo@163.com
You can see the version information at beginning of log file
-------------------------------------------------------------------*/
#ifndef _gk_h
#define _gk_h
#include <ptlib.h>
//#define SERVICE
#define ACE_WIN32
/*-------------------------------------------------------------
//#define VERSION 2172
//Combine the program Zhenzhou to file
//You can configure the intfdb.cfg to get version for different area
//#define VERSION 2173
//Combine the program Shenzhen to file
//Use the method of ftp
//Fix the bugs about Shenzhen interface97
//#define VERSION 2175
//Add the watchdog for Henan program
---------------------------------------------------------------*/
#define VERSION 2176
// The short message Interface97 for HENAN
//#define HENAN
#ifdef SERVICE
#include <ptlib/svcproc.h>
class Gatekeeper : public PServiceProcess
{
PCLASSINFO(Gatekeeper, PServiceProcess)
#else
class Gatekeeper : public PProcess
{
PCLASSINFO(Gatekeeper, PProcess)
#endif
public:
Gatekeeper();
void Main();
#ifdef SERVICE
virtual BOOL OnStart() { return 1; }; //Called when the service is started
virtual void OnStop(); //Called by the system when the service is stopped
virtual BOOL OnPause() { return 1; }; //Called by the system when the service is to be paused
virtual void OnContinue() {}; //Resume after the service was paused
virtual void OnControl() {}; //The Control menu option was used in the SysTray menu
#endif
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?