📄 voiceangel.cpp
字号:
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "voiceangel.h"
// Dispatch interfaces referenced by this interface
#include "font.h"
/////////////////////////////////////////////////////////////////////////////
// CVoiceAngel
IMPLEMENT_DYNCREATE(CVoiceAngel, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CVoiceAngel properties
BOOL CVoiceAngel::GetShowWaveForm()
{
BOOL result;
GetProperty(0x1, VT_BOOL, (void*)&result);
return result;
}
void CVoiceAngel::SetShowWaveForm(BOOL propVal)
{
SetProperty(0x1, VT_BOOL, propVal);
}
short CVoiceAngel::GetLineForShowWave()
{
short result;
GetProperty(0x2, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetLineForShowWave(short propVal)
{
SetProperty(0x2, VT_I2, propVal);
}
long CVoiceAngel::GetSignalUpperFrequency()
{
long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetSignalUpperFrequency(long propVal)
{
SetProperty(0x3, VT_I4, propVal);
}
long CVoiceAngel::GetSignalLowerFrequency()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetSignalLowerFrequency(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
short CVoiceAngel::GetSilenceSwing()
{
short result;
GetProperty(0x5, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetSilenceSwing(short propVal)
{
SetProperty(0x5, VT_I2, propVal);
}
short CVoiceAngel::GetOperateMode()
{
short result;
GetProperty(0x6, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetOperateMode(short propVal)
{
SetProperty(0x6, VT_I2, propVal);
}
short CVoiceAngel::GetRingBackSignalUpperDuration()
{
short result;
GetProperty(0x7, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetRingBackSignalUpperDuration(short propVal)
{
SetProperty(0x7, VT_I2, propVal);
}
short CVoiceAngel::GetRingBackSignalLowerDuration()
{
short result;
GetProperty(0x8, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetRingBackSignalLowerDuration(short propVal)
{
SetProperty(0x8, VT_I2, propVal);
}
short CVoiceAngel::GetRingBackSilenceUpperDuration()
{
short result;
GetProperty(0x9, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetRingBackSilenceUpperDuration(short propVal)
{
SetProperty(0x9, VT_I2, propVal);
}
short CVoiceAngel::GetRingBackSilenceLowerDuration()
{
short result;
GetProperty(0xa, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetRingBackSilenceLowerDuration(short propVal)
{
SetProperty(0xa, VT_I2, propVal);
}
short CVoiceAngel::GetBusySignalUpperDuration()
{
short result;
GetProperty(0xb, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetBusySignalUpperDuration(short propVal)
{
SetProperty(0xb, VT_I2, propVal);
}
short CVoiceAngel::GetBusySignalLowerDuration()
{
short result;
GetProperty(0xc, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetBusySignalLowerDuration(short propVal)
{
SetProperty(0xc, VT_I2, propVal);
}
short CVoiceAngel::GetBusySilenceUpperDuration()
{
short result;
GetProperty(0xd, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetBusySilenceUpperDuration(short propVal)
{
SetProperty(0xd, VT_I2, propVal);
}
short CVoiceAngel::GetBusySilenceLowerDuration()
{
short result;
GetProperty(0xe, VT_I2, (void*)&result);
return result;
}
void CVoiceAngel::SetBusySilenceLowerDuration(short propVal)
{
SetProperty(0xe, VT_I2, propVal);
}
long CVoiceAngel::GetPlayBufferSize()
{
long result;
GetProperty(0xf, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetPlayBufferSize(long propVal)
{
SetProperty(0xf, VT_I4, propVal);
}
long CVoiceAngel::GetRecordBufferSize()
{
long result;
GetProperty(0x10, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetRecordBufferSize(long propVal)
{
SetProperty(0x10, VT_I4, propVal);
}
COleFont CVoiceAngel::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(0x11, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CVoiceAngel::SetFont(LPDISPATCH propVal)
{
SetProperty(0x11, VT_DISPATCH, propVal);
}
unsigned long CVoiceAngel::GetBorderColor()
{
unsigned long result;
GetProperty(0x12, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetBorderColor(unsigned long propVal)
{
SetProperty(0x12, VT_I4, propVal);
}
long CVoiceAngel::GetBorderWidth()
{
long result;
GetProperty(0x13, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetBorderWidth(long propVal)
{
SetProperty(0x13, VT_I4, propVal);
}
long CVoiceAngel::GetCenterLineWidth()
{
long result;
GetProperty(0x14, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetCenterLineWidth(long propVal)
{
SetProperty(0x14, VT_I4, propVal);
}
unsigned long CVoiceAngel::GetCenterLineColor()
{
unsigned long result;
GetProperty(0x15, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetCenterLineColor(unsigned long propVal)
{
SetProperty(0x15, VT_I4, propVal);
}
long CVoiceAngel::GetWaveCurveWidth()
{
long result;
GetProperty(0x16, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetWaveCurveWidth(long propVal)
{
SetProperty(0x16, VT_I4, propVal);
}
unsigned long CVoiceAngel::GetWaveCurveColor()
{
unsigned long result;
GetProperty(0x17, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetWaveCurveColor(unsigned long propVal)
{
SetProperty(0x17, VT_I4, propVal);
}
unsigned long CVoiceAngel::GetForeColor()
{
unsigned long result;
GetProperty(0x18, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetForeColor(unsigned long propVal)
{
SetProperty(0x18, VT_I4, propVal);
}
unsigned long CVoiceAngel::GetBackColor()
{
unsigned long result;
GetProperty(0x19, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetBackColor(unsigned long propVal)
{
SetProperty(0x19, VT_I4, propVal);
}
long CVoiceAngel::GetBearerMode()
{
long result;
GetProperty(0x1a, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetBearerMode(long propVal)
{
SetProperty(0x1a, VT_I4, propVal);
}
long CVoiceAngel::GetMediaMode()
{
long result;
GetProperty(0x1b, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetMediaMode(long propVal)
{
SetProperty(0x1b, VT_I4, propVal);
}
long CVoiceAngel::GetTimeOutForResponseAfterDialing()
{
long result;
GetProperty(0x1c, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetTimeOutForResponseAfterDialing(long propVal)
{
SetProperty(0x1c, VT_I4, propVal);
}
CString CVoiceAngel::GetOtherParams()
{
CString result;
GetProperty(0x1d, VT_BSTR, (void*)&result);
return result;
}
void CVoiceAngel::SetOtherParams(LPCTSTR propVal)
{
SetProperty(0x1d, VT_BSTR, propVal);
}
CString CVoiceAngel::GetCurrentLineName()
{
CString result;
GetProperty(0x1e, VT_BSTR, (void*)&result);
return result;
}
void CVoiceAngel::SetCurrentLineName(LPCTSTR propVal)
{
SetProperty(0x1e, VT_BSTR, propVal);
}
long CVoiceAngel::GetCurrentLineIndex()
{
long result;
GetProperty(0x1f, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetCurrentLineIndex(long propVal)
{
SetProperty(0x1f, VT_I4, propVal);
}
long CVoiceAngel::GetIgnoreNoiseUpperFreq()
{
long result;
GetProperty(0x20, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetIgnoreNoiseUpperFreq(long propVal)
{
SetProperty(0x20, VT_I4, propVal);
}
long CVoiceAngel::GetIgnoreNoiseLowerFreq()
{
long result;
GetProperty(0x21, VT_I4, (void*)&result);
return result;
}
void CVoiceAngel::SetIgnoreNoiseLowerFreq(long propVal)
{
SetProperty(0x21, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CVoiceAngel operations
void CVoiceAngel::Dial(LPCTSTR telNum, long TimeOutSeconds, BOOL bAnalyzeRingBackTone, LPCTSTR WaveFileToRecordRingBackTone, BOOL bOfferWaveData)
{
static BYTE parms[] =
VTS_BSTR VTS_I4 VTS_BOOL VTS_BSTR VTS_BOOL;
InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
telNum, TimeOutSeconds, bAnalyzeRingBackTone, WaveFileToRecordRingBackTone, bOfferWaveData);
}
long CVoiceAngel::GetLineCount()
{
long result;
InvokeHelper(0x23, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long CVoiceAngel::GetErrorNumber()
{
long result;
InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
CString CVoiceAngel::GetErrorDescribe()
{
CString result;
InvokeHelper(0x25, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
void CVoiceAngel::OpenWaveFile(LPCTSTR fileName)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x26, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
fileName);
}
void CVoiceAngel::CloseWaveFile()
{
InvokeHelper(0x27, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CVoiceAngel::Drop()
{
InvokeHelper(0x28, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CVoiceAngel::Close()
{
InvokeHelper(0x29, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CVoiceAngel::Answer()
{
InvokeHelper(0x2a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CVoiceAngel::ShutDown()
{
InvokeHelper(0x2b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CVoiceAngel::Open()
{
InvokeHelper(0x2c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CVoiceAngel::NewWaveFile(LPCTSTR fileName, short nChannels, short nSamsPerSec, short nBitsPerSam)
{
static BYTE parms[] =
VTS_BSTR VTS_I2 VTS_I2 VTS_I2;
InvokeHelper(0x2d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
fileName, nChannels, nSamsPerSec, nBitsPerSam);
}
void CVoiceAngel::AppendWaveFile(LPCTSTR fileName)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x2e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
fileName);
}
void CVoiceAngel::GenerateDigits(LPCTSTR Digits)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x2f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Digits);
}
void CVoiceAngel::GatherDigits(short DigitsCount, LPCTSTR TerminateDigit, long FirstDigitTimeOut, long InterDigitTimeOut)
{
static BYTE parms[] =
VTS_I2 VTS_BSTR VTS_I4 VTS_I4;
InvokeHelper(0x30, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
DigitsCount, TerminateDigit, FirstDigitTimeOut, InterDigitTimeOut);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -