VirtualBox

source: vbox/trunk/src/VBox/Main/include/CaptureSettingsImpl.h@ 75286

Last change on this file since 75286 was 75286, checked in by vboxsync, 6 years ago

Drop spurious svn:executable

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: CaptureSettingsImpl.h 75286 2018-11-06 14:07:53Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation - Machine capture settings.
6 */
7
8/*
9 * Copyright (C) 2018 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_CAPTURESETTINGS
21#define ____H_CAPTURESETTINGS
22
23#include "CaptureSettingsWrap.h"
24
25namespace settings
26{
27 struct CaptureSettings;
28}
29
30class CaptureScreenSettings;
31
32class ATL_NO_VTABLE CaptureSettings :
33 public CaptureSettingsWrap
34{
35public:
36
37 DECLARE_EMPTY_CTOR_DTOR(CaptureSettings)
38
39 HRESULT FinalConstruct();
40 void FinalRelease();
41
42 // public initializer/uninitializer for internal purposes only
43 HRESULT init(Machine *parent);
44 HRESULT init(Machine *parent, CaptureSettings *that);
45 HRESULT initCopy(Machine *parent, CaptureSettings *that);
46 void uninit();
47
48 // public methods only for internal purposes
49 HRESULT i_loadSettings(const settings::CaptureSettings &data);
50 HRESULT i_saveSettings(settings::CaptureSettings &data);
51
52 void i_rollback();
53 void i_commit();
54 void i_copyFrom(CaptureSettings *aThat);
55 void i_applyDefaults(void);
56
57private:
58
59 // wrapped ICaptureSettings properties
60 HRESULT getEnabled(BOOL *enabled);
61 HRESULT setEnabled(BOOL enable);
62 HRESULT getScreens(std::vector<ComPtr<ICaptureScreenSettings> > &aCaptureScreenSettings);
63
64 // wrapped ICaptureSettings methods
65 HRESULT getScreenSettings(ULONG uScreenId, ComPtr<ICaptureScreenSettings> &aCaptureScreenSettings);
66
67private:
68
69 /** Map of screen settings objects. The key specifies the screen ID. */
70 typedef std::map <uint32_t, ComObjPtr<CaptureScreenSettings> > CaptureScreenSettingsMap;
71
72 struct Data;
73 Data *m;
74};
75#endif // ____H_CAPTURESETTINGS
76
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