Changeset 41520 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- May 31, 2012 1:43:06 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78283
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/USBControllerImpl.h
r35638 r41520 7 7 8 8 /* 9 * Copyright (C) 200 6-2007Oracle Corporation9 * Copyright (C) 2005-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 38 38 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(USBController, IUSBController) 39 39 40 DECLARE_NOT_AGGREGATABLE 40 DECLARE_NOT_AGGREGATABLE(USBController) 41 41 42 42 DECLARE_PROTECT_FINAL_CONSTRUCT() 43 43 44 44 BEGIN_COM_MAP(USBController) 45 VBOX_DEFAULT_INTERFACE_ENTRIES 45 VBOX_DEFAULT_INTERFACE_ENTRIES(IUSBController) 46 46 END_COM_MAP() 47 47 48 DECLARE_EMPTY_CTOR_DTOR 48 DECLARE_EMPTY_CTOR_DTOR(USBController) 49 49 50 50 HRESULT FinalConstruct(); … … 52 52 53 53 // public initializer/uninitializer for internal purposes only 54 HRESULT init 55 HRESULT init 56 HRESULT initCopy 54 HRESULT init(Machine *aParent); 55 HRESULT init(Machine *aParent, USBController *aThat); 56 HRESULT initCopy(Machine *aParent, USBController *aThat); 57 57 void uninit(); 58 58 59 59 // IUSBController properties 60 STDMETHOD(COMGETTER(Enabled)) 61 STDMETHOD(COMSETTER(Enabled)) 62 STDMETHOD(COMGETTER(EnabledEhci)) 63 STDMETHOD(COMSETTER(EnabledEhci)) 64 STDMETHOD(COMGETTER(ProxyAvailable)) 65 STDMETHOD(COMGETTER(USBStandard)) 66 STDMETHOD(COMGETTER(DeviceFilters)) (ComSafeArrayOut(IUSBDeviceFilter *, aDevicesFilters));60 STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled); 61 STDMETHOD(COMSETTER(Enabled))(BOOL aEnabled); 62 STDMETHOD(COMGETTER(EnabledEhci))(BOOL *aEnabled); 63 STDMETHOD(COMSETTER(EnabledEhci))(BOOL aEnabled); 64 STDMETHOD(COMGETTER(ProxyAvailable))(BOOL *aEnabled); 65 STDMETHOD(COMGETTER(USBStandard))(USHORT *aUSBStandard); 66 STDMETHOD(COMGETTER(DeviceFilters))(ComSafeArrayOut(IUSBDeviceFilter *, aDevicesFilters)); 67 67 68 68 // IUSBController methods 69 STDMETHOD(CreateDeviceFilter) 70 STDMETHOD(InsertDeviceFilter) 71 STDMETHOD(RemoveDeviceFilter) 69 STDMETHOD(CreateDeviceFilter)(IN_BSTR aName, IUSBDeviceFilter **aFilter); 70 STDMETHOD(InsertDeviceFilter)(ULONG aPosition, IUSBDeviceFilter *aFilter); 71 STDMETHOD(RemoveDeviceFilter)(ULONG aPosition, IUSBDeviceFilter **aFilter); 72 72 73 73 // public methods only for internal purposes … … 78 78 void rollback(); 79 79 void commit(); 80 void copyFrom 80 void copyFrom(USBController *aThat); 81 81 82 82 #ifdef VBOX_WITH_USB 83 HRESULT onDeviceFilterChange 84 83 HRESULT onDeviceFilterChange(USBDeviceFilter *aFilter, 84 BOOL aActiveChanged = FALSE); 85 85 86 bool hasMatchingFilter 87 bool hasMatchingFilter 86 bool hasMatchingFilter(const ComObjPtr<HostUSBDevice> &aDevice, ULONG *aMaskedIfs); 87 bool hasMatchingFilter(IUSBDevice *aUSBDevice, ULONG *aMaskedIfs); 88 88 89 HRESULT notifyProxy 89 HRESULT notifyProxy(bool aInsertFilters); 90 90 #endif /* VBOX_WITH_USB */ 91 91
Note:
See TracChangeset
for help on using the changeset viewer.