HostImpl.h revision 4b8518be25a866f7de85889a2d827d7a479e1411
/* $Id$ */
/** @file
* Implementation of IHost.
*/
/*
* Copyright (C) 2006-2012 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.
*/
#ifndef ____H_HOSTIMPL
#define ____H_HOSTIMPL
#include "HostWrap.h"
{
struct Host;
}
#include <list>
{
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// public methods only for internal purposes
/**
* Override of the default locking class to be used for validating lock
* order with the standard member lock handle.
*/
{
return LOCKCLASS_HOSTOBJECT;
}
HRESULT i_findHostDriveById(DeviceType_T mediumType, const Guid &uuid, bool fRefresh, ComObjPtr<Medium> &pMedium);
HRESULT i_findHostDriveByName(DeviceType_T mediumType, const Utf8Str &strLocationFull, bool fRefresh, ComObjPtr<Medium> &pMedium);
#ifdef VBOX_WITH_USB
/** Must be called from under this object's lock. */
VirtualBox* i_parent();
#endif /* !VBOX_WITH_USB */
// wrapped IHost properties
// wrapped IHost methods
BOOL *aSupported);
// Internal Methods.
HRESULT i_findHostDriveByNameOrId(DeviceType_T mediumType, const Utf8Str &strNameOrId, ComObjPtr<Medium> &pMedium);
#if defined(RT_OS_SOLARIS) && defined(VBOX_USE_LIBHAL)
#endif
#if defined(RT_OS_SOLARIS)
#endif
#ifndef RT_OS_WINDOWS
#else
#endif
#ifdef VBOX_WITH_RESOURCE_USAGE_API
#endif /* VBOX_WITH_RESOURCE_USAGE_API */
struct Data; // opaque data structure, defined in HostImpl.cpp
Data *m;
};
#endif // ____H_HOSTIMPL