/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include "GuestOSTypeImpl.h"
#include "AutoCaller.h"
#include "Logging.h"
// constructor / destructor
/////////////////////////////////////////////////////////////////////////////
, mHDDSize(0), mMonitorCount(0)
, mNumSerialEnabled(0)
{
}
{
}
{
return BaseFinalConstruct();
}
{
uninit();
}
// public initializer/uninitializer for internal purposes only
/////////////////////////////////////////////////////////////////////////////
/**
* Initializes the guest OS type object.
*
* @returns COM result indicator
* @param aFamilyId os family short name string
* @param aFamilyDescription os family name string
* @param aId os short name string
* @param aDescription os name string
* @param aOSType global OS type ID
* @param aOSHint os configuration hint
* @param aRAMSize recommended RAM size in megabytes
* @param aVRAMSize recommended video memory size in megabytes
* @param aHDDSize recommended HDD size in bytes
*/
HRESULT GuestOSType::init(const Global::OSType &ostype)/*const char *aFamilyId, const char *aFamilyDescription,
const char *aId, const char *aDescription,
VBOXOSTYPE aOSType, uint32_t aOSHint,
uint32_t aRAMSize, uint32_t aVRAMSize, uint64_t aHDDSize,
NetworkAdapterType_T aNetworkAdapterType,
uint32_t aNumSerialEnabled,
StorageControllerType_T aDVDStorageControllerType,
StorageBus_T aDVDStorageBusType,
StorageControllerType_T aHDStorageControllerType,
StorageBus_T aHDStorageBusType,
ChipsetType_T aChipsetType
AudioControllerType_T aAudioControllerType*/
{
#if 0
LogFlowThisFunc(("aFamilyId='%s', aFamilyDescription='%s', "
"aId='%s', aDescription='%s', "
"aType=%d, aOSHint=%x, "
"aRAMSize=%d, aVRAMSize=%d, aHDDSize=%lld, "
"aNetworkAdapterType=%d, aNumSerialEnabled=%d, "
"aStorageControllerType=%d\n",
#endif
ComAssertRet(ostype.familyId && ostype.familyDescription && ostype.id && ostype.description, E_INVALIDARG);
/* Enclose the state transition NotReady->InInit->Ready */
AutoInitSpan autoInitSpan(this);
/* Confirm a successful initialization when it's the case */
return S_OK;
}
/**
* Uninitializes the instance and sets the ready flag to FALSE.
* Called either from FinalRelease() or by the parent when it gets destroyed.
*/
{
/* Enclose the state transition Ready->InUninit->NotReady */
AutoUninitSpan autoUninitSpan(this);
if (autoUninitSpan.uninitDone())
return;
}
// IGuestOSType properties
/////////////////////////////////////////////////////////////////////////////
{
/* mFamilyID is constant during life time, no need to lock */
return S_OK;
}
{
/* mFamilyDescription is constant during life time, no need to lock */
return S_OK;
}
{
/* mID is constant during life time, no need to lock */
return S_OK;
}
{
/* mDescription is constant during life time, no need to lock */
return S_OK;
}
{
/* mIs64Bit is constant during life time, no need to lock */
return S_OK;
}
{
/* mRecommendedIOAPIC is constant during life time, no need to lock */
return S_OK;
}
{
/* mRecommendedVirtEx is constant during life time, no need to lock */
return S_OK;
}
{
/* mRAMSize is constant during life time, no need to lock */
return S_OK;
}
{
/* mVRAMSize is constant during life time, no need to lock */
return S_OK;
}
{
/* Constant during life time, no need to lock */
return S_OK;
}
{
/* Constant during life time, no need to lock */
return S_OK;
}
{
/* mHDDSize is constant during life time, no need to lock */
return S_OK;
}
{
/* mNetworkAdapterType is constant during life time, no need to lock */
return S_OK;
}
{
/* recommended PAE is constant during life time, no need to lock */
return S_OK;
}
{
/* firmware type is constant during life time, no need to lock */
if (mOSHint & VBOXOSHINT_EFI)
else
return S_OK;
}
HRESULT GuestOSType::getRecommendedDVDStorageController(StorageControllerType_T *aStorageControllerType)
{
/* storage controller type is constant during life time, no need to lock */
return S_OK;
}
{
/* storage controller type is constant during life time, no need to lock */
return S_OK;
}
HRESULT GuestOSType::getRecommendedHDStorageController(StorageControllerType_T *aStorageControllerType)
{
/* storage controller type is constant during life time, no need to lock */
return S_OK;
}
{
/* storage controller type is constant during life time, no need to lock */
return S_OK;
}
{
/* HID type is constant during life time, no need to lock */
return S_OK;
}
{
/* HPET recommendation is constant during life time, no need to lock */
return S_OK;
}
{
/* HID type is constant during life time, no need to lock */
return S_OK;
}
{
/* Value is constant during life time, no need to lock */
return S_OK;
}
{
/* chipset type is constant during life time, no need to lock */
return S_OK;
}
{
return S_OK;
}
{
/* Value is constant during life time, no need to lock */
return S_OK;
}
{
/* Value is constant during life time, no need to lock */
return S_OK;
}
{
/* recommended triple fault behavior is constant during life time, no need to lock */
return S_OK;
}
/* vi: set tabstop=4 shiftwidth=4 expandtab: */