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

📄 flwparser.h

📁 flwscript解析器
💻 H
字号:
#if !defined (_FLWPARSER_H_)
#define _FLWPARSER_H_

#ifdef FLWPARSER_EXPORTS
#define FLWPARSER_API __declspec(dllexport)
#else
#define FLWPARSER_API __declspec(dllimport)
#endif

/*以下行标识定义*/
#define		FP_LINE_HANGUP		0/*挂机流程*/
#define		FP_LINE_ONHOOK		1/*坐席挂机*/
#define		FP_LINE_OFFHOOK		2/*坐席摘机*/
#define		FP_LINE_USERHANGUP		3/*用户挂机*/
#define		FP_LINE_USERCALLIN		4/*用户呼入*/
#define		FP_LINE_AGENTDIGIT		5/*坐席按键*/
#define		FP_LINE_AGENTEVENTPROC		6/*坐席事件*/
#define		FP_LINE_WAITEVENTPROC		7/*等待坐席*/
#define		FP_LINE_TIMEOUT		8/*超时行*/
#define		FP_LINE_CURRENT		9/*超时行*/
#define		FP_LINE_INTERSERVICE 10
#define		LP_ERROR_OUTOFRANGE -1
#define		LP_ERROR_OPENFILE -2
#define		LP_ERROR_READFLOWVERSION -3
#define		LP_ERROR_READFLOW -4
#define		LP_ERROR_ALLOWMEM -5
#define		LP_ERROR_INVALIDFIWID -6
#define		LP_ERROR_INVALIDLINEID -7
#define		LP_ERROR_INVALIDPARAM -8
#define		LP_ERROR_INVALIDVARIABLE -9

#define		LP_FLW_WAIT 1
#define		LP_FLW_HANGUP -1
#define     LP_FLW_FUNCTION 2
#define		LP_FLW_UNKNOWN 3
#define		LP_FLW_DEADSTATE 4


#define		LP_FLW_WAIT_SQL  1
#define     LP_FLW_WAIT_TIMER 2
#define		LP_FLW_WAIT_FUNCTION 3
#define		LP_FLW_WAIT_BLOCK 4


#define		LP_FLW_HANGUP_VIOLATION 1

#define     LP_FLW_FUNCTION_PLAYFILE  1001
#define     LP_FLW_FUNCTION_READDIGITS 1002
#define     LP_FLW_FUNCTION_SLEEP 1003
#define     LP_FLW_FUNCTION_CONFPLAYFILE 1004
#define     LP_FLW_FUNCTION_GOTOFLOW 1005
#define     LP_FLW_FUNCTION_GOTOSUBFLOW 1006
#define		LP_FLW_FUNCTION_SETCHANTIMER 1007
#define		LP_FLW_FUNCTION_GOTO 1008
#define		LP_FLW_FUNCTION_DATEDIFF 1009
#define		LP_FLW_FUNCTION_GETUSEDCHAN 1010
#define		LP_FLW_FUNCTION_GETFREECHAN 1011
#define		LP_FLW_FUNCTION_GETFREECONFNO 1012
#define		LP_FLW_FUNCTION_GETUSEDSECONDS 1013
#define		LP_FLW_FUNCTION_GETAFFECTEDROW 1014
#define		LP_FLW_FUNCTION_GETFREEIPCHANNO 1015
#define		LP_FLW_FUNCTION_FINDFILE	1016
#define		LP_FLW_FUNCTION_GETFIELDVALUE 1017
#define		LP_FLW_FUNCTION_TIMESPAN 1018
#define		LP_FLW_FUNCTION_GETNOWTIME 1019
#define		LP_FLW_FUNCTION_GETDIALINTIME 1020
#define		LP_FLW_FUNCTION_CONFREQ		1021
#define		LP_FLW_FUNCTION_CONFSTOPFILE		1022
#define		LP_FLW_FUNCTION_LJOINCONF		1023
#define		LP_FLW_FUNCTION_DIALOUT		1024
#define		LP_FLW_FUNCTION_JOINMULTICONF		1025
#define		LP_FLW_FUNCTION_AGENTPLAYRING		1026
#define		LP_FLW_FUNCTION_IPCALL		1027
#define		LP_FLW_FUNCTION_HANGUPDEST		1028
#define		LP_FLW_FUNCTION_SETDIALINTIME		1029
#define		LP_FLW_FUNCTION_LINKPCMFILE		1030
#define		LP_FLW_FUNCTION_VTTALKWITH		1032
#define		LP_FLW_FUNCTION_TALKWITH		1033
#define		LP_FLW_FUNCTION_VTSETSCALE		1034
#define		LP_FLW_FUNCTION_LINEISOFFHOOK		1035
#define		LP_FLW_FUNCTION_LINEEVENTSTART		1036
#define		LP_FLW_FUNCTION_JUMPAGENT		1037
#define		LP_FLW_FUNCTION_SENDANC		1038
#define		LP_FLW_FUNCTION_AGENTREQ		1039
#define		LP_FLW_FUNCTION_AGENTREQEX		1040
#define		LP_FLW_FUNCTION_RECFILE		1041
#define		LP_FLW_FUNCTION_STARTRECORD		1042
#define		LP_FLW_FUNCTION_LOGMSG		1043
#define		LP_FLW_FUNCTION_CONFRECFILE		1044
#define		LP_FLW_FUNCTION_CHECKDIRECTORY		1045
#define		LP_FLW_FUNCTION_SQLCOMMAND		1046
#define		LP_FLW_FUNCTION_SQLSELECT		1047
#define		LP_FLW_FUNCTION_AGENTIVRREQ		1048
#define		LP_FLW_FUNCTION_AGENTCALLOUT		1050
#define		LP_FLW_FUNCTION_STARTLINERECORD		1052

#define		LP_FLW_FUNCTION_GETFREECHANWITHLINK		1053
#define		LP_FLW_FUNCTION_HANGUPCALL		1054
#define		LP_FLW_FUNCTION_SETORICALLEE		1055
#define		LP_FLW_FUNCTION_REQUESTSERVICE   1056
/*网络地址结构*/
typedef struct 
{
	int m_nID;//0 挂机1等待2函数操作
	int m_nWaitID;//等待原因
	int m_nFunID;//函数ID
	char *m_pFunData;
}RETHDR;

typedef struct
{
	
}FS_BEGINSECTION;
typedef struct
{
	
}FS_ENDSECTION;
typedef struct
{
	int m_nSeconds;
}FS_SLEEP;
typedef struct
{
	int m_nPlayType;
	char m_szPlayFile[500];
}FS_PLAYFILE;
typedef struct
{
	char m_szAccessNo[500];
}FS_GOTOFLOW;
typedef struct
{
	int m_nGotoLine;
}FS_GOTO;
typedef struct
{
	char m_szCompanyID[100];
	char m_szFlowName[500];
}FS_GOTOSUBFLOW;
typedef struct
{
	int m_nDigitNum;
}FS_READDIGITS;
typedef struct
{
	int m_nLineNo;
}FS_RESETAGENT;
typedef struct
{
	int m_nTimerSeconds;
}FS_SETCHANTIMER;
typedef struct
{

}FS_HANGUPCALL;
typedef struct
{
	int m_nPlayType;
	int m_nYinLiang;
	char m_szConfFile[500];
}FS_CONFPLAYFILE;
typedef struct
{

}FS_CONFSTOPFILE;
typedef struct
{
	int m_nType;
	char m_szStartTime[100];
	char m_szEndTime[100];
}FS_DATEDIFF;
typedef struct
{
	
}FS_GETFREECHAN;
typedef struct
{
	int m_nLinkID;
}FS_GETFREECHANWITHLINK;
typedef struct
{
	
}FS_GETUSEDCHAN;
typedef struct
{
	
}FS_GETUSEDSECONDS;
typedef struct
{
	
}FS_GETFREECONFNO;
typedef struct
{
	
}FS_GETFREEIPCHANNO;
typedef struct
{
	char m_szFile[500];
}FS_FINDFILE;
typedef struct
{
	int  m_nChnID;
	char m_szOriCallee[500];
}FS_SETORICALLEE;
typedef struct
{
	int  m_nRecType;
	char m_szFile[500];
}FS_RECFILE;
typedef struct
{
	
}FS_GETAFFECTEDROW;
typedef struct
{
	int m_nIndex;
}FS_GETFIELDVALUE;
typedef struct
{
	int m_nTime;
}FS_TIMESPAN;
typedef struct
{
	int m_nType;
}FS_GETNOWTIME;
typedef struct
{
	int m_nType;
}FS_GETDIALINTIME;
typedef struct
{
	int m_nLineLevel;
}FS_AGENTREQ;
typedef struct
{
	int m_nLineLevel;
}FS_REQUESTSERVICE;
typedef struct
{
}FS_AGENTIVRREQ;
typedef struct
{
	int m_nChnID;
	char m_szCaller[100];
	char m_szCalled[100];
	char m_szCallFlow[100];
}FS_AGENTCALLOUT;
typedef struct
{
	char m_szDirectory[900];
}FS_CHECKDIRECTORY;
typedef struct
{
	char m_szFile[900];
}FS_STARTLINERECORD;
typedef struct
{
	int  m_nLineNo;
	char m_szFile[900];
}FS_STARTRECORD;

typedef struct
{
	int m_nChnID;
	int m_nConfNum;
	int m_nConfType;
}FS_CONFREQ;
typedef struct
{
	int m_nDestChnID;
	char m_szCaller[100];
	char m_szCalled[100];
	char m_szCallFlow[100];
}FS_DIALOUT;

typedef struct
{
	char m_szConfFile[500];
	//int  m_nPlayType;
}FS_CONFRECFILE;
typedef struct
{
	int m_nLineNo;
}FS_JUMPAGENT;
typedef struct
{
	int m_nDestChan;
}FS_TALKWITH;
typedef struct
{
	char m_szLog[980];
}FS_LOGMSG;
typedef struct
{
	int m_nChnID;
	int m_nConfNum;
	int m_nConfType;
}FS_JOINCONF;
typedef struct
{
	int m_nChnID;
	int m_nConfType;
	int m_nConfNum;
}FS_JOINMULTICONF;
typedef struct
{
	int m_nConnID;
	char m_szSql[500];
}FS_SQLSELECT;
typedef struct
{
	int m_nConnID;
	char m_szSql[500];
}FS_SQLCOMMAND;
typedef struct
{
	int m_nParam;
}FS_SENDANC;

FLWPARSER_API int FP_InitFlw(int nFlwType,char*szAccessNo,char*szCompanyID,char*szFlwName,char* szFlowFile);
FLWPARSER_API int FP_GetFreeFlwID();
FLWPARSER_API int FP_SetFlwID(int nChnID,int nFlwID);
FLWPARSER_API RETHDR* FP_StartFlw(int nChnID);
FLWPARSER_API RETHDR* FP_StartInitFlw(int nChnID);
FLWPARSER_API int FP_GetSpecialLineNo(int nFlwID ,int LineIdentifer);
FLWPARSER_API int FP_GetTimeOutLineNo(int nChnID);
FLWPARSER_API int FP_DropPageVarible(int nChnID);
FLWPARSER_API int FP_DropStateVarible(int nChnID);
FLWPARSER_API int FP_SetCurrentLineNo(int nChnID,int nLineNo);
FLWPARSER_API int FP_InitChn(int nChnID);
FLWPARSER_API int FP_AllowChnsMem(int nChnNums );
FLWPARSER_API int FP_SetChnIDByIndex(int nIndex,int nChnID);
FLWPARSER_API int FP_SetStringVarible(int nChnID,char* pVarName,char*pVarValue);
FLWPARSER_API int FP_SetIntVarible(int nChnID,char* pVarName,int nVarValue);
FLWPARSER_API int FP_GetFlwNoByAccessNo(int nChnID,char* AccessNo);
FLWPARSER_API int FP_GetFlwNoBySubFlow(int nChnID,char* CompanyNo,char*SubFlow);
FLWPARSER_API int FP_SetFlwNo(int nChnID,int nFlwID);
FLWPARSER_API int FP_SetStringResult(int nChnID,char*pVarValue);
FLWPARSER_API int FP_SetIntResult(int nChnID,int VarValue);
FLWPARSER_API int FP_GetCurLineNo(int nChnID);
#endif

⌨️ 快捷键说明

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