USBDeviceImpl.h revision 7cec024c409b939108e8b7ef7085183f186accab
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ____H_USBDEVICEIMPL
#define ____H_USBDEVICEIMPL
#include "VirtualBoxBase.h"
#include "Collection.h"
#include "Logging.h"
/**
* Object class used for maintaining devices attached to a USB controller.
* Generally this contains much less information.
*/
{
OUSBDevice();
virtual ~OUSBDevice();
// public initializer/uninitializer for internal purposes only
// IUSBDevice properties
// public methods only for internal purposes
// for VirtualBoxSupportErrorInfoImpl
/** The UUID of this device. */
/** The vendor id of this USB device. */
/** The product id of this USB device. */
/** The product revision number of this USB device.
* (high byte = integer; low byte = decimal) */
/** The Manufacturer string. (Quite possibly NULL.) */
/** The Product string. (Quite possibly NULL.) */
/** The SerialNumber string. (Quite possibly NULL.) */
/** The host specific address of the device. */
/** The host port number. */
/** The major USB version number of the device. */
/** The major USB version number of the port the device is attached to. */
/** Remote (VRDP) or local device. */
};
{
return E_INVALIDARG;
if (!aDevice)
return E_POINTER;
{
++ it;
}
if (!found)
{
"Could not find a USB device with UUID {%s}"),
}
}
{
if (!aAddress)
return E_INVALIDARG;
if (!aDevice)
return E_POINTER;
{
++ it;
}
if (!found)
"Could not find a USB device with address '%ls'"),
aAddress);
}
#endif // ____H_USBDEVICEIMPL