VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxBFE/HostUSBImpl.h@ 34781

Last change on this file since 34781 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/** @file
2 *
3 * VBox frontends: Basic Frontend (BFE):
4 * Declaration of HostUSB
5 */
6
7/*
8 * Copyright (C) 2006-2007 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef ____H_HOSTUSBIMPL
20#define ____H_HOSTUSBIMPL
21
22#ifndef VBOXBFE_WITH_USB
23# error "misconfiguration VBOXBFE_WITH_USB isn't defined and HostUSBImpl.h was included."
24#endif
25
26#include "VirtualBoxBase.h"
27#include "HostUSBDeviceImpl.h"
28
29/* We do not support loadable configurations here */
30// #include <VBox/settings.h>
31
32#include <list>
33
34class HostUSB :
35 public VirtualBoxBase
36{
37public:
38 ~HostUSB();
39
40 // public initializer/uninitializer for internal purposes only
41 HRESULT init (PVM pVM);
42 void uninit();
43
44 // public methods only for internal purposes
45
46 void onUSBDeviceAttached (HostUSBDevice *aDevice);
47 void onUSBDeviceDetached (HostUSBDevice *aDevice);
48 void onUSBDeviceStateChanged (HostUSBDevice *aDevice);
49
50 USBProxyService *usbProxyService() { return mUSBProxyService; }
51
52private:
53
54 typedef std::list <HostUSBDevice *> USBDeviceList;
55 USBDeviceList mUSBDevices;
56
57 /** Pointer to the VM */
58 PVM mpVM;
59
60 /** Pointer to the USBProxyService object. */
61 USBProxyService *mUSBProxyService;
62
63 STDMETHODIMP AttachUSBDevice (HostUSBDevice *hostDevice);
64 STDMETHODIMP DetachUSBDevice (HostUSBDevice *aDevice);
65};
66
67#endif // ____H_HOSTUSBIMPL
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