Changeset 17684 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 11, 2009 12:15:33 PM (16 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r17669 r17684 116 116 STDMETHOD(COMGETTER(Debugger)) (IMachineDebugger **aDebugger); 117 117 STDMETHOD(COMGETTER(USBDevices)) (ComSafeArrayOut (IUSBDevice *, aUSBDevices)); 118 STDMETHOD(COMGETTER(RemoteUSBDevices)) ( IHostUSBDeviceCollection **aRemoteUSBDevices);118 STDMETHOD(COMGETTER(RemoteUSBDevices)) (ComSafeArrayOut (IHostUSBDevice *, aRemoteUSBDevices)); 119 119 STDMETHOD(COMGETTER(RemoteDisplayInfo)) (IRemoteDisplayInfo **aRemoteDisplayInfo); 120 120 STDMETHOD(COMGETTER(SharedFolders)) (ComSafeArrayOut (ISharedFolder *, aSharedFolders)); -
trunk/src/VBox/Main/include/GuestOSTypeImpl.h
r16971 r17684 24 24 25 25 #include "VirtualBoxBase.h" 26 #include "Collection.h"27 26 #include "Global.h" 28 27 -
trunk/src/VBox/Main/include/HostImpl.h
r17679 r17684 79 79 STDMETHOD(COMGETTER(DVDDrives))(ComSafeArrayOut (IHostDVDDrive*, drives)); 80 80 STDMETHOD(COMGETTER(FloppyDrives))(ComSafeArrayOut (IHostFloppyDrive*, drives)); 81 STDMETHOD(COMGETTER(USBDevices))( IHostUSBDeviceCollection **aUSBDevices);81 STDMETHOD(COMGETTER(USBDevices))(ComSafeArrayOut (IHostUSBDevice *, aUSBDevices)); 82 82 STDMETHOD(COMGETTER(USBDeviceFilters))(ComSafeArrayOut (IHostUSBDeviceFilter *, aUSBDeviceFilters)); 83 83 STDMETHOD(COMGETTER(NetworkInterfaces))(ComSafeArrayOut (IHostNetworkInterface *, aNetworkInterfaces)); … … 111 111 STDMETHOD(FindHostNetworkInterfaceById) (IN_GUID id, IHostNetworkInterface **networkInterface); 112 112 STDMETHOD(FindHostNetworkInterfacesOfType) (HostNetworkInterfaceType_T type, ComSafeArrayOut (IHostNetworkInterface *, aNetworkInterfaces)); 113 STDMETHOD(FindUSBDeviceByAddress) (IN_BSTR aAddress, IHostUSBDevice **aDevice); 114 STDMETHOD(FindUSBDeviceById) (IN_GUID aId, IHostUSBDevice **aDevice); 113 115 114 116 // public methods only for internal purposes -
trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h
r17613 r17684 7 7 8 8 /* 9 * Copyright (C) 2006-200 8Sun Microsystems, Inc.9 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 26 26 27 27 #include "VirtualBoxBase.h" 28 #include "Collection.h"29 28 #include "VirtualBoxImpl.h" 30 29 -
trunk/src/VBox/Main/include/MachineImpl.h
r17673 r17684 7 7 8 8 /* 9 * Copyright (C) 2006-200 7Sun Microsystems, Inc.9 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 32 32 #include "FloppyDriveImpl.h" 33 33 #include "HardDiskAttachmentImpl.h" 34 #include "Collection.h"35 34 #include "NetworkAdapterImpl.h" 36 35 #include "AudioAdapterImpl.h" -
trunk/src/VBox/Main/include/NetworkAdapterImpl.h
r17387 r17684 7 7 8 8 /* 9 * Copyright (C) 2006-200 7Sun Microsystems, Inc.9 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 26 26 27 27 #include "VirtualBoxBase.h" 28 #include "Collection.h"29 28 30 29 class Machine; -
trunk/src/VBox/Main/include/ProgressImpl.h
r16707 r17684 6 6 7 7 /* 8 * Copyright (C) 2006-200 8Sun Microsystems, Inc.8 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 25 25 26 26 #include "VirtualBoxBase.h" 27 #include "Collection.h"28 27 29 28 #include <VBox/com/SupportErrorInfo.h> -
trunk/src/VBox/Main/include/RemoteUSBDeviceImpl.h
r15051 r17684 8 8 9 9 /* 10 * Copyright (C) 2006-200 8Sun Microsystems, Inc.10 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 11 11 * 12 12 * This file is part of VirtualBox Open Source Edition (OSE), as … … 27 27 28 28 #include "VirtualBoxBase.h" 29 #include "Collection.h"30 29 31 30 struct _VRDPUSBDEVICEDESC; … … 138 137 }; 139 138 140 COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_BEGIN (ComObjPtr <RemoteUSBDevice>, IHostUSBDevice, RemoteUSBDevice)141 142 STDMETHOD(FindById) (IN_GUID aId, IHostUSBDevice **aDevice)143 {144 Guid idToFind = aId;145 if (idToFind.isEmpty())146 return E_INVALIDARG;147 if (!aDevice)148 return E_POINTER;149 150 *aDevice = NULL;151 Vector::value_type found;152 Vector::iterator it = vec.begin();153 while (!found && it != vec.end())154 {155 Guid id;156 (*it)->COMGETTER(Id) (id.asOutParam());157 if (id == idToFind)158 found = *it;159 ++ it;160 }161 162 if (!found)163 return setError (E_INVALIDARG, RemoteUSBDeviceCollection::tr (164 "Could not find a USB device with UUID {%s}"),165 idToFind.toString().raw());166 167 return found.queryInterfaceTo (aDevice);168 }169 170 STDMETHOD(FindByAddress) (IN_BSTR aAddress, IHostUSBDevice **aDevice)171 {172 if (!aAddress)173 return E_INVALIDARG;174 if (!aDevice)175 return E_POINTER;176 177 *aDevice = NULL;178 Vector::value_type found;179 Vector::iterator it = vec.begin();180 while (!found && it != vec.end())181 {182 Bstr address;183 (*it)->COMGETTER(Address) (address.asOutParam());184 if (address == aAddress)185 found = *it;186 ++ it;187 }188 189 if (!found)190 return setError (E_INVALIDARG, RemoteUSBDeviceCollection::tr (191 "Could not find a USB device with address '%ls'"),192 aAddress);193 194 return found.queryInterfaceTo (aDevice);195 }196 197 COM_DECL_READONLY_ENUM_AND_COLLECTION_EX_END (ComObjPtr <RemoteUSBDevice>, IHostUSBDevice, RemoteUSBDevice)198 199 200 139 #endif // ____H_REMOTEUSBDEVICEIMPL 201 140 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/include/SharedFolderImpl.h
r16966 r17684 5 5 6 6 /* 7 * Copyright (C) 2006-200 7Sun Microsystems, Inc.7 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 24 24 25 25 #include "VirtualBoxBase.h" 26 #include "Collection.h"27 26 #include <VBox/shflsvc.h> 28 27 -
trunk/src/VBox/Main/include/SnapshotImpl.h
r17260 r17684 5 5 6 6 /* 7 * Copyright (C) 2006-200 7Sun Microsystems, Inc.7 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 24 24 25 25 #include "VirtualBoxBase.h" 26 #include "Collection.h"27 26 28 27 #include <iprt/time.h>
Note:
See TracChangeset
for help on using the changeset viewer.