USBDeviceImpl.cpp revision a126a5a0d184e3245a585414758011d1d095b35f
/* $Id$ */
/** @file
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2008 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 "USBDeviceImpl.h"
#include "AutoCaller.h"
#include "Logging.h"
// constructor / destructor
/////////////////////////////////////////////////////////////////////////////
{
return S_OK;
}
void OUSBDevice::FinalRelease()
{
uninit ();
}
// public initializer/uninitializer for internal purposes only
/////////////////////////////////////////////////////////////////////////////
/**
* Initializes the USB device object.
*
* @returns COM result indicator
* @param aUSBDevice The USB device (interface) to clone.
*/
{
/* Enclose the state transition NotReady->InInit->Ready */
AutoInitSpan autoInitSpan(this);
/* Confirm a successful initialization */
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.
*/
void OUSBDevice::uninit()
{
LogFlowThisFunc(("\n"));
/* Enclose the state transition Ready->InUninit->NotReady */
AutoUninitSpan autoUninitSpan(this);
if (autoUninitSpan.uninitDone())
return;
}
// IUSBDevice properties
/////////////////////////////////////////////////////////////////////////////
/**
* Returns the GUID.
*
* @returns COM status code
* @param aId Address of result variable.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
/**
* Returns the vendor Id.
*
* @returns COM status code
* @param aVendorId Where to store the vendor id.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
/**
* Returns the product Id.
*
* @returns COM status code
* @param aProductId Where to store the product id.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
/**
* Returns the revision BCD.
*
* @returns COM status code
* @param aRevision Where to store the revision BCD.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
/**
* Returns the manufacturer string.
*
* @returns COM status code
* @param aManufacturer Where to put the return string.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
/**
* Returns the product string.
*
* @returns COM status code
* @param aProduct Where to put the return string.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
/**
* Returns the serial number string.
*
* @returns COM status code
* @param aSerialNumber Where to put the return string.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
/**
* Returns the host specific device address.
*
* @returns COM status code
* @param aAddress Where to put the return string.
*/
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
{
AutoCaller autoCaller(this);
/* this is const, no need to lock */
return S_OK;
}
// private methods
/////////////////////////////////////////////////////////////////////////////
/* vi: set tabstop=4 shiftwidth=4 expandtab: */