tapiconnection.h
来自「AVAYA IPO 430系列交换机Wavedriver的demo程序」· C头文件 代码 · 共 55 行
H
55 行
#ifndef TAPICONNECTION_H
#define TAPICONNECTION_H
// ----------------------------------------------------------------------------
// Copyright (c) Avaya 2002. All rights reserved.
//
// FILE: TAPIConnection.h
//
// Derived from
// \CTI\CTIntegrator\Develop\tapisample\\tapiline.h
//
// This is the definition file for the tapi support classes.
// See tapiline.cpp for the implementation of these classes
//
// ----------------------------------------------------------------------------
#define WM_USER_TAPI_INFO WM_USER+1
#define WM_USER_TAPI_STATUS WM_USER+2
// Forward reference
#include "TAPILine.h"
class TAPIConnection
{
public:
TAPIConnection();
~TAPIConnection();
// TAPI helper functions
void InitialiseTAPI(CWnd *pMsgWnd = NULL);
void ShutdownTAPI();
void OpenValidLines();
void SetTapiLine(int line) { m_FirstOpenedLine = line; };
TAPILine *GetTapiLine(); // Return the current (first) TAPI line
LPCTSTR GetLastMessage();
public:
void SendInfoMsg(LPCTSTR pszCommand);
void StatusChange();
public:
// TAPI variables
HLINEAPP m_hLineApp; // Application handle returned from TAPI
DWORD m_NumDevs; // Number of devices (lines) available: 1 for INDeX.
DWORD *m_ApiVersions; // API versions supported by each device
PTAPILINE *m_pLines; // Device variables
LONG m_FirstOpenedLine;
CString m_strLatestInfo;
CWnd *m_pMessageWnd;
};
#endif TAPICONNECTION_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?