VirtualBox

Changeset 96802 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 20, 2022 10:00:40 AM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10288: Extend Details pane with TPM info.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r96407 r96802  
    10671067        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_BootOrder:       strResult = QApplication::translate("UICommon", "Boot Order"); break;
    10681068        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_ChipsetType:     strResult = QApplication::translate("UICommon", "Chipset Type"); break;
     1069        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType:         strResult = QApplication::translate("UICommon", "TPM Type"); break;
    10691070        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Firmware:        strResult = QApplication::translate("UICommon", "Firmware"); break;
    10701071        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Acceleration:    strResult = QApplication::translate("UICommon", "Acceleration"); break;
     
    10891090        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_BootOrder:       strResult = "BootOrder"; break;
    10901091        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_ChipsetType:     strResult = "ChipsetType"; break;
     1092        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType:         strResult = "TPMType"; break;
    10911093        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Firmware:        strResult = "Firmware"; break;
    10921094        case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Acceleration:    strResult = "Acceleration"; break;
     
    11141116    if (strDetailsElementOptionTypeSystem.compare("ChipsetType", Qt::CaseInsensitive) == 0)
    11151117        return UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_ChipsetType;
     1118    if (strDetailsElementOptionTypeSystem.compare("TPMType", Qt::CaseInsensitive) == 0)
     1119        return UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType;
    11161120    if (strDetailsElementOptionTypeSystem.compare("Firmware", Qt::CaseInsensitive) == 0)
    11171121        return UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Firmware;
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r96407 r96802  
    715715        DetailsElementOptionTypeSystem_BootOrder       = RT_BIT(3),
    716716        DetailsElementOptionTypeSystem_ChipsetType     = RT_BIT(4),
    717         DetailsElementOptionTypeSystem_Firmware        = RT_BIT(5),
    718         DetailsElementOptionTypeSystem_Acceleration    = RT_BIT(6),
     717        DetailsElementOptionTypeSystem_TpmType         = RT_BIT(5),
     718        DetailsElementOptionTypeSystem_Firmware        = RT_BIT(6),
     719        DetailsElementOptionTypeSystem_Acceleration    = RT_BIT(7),
    719720        DetailsElementOptionTypeSystem_Default         = 0xFFFF
    720721    };
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp

    r96407 r96802  
    6161#include "CStringFormValue.h"
    6262#include "CSystemProperties.h"
     63#include "CTrustedPlatformModule.h"
    6364#include "CUSBController.h"
    6465#include "CUSBDeviceFilter.h"
     
    301302            table << UITextTableLine(QApplication::translate("UIDetails", "Chipset Type", "details (system)"),
    302303                                     gpConverter->toString(enmChipsetType));
     304    }
     305
     306    /* TPM type: */
     307    if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType)
     308    {
     309        CTrustedPlatformModule comModule = comMachine.GetTrustedPlatformModule();
     310        const KTpmType enmTpmType = comModule.GetType();
     311        if (enmTpmType != KTpmType_None)
     312            table << UITextTableLine(QApplication::translate("UIDetails", "TPM Type", "details (system)"),
     313                                     gpConverter->toString(enmTpmType));
    303314    }
    304315
Note: See TracChangeset for help on using the changeset viewer.

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