RemoteUSBDeviceImpl.h revision f72cbd6a549c34992fa79cce84600fe2b92b3299
/* $Id$ */
/** @file
*
* VirtualBox IHostUSBDevice COM interface implementation
* for remote (VRDP) USB devices
*/
/*
* Copyright (C) 2006-2008 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_REMOTEUSBDEVICEIMPL
#define ____H_REMOTEUSBDEVICEIMPL
#include "VirtualBoxBase.h"
#include "Collection.h"
struct _VRDPUSBDEVICEDESC;
typedef _VRDPUSBDEVICEDESC VRDPUSBDEVICEDESC;
{
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// IUSBDevice properties
// IHostUSBDevice properties
// public methods only for internal purposes
{
if (aCaptured)
{
}
else
{
}
}
// for VirtualBoxSupportErrorInfoImpl
struct Data
{
const Bstr manufacturer;
const Bstr serialNumber;
const uint16_t portVersion;
bool dirty;
};
};
COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_BEGIN (ComObjPtr <RemoteUSBDevice>, IHostUSBDevice, RemoteUSBDevice)
{
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);
}
COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_END (ComObjPtr <RemoteUSBDevice>, IHostUSBDevice, RemoteUSBDevice)
#endif // ____H_REMOTEUSBDEVICEIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */