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

📄 tvcdemo.h

📁 上海维卡语言卡开发CTI的示例
💻 H
字号:
// TvcDemo.h : main header file for the TVCDEMO application
//

#if !defined(AFX_TVCDEMO_H__37A6D120_47E4_4D29_87A4_A5E1AE64530C__INCLUDED_)
#define AFX_TVCDEMO_H__37A6D120_47E4_4D29_87A4_A5E1AE64530C__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

enum{
	COL_CHANNEL,	
	COL_MODULE,	
	COL_CALLCODE,
	COL_STATUE,		
	COL_DTMFSTR,
	COL_POLVOL,
	COL_CALLER,		
	COL_RECTIME,		
	COL_RECBYTE,	
	COL_PLYTIME,
	COL_PLYBYTE,
};

enum{
	voc_stop,
	voc_alaw,
	voc_ulaw,
	voc_null,
	voc_adpcm,
	voc_truep = 0x22,
	voc_gsm = 0x0031,
	voc_mp3 = 0x55,
};

enum{
	TK_IDLE,
	TK_EMPTY,
	TK_PLYWELCOME,
	TK_PLYSELECT,
	TK_CHKPLYSELECT,
	TK_CHKRECSTART,
	TK_CHKPLYREC,
	TK_CHKRECEND,
	TK_CHKPLYBYE,
	TK_SENDCODE,
	TK_WAITANS,
	TK_LINKING,
	TK_ECHOING,
	US_IDLE,
	US_DIALING,
	US_OUTDIAL,
	US_RINGING,
	US_ECHOING,
	US_TALKING,
	US_INCALLING,
	US_PENDING,
};

enum{
	tone_stillanalyze,
	tone_dial,
	tone_buzy,
	tone_echo,
	tone_speaking= 0x06,
};

typedef struct  {
	WORD	wBusyCount;
	WORD	wEchoCount;
	WORD	wCallStep;
	WORD	wRingCount;
	WORD	wLineVoltage;
	BOOL	isRecording;
	BOOL	isPlaying;
	BOOL	bJoinedConf;
	WORD	wStatus;
	WORD	wModule;
	CTime	ctPrev;
	CString	szSndDtmf;
	CString	szRxDtmf;
	CString szCallerID;
	WORD	wCallCode;
	int		nLinkCh;
}CHANNELINFO;
/////////////////////////////////////////////////////////////////////////////
// CTvcDemoApp:
// See TvcDemo.cpp for the implementation of this class
//

class CTvcDemoApp : public CWinApp
{
public:
	CTvcDemoApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTvcDemoApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CTvcDemoApp)
		// 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()
};


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

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

#endif // !defined(AFX_TVCDEMO_H__37A6D120_47E4_4D29_87A4_A5E1AE64530C__INCLUDED_)

⌨️ 快捷键说明

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