VirtualBox

source: vbox/trunk/src/VBox/Main/include/TrustedPlatformModuleImpl.h@ 99392

Last change on this file since 99392 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/* $Id: TrustedPlatformModuleImpl.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation - Machine Trusted Platform Module settings.
6 */
7
8/*
9 * Copyright (C) 2021-2023 Oracle and/or its affiliates.
10 *
11 * This file is part of VirtualBox base platform packages, as
12 * available from https://www.virtualbox.org.
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation, in version 3 of the
17 * License.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see <https://www.gnu.org/licenses>.
26 *
27 * SPDX-License-Identifier: GPL-3.0-only
28 */
29
30#ifndef MAIN_INCLUDED_TrustedPlatformModuleImpl_h
31#define MAIN_INCLUDED_TrustedPlatformModuleImpl_h
32#ifndef RT_WITHOUT_PRAGMA_ONCE
33# pragma once
34#endif
35
36#include "TrustedPlatformModuleWrap.h"
37
38class GuestOSType;
39
40namespace settings
41{
42 struct TpmSettings;
43}
44
45class ATL_NO_VTABLE TrustedPlatformModule :
46 public TrustedPlatformModuleWrap
47{
48public:
49
50 DECLARE_COMMON_CLASS_METHODS(TrustedPlatformModule)
51
52 HRESULT FinalConstruct();
53 void FinalRelease();
54
55 // public initializer/uninitializer for internal purposes only
56 HRESULT init(Machine *parent);
57 HRESULT init(Machine *parent, TrustedPlatformModule *that);
58 HRESULT initCopy(Machine *parent, TrustedPlatformModule *that);
59 void uninit();
60
61 // public methods for internal purposes only
62 HRESULT i_loadSettings(const settings::TpmSettings &data);
63 HRESULT i_saveSettings(settings::TpmSettings &data);
64
65 void i_rollback();
66 void i_commit();
67 void i_copyFrom(TrustedPlatformModule *aThat);
68 void i_applyDefaults(GuestOSType *aOsType);
69
70private:
71
72 // wrapped ITrustedPlatformModule properties
73 HRESULT getType(TpmType_T *aType);
74 HRESULT setType(TpmType_T aType);
75 HRESULT getLocation(com::Utf8Str &location);
76 HRESULT setLocation(const com::Utf8Str &location);
77
78 struct Data;
79 Data *m;
80};
81
82#endif /* !MAIN_INCLUDED_TrustedPlatformModuleImpl_h */
83
84/* 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