VirtualBox

source: vbox/trunk/src/VBox/Main/include/EmulatedUSBImpl.h@ 48431

Last change on this file since 48431 was 48406, checked in by vboxsync, 11 years ago

Main,VBoxManage: Implemented IConsole::EmulatedUSB. Removed IMachine::emulatedUSBWebcameraEnabled.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/* $Id: EmulatedUSBImpl.h 48406 2013-09-10 12:53:50Z vboxsync $ */
2
3/** @file
4 *
5 * Emulated USB devices manager.
6 */
7
8/*
9 * Copyright (C) 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 EMULATEDUSB_IMPL_H_
21#define EMULATEDUSB_IMPL_H_
22
23#include "EmulatedUSBWrap.h"
24
25class Console;
26class EUSBWEBCAM;
27
28typedef std::map<Utf8Str, EUSBWEBCAM *> WebcamsMap;
29
30class ATL_NO_VTABLE EmulatedUSB :
31 public EmulatedUSBWrap
32{
33public:
34
35 DECLARE_EMPTY_CTOR_DTOR(EmulatedUSB)
36
37 HRESULT FinalConstruct();
38 void FinalRelease();
39
40 /* Public initializer/uninitializer for internal purposes only. */
41 HRESULT init(ComObjPtr<Console> pConsole);
42 void uninit();
43
44private:
45
46 // wrapped IEmulatedUSB properties
47 virtual HRESULT getWebcams(std::vector<com::Utf8Str> &aWebcams);
48
49 // wrapped IEmulatedUSB methods
50 virtual HRESULT webcamAttach(const com::Utf8Str &aPath,
51 const com::Utf8Str &aSettings);
52 virtual HRESULT webcamDetach(const com::Utf8Str &aPath);
53
54 /* Data. */
55 struct Data
56 {
57 Data()
58 {
59 }
60
61 ComObjPtr<Console> pConsole;
62 WebcamsMap webcams;
63 };
64
65 Data m;
66};
67
68#endif // EMULATEDUSB_IMPL_H_
69
70/* 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