// 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 "rpbactivex.h"

/////////////////////////////////////////////////////////////////////////////
// CRPBActiveX

IMPLEMENT_DYNCREATE(CRPBActiveX, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CRPBActiveX properties

CString CRPBActiveX::GetIPAddress()
{
	CString result;
	GetProperty(0x1, VT_BSTR, (void*)&result);
	return result;
}

void CRPBActiveX::SetIPAddress(LPCTSTR propVal)
{
	SetProperty(0x1, VT_BSTR, propVal);
}

long CRPBActiveX::GetPort()
{
	long result;
	GetProperty(0x2, VT_I4, (void*)&result);
	return result;
}

void CRPBActiveX::SetPort(long propVal)
{
	SetProperty(0x2, VT_I4, propVal);
}

CString CRPBActiveX::GetUserName()
{
	CString result;
	GetProperty(0x3, VT_BSTR, (void*)&result);
	return result;
}

void CRPBActiveX::SetUserName(LPCTSTR propVal)
{
	SetProperty(0x3, VT_BSTR, propVal);
}

CString CRPBActiveX::GetPassword()
{
	CString result;
	GetProperty(0x4, VT_BSTR, (void*)&result);
	return result;
}

void CRPBActiveX::SetPassword(LPCTSTR propVal)
{
	SetProperty(0x4, VT_BSTR, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CRPBActiveX operations

void CRPBActiveX::Connect()
{
	InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRPBActiveX::DisConnect()
{
	InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

long CRPBActiveX::OpenRecordByDateTime(LPCTSTR StartDateTime, LPCTSTR EndDateTime, long iCameraLow, long iCameraHigh)
{
	long result;
	static BYTE parms[] =
		VTS_BSTR VTS_BSTR VTS_I4 VTS_I4;
	InvokeHelper(0x7, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		StartDateTime, EndDateTime, iCameraLow, iCameraHigh);
	return result;
}

long CRPBActiveX::SetActiveView(long iView)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x8, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView);
	return result;
}

long CRPBActiveX::GetActiveView()
{
	long result;
	InvokeHelper(0x9, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

long CRPBActiveX::GetCameraIndexFromView(long iView)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0xa, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView);
	return result;
}

long CRPBActiveX::GetCameraCount()
{
	long result;
	InvokeHelper(0xb, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

CString CRPBActiveX::GetCameraName(long iCameraIndex)
{
	CString result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0xc, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		iCameraIndex);
	return result;
}

CString CRPBActiveX::GetCameraModel(long iCameraIndex)
{
	CString result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0xd, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		iCameraIndex);
	return result;
}

void CRPBActiveX::SetOSDConfig(long icmd, LPCTSTR FontStyle, long iFontSize, long iColorR, long iColorG, long iColorB, long iBColorR, long iBColorG, long iBColorB, long bHasEdge, long bBold, long iTransparency)
{
	static BYTE parms[] =
		VTS_I4 VTS_BSTR VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4;
	InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 icmd, FontStyle, iFontSize, iColorR, iColorG, iColorB, iBColorR, iBColorG, iBColorB, bHasEdge, bBold, iTransparency);
}

void CRPBActiveX::Play()
{
	InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRPBActiveX::Pause()
{
	InvokeHelper(0x10, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRPBActiveX::Stop()
{
	InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

long CRPBActiveX::SaveAvi(long iView, LPCTSTR StartDateTime, LPCTSTR EndDateTime, BOOL bExportAudio, BOOL bExportOSD, LPCTSTR FileName)
{
    long result;
	static BYTE parms[] =
		VTS_I4 VTS_BSTR VTS_BSTR VTS_BOOL VTS_BOOL VTS_BSTR;
	InvokeHelper(0x12, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
        iView, StartDateTime, EndDateTime, bExportAudio, bExportOSD, FileName);
	return result;
}

long CRPBActiveX::SaveOriginalAvi(long iView, LPCTSTR StartDateTime, LPCTSTR EndDateTime, BOOL bExportAudio, BOOL bExportOSD, LPCTSTR FileName)
{
    long result;
	static BYTE parms[] =
		VTS_I4 VTS_BSTR VTS_BSTR VTS_BOOL VTS_BOOL VTS_BSTR;
	InvokeHelper(0x23, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
        iView, StartDateTime, EndDateTime, bExportAudio, bExportOSD, FileName);
	return result;
}

long CRPBActiveX::SaveASF(long iView, LPCTSTR StartDateTime, LPCTSTR EndDateTime, BOOL bExportAudio, BOOL bExportOSD, long iProfile, LPCTSTR FileName)
{
    long result;
	static BYTE parms[] =
		VTS_I4 VTS_BSTR VTS_BSTR VTS_BOOL VTS_BOOL VTS_I4 VTS_BSTR;
	InvokeHelper(0x13, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
        iView, StartDateTime, EndDateTime, bExportAudio, bExportOSD, iProfile, FileName);
	return result;
}

long CRPBActiveX::SaveImage(long iView, LPCTSTR FileName)
{
    long result;
	static BYTE parms[] =
		VTS_I4  VTS_BSTR;
	InvokeHelper(0x14, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
        iView, FileName);
    return result;
}

void CRPBActiveX::StepForward()
{
	InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRPBActiveX::StepBackward()
{
	InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

long CRPBActiveX::Seek(LPCTSTR DateTime)
{
	long result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x17, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		DateTime);
	return result;
}

void CRPBActiveX::SpeedUp()
{
	InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRPBActiveX::SpeedDown()
{
	InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

CString CRPBActiveX::GetCurrDisplayTime()
{
	CString result;
	InvokeHelper(0x1a, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

void    CRPBActiveX::ChangeResolution(int iWidth, int iHeight)
{
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 iWidth, iHeight);
}

void CRPBActiveX::Previous()
{
	InvokeHelper(0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRPBActiveX::Next()
{
	InvokeHelper(0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

CString CRPBActiveX::GetPlayerState()
{
	CString result;
	InvokeHelper(0x1e, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

void CRPBActiveX::GetRecordDateList(LPCTSTR StartDateTime, LPCTSTR EndDateTime)
{
	static BYTE parms[] = VTS_BSTR VTS_BSTR;
	InvokeHelper(0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, StartDateTime, EndDateTime);
}

void CRPBActiveX::GetScheduleLogs(LPCTSTR DateTime)
{
	static BYTE parms[] = VTS_BSTR;
	InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, parms, DateTime);
}

void CRPBActiveX::GetRecordLogs(LPCTSTR DateTime)
{
	static BYTE parms[] = VTS_BSTR;
	InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, parms, DateTime);
}

void CRPBActiveX::QueryEvents(LPCTSTR StartDateTime, LPCTSTR EndDateTime, LPCTSTR DeviceType, long iCameraIndex, LPCTSTR EventType)
{
	static BYTE parms[] =
		VTS_BSTR VTS_BSTR VTS_BSTR VTS_I4 VTS_BSTR;
	InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
        StartDateTime, EndDateTime, DeviceType, iCameraIndex, EventType);
}
