VirtualBox

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

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

Recording: Bugfixes for Main and FE/Qt.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/* $Id: CaptureSettingsImpl.h 75307 2018-11-07 13:56:14Z 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 struct CaptureScreenSettings;
29}
30
31class CaptureScreenSettings;
32
33class ATL_NO_VTABLE CaptureSettings :
34 public CaptureSettingsWrap
35{
36public:
37
38 DECLARE_EMPTY_CTOR_DTOR(CaptureSettings)
39
40 HRESULT FinalConstruct();
41 void FinalRelease();
42
43 // public initializer/uninitializer for internal purposes only
44 HRESULT init(Machine *parent);
45 HRESULT init(Machine *parent, CaptureSettings *that);
46 HRESULT initCopy(Machine *parent, CaptureSettings *that);
47 void uninit();
48
49 // public methods only for internal purposes
50 HRESULT i_loadSettings(const settings::CaptureSettings &data);
51 HRESULT i_saveSettings(settings::CaptureSettings &data);
52
53 void i_rollback();
54 void i_commit();
55 void i_copyFrom(CaptureSettings *aThat);
56 void i_applyDefaults(void);
57
58private:
59
60 int i_addScreen(uint32_t uScreenId, const settings::CaptureScreenSettings &data);
61
62private:
63
64 // wrapped ICaptureSettings properties
65 HRESULT getEnabled(BOOL *enabled);
66 HRESULT setEnabled(BOOL enable);
67 HRESULT getScreens(std::vector<ComPtr<ICaptureScreenSettings> > &aCaptureScreenSettings);
68
69 // wrapped ICaptureSettings methods
70 HRESULT getScreenSettings(ULONG uScreenId, ComPtr<ICaptureScreenSettings> &aCaptureScreenSettings);
71
72private:
73
74 /** Map of screen settings objects. The key specifies the screen ID. */
75 typedef std::map <uint32_t, ComObjPtr<CaptureScreenSettings> > CaptureScreenSettingsMap;
76
77 struct Data;
78 Data *m;
79};
80#endif // ____H_CAPTURESETTINGS
81
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