VirtualBox

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

最後變更 在這個檔案從91420是 91213,由 vboxsync 提交於 4 年 前

Main,FE/VBoxManage: Add the necessary Main API bits to control the trusted platform module settings as well as implementing support in VBoxManage, bugref:10075

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.9 KB
 
1/* $Id: TrustedPlatformModuleImpl.h 91213 2021-09-10 17:58:08Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation - Machine Trusted Platform Module settings.
6 */
7
8/*
9 * Copyright (C) 2021 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.alldomusa.eu.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 MAIN_INCLUDED_TrustedPlatformModuleImpl_h
21#define MAIN_INCLUDED_TrustedPlatformModuleImpl_h
22#ifndef RT_WITHOUT_PRAGMA_ONCE
23# pragma once
24#endif
25
26#include "TrustedPlatformModuleWrap.h"
27
28namespace settings
29{
30 struct TpmSettings;
31}
32
33class ATL_NO_VTABLE TrustedPlatformModule :
34 public TrustedPlatformModuleWrap
35{
36public:
37
38 DECLARE_COMMON_CLASS_METHODS(TrustedPlatformModule)
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, TrustedPlatformModule *that);
46 HRESULT initCopy(Machine *parent, TrustedPlatformModule *that);
47 void uninit();
48
49 // public methods for internal purposes only
50 HRESULT i_loadSettings(const settings::TpmSettings &data);
51 HRESULT i_saveSettings(settings::TpmSettings &data);
52
53 void i_rollback();
54 void i_commit();
55 void i_copyFrom(TrustedPlatformModule *aThat);
56
57private:
58
59 // wrapped ITrustedPlatformModule properties
60 HRESULT getType(TpmType_T *aType);
61 HRESULT setType(TpmType_T aType);
62 HRESULT getLocation(com::Utf8Str &location);
63 HRESULT setLocation(const com::Utf8Str &location);
64
65 struct Data;
66 Data *m;
67};
68
69#endif /* !MAIN_INCLUDED_TrustedPlatformModuleImpl_h */
70
71/* vi: set tabstop=4 shiftwidth=4 expandtab: */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette