📄 modem_ovr.cpp
字号:
//---------------------------------------------------------------------------
#include <string>
using namespace std;
#include <vcl\vcl.h>
#pragma hdrstop
#include "Modem_Ovr.h"
//---------------------------------------------------------------------------
bool Modem_Ovr::HandleReadEvent(OVERLAPPED *overlappedRead, unsigned char *theBuffer,
long theBufferSize, unsigned long *theBytesRead, char *theOpenTime, char *theCloseTime)
{
return(Imp.HandleReadEvent(overlappedRead, theBuffer, theBufferSize, theBytesRead, theOpenTime, theCloseTime));
}
bool Modem_Ovr::SetupReadEvent(OVERLAPPED *overlappedRead, unsigned char *theBuffer,
long theBufferSize, unsigned long *theBytesRead, char *theOpenTime, char *theCloseTime)
{
return(Imp.SetupReadEvent(overlappedRead, theBuffer, theBufferSize, theBytesRead, theOpenTime, theCloseTime));
}
bool Modem_Ovr::GetModemConfig(COMMCONFIG *modemConfig)
{
return(Imp.GetModemConfig(modemConfig));
}
bool Modem_Ovr::SetModemConfig(COMMCONFIG modemConfig)
{
return(Imp.SetModemConfig(modemConfig));
}
bool Modem_Ovr::GetModemProperties(COMMPROP *modemProp)
{
return(Imp.GetModemProperties(modemProp));
}
void Modem_Ovr::SetBaudRate(long theBaudRate)
{
Imp.SetBaudRate(theBaudRate);
}
void Modem_Ovr::SetPhoneNumber(char * thePhoneNumber)
{
Imp.SetPhoneNumber(thePhoneNumber);
}
void Modem_Ovr::GetBaudRate(long *theBaudRate)
{
Imp.GetBaudRate(theBaudRate);
}
void Modem_Ovr::GetPhoneNumber(char ** thePhoneNumber)
{
Imp.GetPhoneNumber(thePhoneNumber);
}
void Modem_Ovr::GetPhoneNumber(string &thePhoneNumber)
{
Imp.GetPhoneNumber(thePhoneNumber);
}
bool Modem_Ovr::CheckForDataAccess()
{
return(Imp.CheckForDataAccess());
}
bool Modem_Ovr::Connect()
{
return(Imp.Connect());
}
bool Modem_Ovr::InitializeTAPI(HWND hParentWnd)
{
return(Imp.InitializeTAPI(hParentWnd));
}
bool Modem_Ovr::DialCall()
{
return(Imp.DialCall());
}
void Modem_Ovr::PostHangupCall()
{
Imp.PostHangupCall();
}
HWND Modem_Ovr::GetMainWindow() // Apps main window.
{
return(Imp.GetMainWindow());
}
void Modem_Ovr::SetMainWindow(HWND theMainWindow)
{
Imp.SetMainWindow(theMainWindow);
}
bool Modem_Ovr::WaitForConnection(char ** connectName)
{
return(Imp.WaitForConnection(connectName));
}
void Modem_Ovr::Open(char *theCommName, short theBaudRate, short theDataBits, char theParity, short theStopBits) throw(SP_Exception)
{
Imp.Open(theCommName, theBaudRate, theDataBits, theParity, theStopBits);
}
void Modem_Ovr::Open(char *theCommName)
{
Imp.Open(theCommName);
}
void Modem_Ovr::ReadBuffer(unsigned char *theBuffer, long *theBytesRead, long theBytestoRead, char *theOpenTime, char *theCloseTime, bool newRead)
{
// Imp.ReadBuffer( theBuffer, theBytesRead, theBytestoRead, theOpenTime, theCloseTime, newRead);
}
void Modem_Ovr::WriteBuffer(unsigned char *theBuffer, long theBufferLength) throw(SP_Exception)
{
Imp.WriteBuffer(theBuffer, theBufferLength);
}
void Modem_Ovr::Close()
{
Imp.Close();
}
Modem_Ovr::~Modem_Ovr()
{
// delete Imp;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -