summaryrefslogtreecommitdiff
path: root/src/VBox/Main/include/USBControllerImpl.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/Main/include/USBControllerImpl.h
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'src/VBox/Main/include/USBControllerImpl.h')
-rw-r--r--src/VBox/Main/include/USBControllerImpl.h36
1 files changed, 8 insertions, 28 deletions
diff --git a/src/VBox/Main/include/USBControllerImpl.h b/src/VBox/Main/include/USBControllerImpl.h
index 63ba58f2..814f4b53 100644
--- a/src/VBox/Main/include/USBControllerImpl.h
+++ b/src/VBox/Main/include/USBControllerImpl.h
@@ -51,47 +51,27 @@ public:
void FinalRelease();
// public initializer/uninitializer for internal purposes only
- HRESULT init(Machine *aParent);
- HRESULT init(Machine *aParent, USBController *aThat);
+ HRESULT init(Machine *aParent, const Utf8Str &aName, USBControllerType_T enmType);
+ HRESULT init(Machine *aParent, USBController *aThat, bool fReshare = false);
HRESULT initCopy(Machine *aParent, USBController *aThat);
void uninit();
// IUSBController properties
- STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled);
- STDMETHOD(COMSETTER(Enabled))(BOOL aEnabled);
- STDMETHOD(COMGETTER(EnabledEHCI))(BOOL *aEnabled);
- STDMETHOD(COMSETTER(EnabledEHCI))(BOOL aEnabled);
- STDMETHOD(COMGETTER(ProxyAvailable))(BOOL *aEnabled);
+ STDMETHOD(COMGETTER(Name))(BSTR *aName);
+ STDMETHOD(COMGETTER(Type))(USBControllerType_T *enmType);
STDMETHOD(COMGETTER(USBStandard))(USHORT *aUSBStandard);
- STDMETHOD(COMGETTER(DeviceFilters))(ComSafeArrayOut(IUSBDeviceFilter *, aDevicesFilters));
-
- // IUSBController methods
- STDMETHOD(CreateDeviceFilter)(IN_BSTR aName, IUSBDeviceFilter **aFilter);
- STDMETHOD(InsertDeviceFilter)(ULONG aPosition, IUSBDeviceFilter *aFilter);
- STDMETHOD(RemoveDeviceFilter)(ULONG aPosition, IUSBDeviceFilter **aFilter);
// public methods only for internal purposes
- HRESULT loadSettings(const settings::USBController &data);
- HRESULT saveSettings(settings::USBController &data);
-
void rollback();
void commit();
void copyFrom(USBController *aThat);
+ void unshare();
-#ifdef VBOX_WITH_USB
- HRESULT onDeviceFilterChange(USBDeviceFilter *aFilter,
- BOOL aActiveChanged = FALSE);
-
- bool hasMatchingFilter(const ComObjPtr<HostUSBDevice> &aDevice, ULONG *aMaskedIfs);
- bool hasMatchingFilter(IUSBDevice *aUSBDevice, ULONG *aMaskedIfs);
-
- HRESULT notifyProxy(bool aInsertFilters);
-#endif /* VBOX_WITH_USB */
+ const Utf8Str &getName() const;
+ USBControllerType_T getControllerType() const;
- // public methods for internal purposes only
- // (ensure there is a caller and a read lock before calling them!)
- Machine* getMachine();
+ ComObjPtr<USBController> getPeer();
private: