VirtualBox

source: vbox/trunk/src/VBox/Main/include/USBControllerImpl.h@ 47376

最後變更 在這個檔案從47376是 47376,由 vboxsync 提交於 12 年 前

Main/USB: USB Controller implementation rework. Moved filter handling into a separate interface

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.2 KB
 
1/* $Id: USBControllerImpl.h 47376 2013-07-24 15:13:52Z vboxsync $ */
2
3/** @file
4 *
5 * VBox USBController COM Class declaration.
6 */
7
8/*
9 * Copyright (C) 2005-2012 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.alldomusa.eu.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef ____H_USBCONTROLLERIMPL
21#define ____H_USBCONTROLLERIMPL
22
23#include "VirtualBoxBase.h"
24
25class HostUSBDevice;
26class USBDeviceFilter;
27
28namespace settings
29{
30 struct USBController;
31}
32
33class ATL_NO_VTABLE USBController :
34 public VirtualBoxBase,
35 VBOX_SCRIPTABLE_IMPL(IUSBController)
36{
37public:
38 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(USBController, IUSBController)
39
40 DECLARE_NOT_AGGREGATABLE(USBController)
41
42 DECLARE_PROTECT_FINAL_CONSTRUCT()
43
44 BEGIN_COM_MAP(USBController)
45 VBOX_DEFAULT_INTERFACE_ENTRIES(IUSBController)
46 END_COM_MAP()
47
48 DECLARE_EMPTY_CTOR_DTOR(USBController)
49
50 HRESULT FinalConstruct();
51 void FinalRelease();
52
53 // public initializer/uninitializer for internal purposes only
54 HRESULT init(Machine *aParent);
55 HRESULT init(Machine *aParent, USBController *aThat);
56 HRESULT initCopy(Machine *aParent, USBController *aThat);
57 void uninit();
58
59 // IUSBController properties
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
67 // public methods only for internal purposes
68
69 HRESULT loadSettings(const settings::USBController &data);
70 HRESULT saveSettings(settings::USBController &data);
71
72 void rollback();
73 void commit();
74 void copyFrom(USBController *aThat);
75
76private:
77
78 void printList();
79
80 struct Data;
81 Data *m;
82};
83
84#endif //!____H_USBCONTROLLERIMPL
85/* vi: set tabstop=4 shiftwidth=4 expandtab: */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette