📄 cavdevice.cpp
字号:
//
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -