VirtualBox

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

Last change on this file since 51465 was 49871, checked in by vboxsync, 11 years ago

6813 - User server side API wrapper code in all interfaces.. stage 4 rev 1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: USBControllerImpl.h 49871 2013-12-10 16:49:59Z vboxsync $ */
2
3/** @file
4 *
5 * VBox USBController COM Class declaration.
6 */
7
8/*
9 * Copyright (C) 2005-2013 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.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 "USBControllerWrap.h"
24
25class HostUSBDevice;
26class USBDeviceFilter;
27
28namespace settings
29{
30 struct USBController;
31}
32
33class ATL_NO_VTABLE USBController :
34 public USBControllerWrap
35{
36public:
37
38 DECLARE_EMPTY_CTOR_DTOR(USBController)
39
40 HRESULT FinalConstruct();
41 void FinalRelease();
42
43 // public initializer/uninitializer for internal purposes only
44 HRESULT init(Machine *aParent, const Utf8Str &aName, USBControllerType_T enmType);
45 HRESULT init(Machine *aParent, USBController *aThat, bool fReshare = false);
46 HRESULT initCopy(Machine *aParent, USBController *aThat);
47 void uninit();
48
49 // public methods only for internal purposes
50 void i_rollback();
51 void i_commit();
52 void i_copyFrom(USBController *aThat);
53 void i_unshare();
54
55 ComObjPtr<USBController> i_getPeer();
56 const Utf8Str &i_getName() const;
57 const USBControllerType_T &i_getControllerType() const;
58
59private:
60
61 // wrapped IUSBController properties
62 HRESULT getName(com::Utf8Str &aName);
63 HRESULT getType(USBControllerType_T *aType);
64 HRESULT getUSBStandard(USHORT *aUSBStandard);
65
66 void printList();
67
68 struct Data;
69 Data *m;
70};
71
72#endif //!____H_USBCONTROLLERIMPL
73/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

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