TapiLine.h.svn-base
上传用户:c1686688
上传日期:2015-06-15
资源大小:73k
文件大小:1k
- // TapiCall.h: interface for the CTapiCall class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TAPILINE_H__64E4FCD7_09C8_419D_ABF4_6D864361094B__INCLUDED_)
- #define AFX_TAPILINE_H__64E4FCD7_09C8_419D_ABF4_6D864361094B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //#define TAPI_CURRENT_VERSION 0x00010004
- #define TAPI_CURRENT_VERSION 0x00020000
- #include <tapi.h>
-
- class CTapiLine
- {
- protected:
- HLINEAPP m_hLineApp; // application's usage handle for TAPI
- HLINE m_hLine;
- HCALL m_hCall;
- int m_nDevID;
- HANDLE m_hLineEvent; // line change events
- DWORD m_dwLineMsg;
- bool m_bConnected;
- HANDLE m_hEventFromThread;
- HANDLE m_hLineMsgThread; // TAPI Event monitoring thread.
- bool m_bStopLineEventThread;
- static DWORD WINAPI LineEventThread(LPVOID lpVoid);
- long m_lEventThreadResult;
- public:
- HANDLE GetHandle(const char *szClassType, long *lError);
- int PickupIncomingCall();
- void GetErrorString(int nError, char *&szErrText);
- int MakeOutgoingCall(const char *szAddress);
- int GetIncomingCall();
- int Close();
- int Open(int nMode = 0);
- CTapiLine();
- virtual ~CTapiLine();
- };
- #endif // !defined(AFX_TAPILINE_H__64E4FCD7_09C8_419D_ABF4_6D864361094B__INCLUDED_)