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

📄 telephonyengine.h

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

#if !defined(_TELEPHONYENGINE_H)
#define _TELEPHONYENGINE_H

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

#include "defines.h"

// This is my telephony class, it is simply a state machine
// that handles the functionality of a telephone

class CTelephonyEngine  
{
public:
	CTelephonyEngine();
	virtual ~CTelephonyEngine();

	virtual bool Init(CString Name, CString Extn="", CString DisplayName="");

	virtual bool MakeCall(CString& Extn);
	virtual bool AnswerCall(ITBasicCallControl *pCallControl);
	virtual bool HoldCall(ITBasicCallControl *pCallControl);
	virtual bool UnHoldCall(ITBasicCallControl *pCallControl);
	virtual bool DropCall(ITBasicCallControl *pCallControl);
	virtual bool ParkCall(ITBasicCallControl *pCallControl);
	virtual bool UnparkCall();
    virtual bool BlindTransfer(ITBasicCallControl *pCallControl, CString& Extn);
    virtual bool FinishTransfer(bool realFinish);
    virtual bool CreateConference();
    virtual bool AddToConference( CString& Extn );
    virtual bool RemoveFromConference( CString& Extn, ITCallInfo* pCallInfo );
    virtual ITBasicCallControl *TransferCall(ITBasicCallControl *pCallersCall, ITBasicCallControl *pCallControl, CString& Extn, CString& ExtToTransfer);

    DISCONNECTION_TYPE Disconnected(CString& Extn);

private:
	T_STATE m_State;
	CTAPIAddr *m_pAddress;

    bool m_callToTransferDisconnected;

    ITBasicCallControl *m_pTransferCalledCall;
    ITBasicCallControl *m_pBasicCallerCall;
    ITBasicCallControl *m_pBasicCalledCall;

    CMapStringToPtr m_mapExtToCall;

	CString m_Name;
	CString m_Extn;
	CString m_DisplayName;
    CString m_CallToTransfer;
};

#endif 

⌨️ 快捷键说明

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