?? telephonyengine.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 + -