📄 tapiconnection.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -