HostUSBDeviceImpl.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/** @file
*
* VirtualBox IHostUSBDevice COM interface implementation
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* 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 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.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#ifndef ____H_HOSTUSBDEVICEIMPL
#define ____H_HOSTUSBDEVICEIMPL
#include "VirtualBoxBase.h"
#include "USBDeviceFilterImpl.h"
/* #include "USBProxyService.h" circular on Host/HostUSBDevice, the includer must include this. */
#include "Collection.h"
/**
* Object class used for the Host USBDevices property.
*/
{
virtual ~HostUSBDevice();
// public initializer/uninitializer for internal purposes only
// IUSBDevice properties
// IHostUSBDevice properties
// public methods only for internal purposes
void setIgnored();
int setHostDriven();
int reset();
// for VirtualBoxSupportErrorInfoImpl
bool mIgnored;
/** Pointer to the USB Proxy Service instance. */
/** Pointer to the USB Device structure owned by this device.
* Only used for host devices. */
};
{
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_HOSTUSBDEVICEIMPL