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

📄 tapievent.h

📁 基于Tapi 3.0的软电话源代码
💻 H
字号:
//-----------------------------------------------------------------------
//  Copyright (c) 2002 Avaya Global SME Solutions 
//-----------------------------------------------------------------------
//  Project name: TAPI 3 Test Harness
//  Module file : TapiEvent.h
//  Compiler    : Visual C++ 6.0
//-----------------------------------------------------------------------
//  Description : Interface for the CTapiEvent class
//-----------------------------------------------------------------------

#if !defined(_TAPIEVENT_H)
#define _TAPIEVENT_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

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

class CTapiObject
{
public:
	CTapiObject(IDispatch* p);
	virtual ~CTapiObject();

	// derived class must implement these functions
	virtual IDispatch* GetIDispatch() = 0;
	virtual void Dump(int level = -1) = 0;

	// public
	const unsigned short GetLevel() { return m_level; };
	void SetLevel(unsigned short l) { m_level = l; };

protected:
	IDispatch* m_pIEvent;
	unsigned short m_level;
};

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

class CTapiEvent : public CTapiObject
{
public:
	CTapiEvent(IDispatch* p);
	virtual ~CTapiEvent();

	virtual const TAPI_EVENT GetEventType() = 0;
	virtual const CString GetASCIIEventType() = 0;

    CString m_AddrStr;
    CString m_StateStr;
};

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

class CCallHubEvent : public CTapiEvent  
{
public:
	CCallHubEvent(IDispatch* p);
	virtual ~CCallHubEvent();

	const TAPI_EVENT GetEventType();
	const CString GetASCIIEventType();
	void Dump(int index = -1);
	IDispatch* GetIDispatch();
};

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

class CCallStateEvent : public CTapiEvent  
{
public:
	CCallStateEvent(IDispatch* p);
	virtual ~CCallStateEvent();

	const TAPI_EVENT GetEventType();
	const CString GetASCIIEventType();
	void Dump(int index = -1);
	IDispatch* GetIDispatch();
};

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

class CCallNotificationEvent : public CTapiEvent  
{
public:
	CCallNotificationEvent(IDispatch* p);
	virtual ~CCallNotificationEvent();

	const TAPI_EVENT GetEventType();
	const CString GetASCIIEventType();
	void Dump(int index = -1);
	IDispatch* GetIDispatch();
};

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

class CCallInfoChangeEvent : public CTapiEvent  
{
public:
	CCallInfoChangeEvent(IDispatch* p);
	virtual ~CCallInfoChangeEvent();

	const TAPI_EVENT GetEventType();
	const CString GetASCIIEventType();
	void Dump(int index = -1);
	IDispatch* GetIDispatch();
};

#endif

⌨️ 快捷键说明

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