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

📄 shr_devent_vcdlg.h

📁 三汇CTI示例程序源码
💻 H
字号:
// SHR_DEvent_VCDlg.h : header file
//

#if !defined(AFX_SHR_DEvent_VCDLG_H__FCE826C1_DDB2_4A2F_AA48_BE39F8946940__INCLUDED_)
#define AFX_SHR_DEvent_VCDLG_H__FCE826C1_DDB2_4A2F_AA48_BE39F8946940__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
enum CH_STATE							//	 Channel state
{
	CH_IDLE				= 0,			//   Idle state
	CH_RING				= 1,			//	 Ringing state
    CH_ACTIVE			= 2,			//   Active state
	CH_OFFLINE			= 3,			//   Outline state
	CH_WAITFOR_ONHOOK	= 4				//   Far end has been on hook ,waiting for near end on hook;
};

enum CH_LISTEN //Listen state
{
	UNLISTEN			= 5,            //		Unlisten 
	LISTEN				= 6             //		Listen 
};

enum CH_RECORD //Record state
{
    UNRECORD			= 7,            //		Unrecord 
	RECORD				= 8             //		Record
};

enum DIRECTION //call dir
{
	UNKNOWN				= 9,             //  Unknown 
	UP					= 10,            //  Call out
	DOWN				= 11             //  Call in
};
#define  MAX_CALLID_LEN 50
#define  MAX_LCD_LEN    300
#define  MAX_ERRMSG_LEN 300
#pragma pack(1)
typedef struct tagCHANNEL{
	CH_STATE   WorkState;				//		Channel state
	CH_LISTEN  IsListen;				//		Listen state
	CH_RECORD  IsRecord;				//		Record state
	char	   pCallId[MAX_CALLID_LEN]; //		Pho Num
	int		   LCDLen;					//		length of LCD information
	int		   CallIdLen;				//		length of call ID;
	char       Lcd[MAX_LCD_LEN];        //		LCD info
	DIRECTION  Dir;						//		Call dir  
	char       pErrMsg[MAX_ERRMSG_LEN]; //		Wrong info
}CHANNEL,* PCHANNEL;					//		Channel structure
#pragma pack()
/////////////////////////////////////////////////////////////////////////////
// CSHR_DEvent_VCDlg dialog
#include "../../../../api/vc6.0/inc/Shpa3api.h" 
class CSHR_DEvent_VCDlg : public CDialog
{
// Construction
public:
	int		nTimer;
	CHANNEL ChannelState[200];
	char	szErrMsg[400];
	int		MaxLine;
	int		ListenChannel;
	int		nRecFormat;
	void	EventHandler(PSSM_EVENT pEvent);
	CSHR_DEvent_VCDlg(CWnd* pParent = NULL);	// standard constructor
// Dialog Data
	//{{AFX_DATA(CSHR_DEvent_VCDlg)
	enum { IDD = IDD_SHR_DEvent_VC_DIALOG };
	CButton	m_RdDefault;
	CComboBox	m_CurLine;
	CListCtrl	m_ListCh;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSHR_DEvent_VCDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void	UpdateChannelState();
	BOOL	InitCtiSystem();
	void	InitChannelState();
	void	InitUI();
	void	StartRecord(int ch);
	void	StopRecord(int ch);
	void	ClearCallID(PSSM_EVENT pEvent);
	void	GetCallID(PSSM_EVENT pEvent);
	HICON	m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSHR_DEvent_VCDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnRadioDefault();
	afx_msg void OnRadioA();
	afx_msg void OnRadioMiu();
	afx_msg void OnRadioIma();
	afx_msg void OnRadioGc8();
	afx_msg void OnRadioG729a();
	afx_msg void OnButtonStartlisten();
	afx_msg void OnButtonStoplisten();
	afx_msg void OnClickListTrk(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SHR_DEvent_VCDLG_H__FCE826C1_DDB2_4A2F_AA48_BE39F8946940__INCLUDED_)

⌨️ 快捷键说明

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