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

📄 tapiaddr.h

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

#if !defined(_TAPIADDR_H_)
#define _TAPIADDR_H_

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

#include "Ref.h"

// Forward decleration for template function
UINT __stdcall HashKey<CString&>(CString& key);

class CTAPIAddr : public CRef  
{
public:
	CTAPIAddr(ITTAPI* pTAPI,	
			  BSTR& DisplayAddr, 
			  BSTR& DialableAddr, 
			  long& SupportedMedia, 
			  long& UnRegister,
			  ITAddress* pAddr);
	virtual ~CTAPIAddr();

	ITAddress* GetITAddress();
	CString GetDisplayAddr() { return m_sDisplayAddr; };
	CString GetDialableAddr() { return m_sDialableAddr; };
	long GetSupportedMedia() { return m_lSupportedMedia; };

	// Address map management functions
	static void AddToAddrMap(CString, CTAPIAddr* pAddr);
	static CTAPIAddr* GetFromAddrMap(CString& s);
	static int GetAddrCount();
	static CTAPIAddr* GetAddrAt(int Index);
	static void ReleaseAddrMap();

private:
	ITTAPI* m_pTAPI;
	ITAddress* m_pTAPIAddr;
	CString m_sDisplayAddr;
	CString m_sDialableAddr;
	long m_lSupportedMedia;
	long m_lUnRegister;

    static CMap<CString, CString&, CTAPIAddr*, CTAPIAddr*> m_TAPIAddrMap;
};

#endif 

⌨️ 快捷键说明

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