cavdevice.cpp

来自「聊天室」· C++ 代码 · 共 101 行

CPP
101
字号
//
// CAVDevice.cpp
//

/*-----------------------------------------------------*\
			HQ Tech, Make Technology Easy!       
 More information, please go to http://hqtech.nease.net.
/*-----------------------------------------------------*/

#include "stdafx.h"
#include "CAVDevice.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////
CAVDevice::CAVDevice()
{
	mType = DT_Unknown;
	mFriendlyName    = "";
	mDisplayName     = "";
	mVideoResolution = 0;
	mAudioConnector  = 0;
}

CAVDevice::~CAVDevice()
{
}

CAVDevice& CAVDevice::operator = (const CAVDevice& inDevice)
{
	mType         = inDevice.mType;
	mFriendlyName = inDevice.mFriendlyName;
	mDisplayName  = inDevice.mDisplayName;
	mVideoResolution = inDevice.mVideoResolution;
	mAudioConnector  = inDevice.mAudioConnector;
	return *this;
}

void CAVDevice::SetDevideType(Device_Type inType)
{
	mType = inType;
}

Device_Type CAVDevice::GetDeviceType(void)
{
	return mType;
}

BOOL CAVDevice::IsDVDevice(void)
{
	return (mType == DT_DV);
}

BOOL CAVDevice::IsDeviceAvailable(void)
{
	return (mType != DT_Unknown && mDisplayName != "");
}

void CAVDevice::SetDeviceFriendlyName(const char * inName)
{
	mFriendlyName = inName;
}

CString CAVDevice::GetDeviceFriendlyName(void)
{
	return mFriendlyName;
}

void CAVDevice::SetDeviceDisplayName(const char * inName)
{
	mDisplayName = inName;
}

CString CAVDevice::GetDeviceDisplayName(void)
{
	return mDisplayName;
}

void CAVDevice::SetVideoResolution(long inResolution)
{
	mVideoResolution = inResolution;
}

long CAVDevice::GetVideoResolution(void)
{
	return mVideoResolution;
}

void CAVDevice::SetAudioConnector(long inConnector)
{
	mAudioConnector = inConnector;
}

long CAVDevice::GetAudioConnector(void)
{
	return mAudioConnector;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?