Skip to content

UOperatingSystemBiosWidget

#include <OperatingSystemSimulator/Public/Widgets/OperatingSystemBiosWidget.h>
class UOperatingSystemBiosWidget

Defined in OperatingSystemBiosWidget.h:22

Inherits: UCommonUserWidget

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBiosWidget["UOperatingSystemBiosWidget"]
  class UCommonUserWidget["UCommonUserWidget"]
  UCommonUserWidget <|-- UOperatingSystemBiosWidget
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBiosWidget["UOperatingSystemBiosWidget"]
  class UOperatingSystemMBB["UOperatingSystemMBB"]
  UOperatingSystemBiosWidget *-- UOperatingSystemMBB
  class UOperatingSystemBIOS["UOperatingSystemBIOS"]
  UOperatingSystemBiosWidget *-- UOperatingSystemBIOS
  class FGenericError["FGenericError"]
  UOperatingSystemBiosWidget *-- FGenericError
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBiosWidget {
    +UOperatingSystemBiosWidget()
    +OnHardwareError(const FGenericError &Error)
    +SetParentMotherboard(TWeakObjectPtr< UOperatingSystemMBB > InMot
    +ParentMotherboard : TObjectPtr< UOperatingSystemMBB() >
    +ParentBIOS : TObjectPtr< UOperatingSystemBIOS() >
    +HardwareError : FGenericError()
    +NativeConstruct() override
    +K2_OnHardwareError(const FGenericError &Error)
  }

This class represents a BIOS widget in the operating system simulator.

The BIOS widget is responsible for handling hardware errors and communicating with the motherboard and the BIOS. It provides the functionality to handle hardware errors and to set the parent motherboard. Additionally, it includes an event called when a hardware failure occurs.

ReturnNameDescription
UOperatingSystemBiosWidgetDefault constructor for the UOperatingSystemBiosWidget class.
voidOnHardwareErrorThis method handles a hardware error in the BIOS widget.
voidSetParentMotherboardSets the parent motherboard and BIOS of the BIOS widget.

UOperatingSystemBiosWidget()

Defined in OperatingSystemBiosWidget.h:46 Default constructor for the UOperatingSystemBiosWidget class.

Initializes the ParentMotherboard pointer to nullptr and the HardwareError instance to a default generic error.


void OnHardwareError(const FGenericError & Error)

Defined in OperatingSystemBiosWidget.h:62 This method handles a hardware error in the BIOS widget.

When a hardware error occurs, this method is called to handle the error. It sets the hardware error to the provided error, and then calls the K2_OnHardwareError method to further handle the error.

  • Error The hardware error object containing information about the error.

void SetParentMotherboard(TWeakObjectPtr< UOperatingSystemMBB > InMotherboard, TWeakObjectPtr< UOperatingSystemBIOS > OwningBIOS)

Defined in OperatingSystemBiosWidget.h:76 Sets the parent motherboard and BIOS of the BIOS widget.

This method sets the parent motherboard and BIOS of the BIOS widget. The parent motherboard represents the hardware component that the BIOS widget is associated with, and the parent BIOS represents the BIOS component that owns the BIOS widget.

  • InMotherboard The parent motherboard to set. It is represented as a weak object pointer to the UOperatingSystemMBB class.

  • OwningBIOS The parent BIOS to set. It is represented as a weak object pointer to the UOperatingSystemBIOS class.

ReturnNameDescription
TObjectPtr< UOperatingSystemMBB >ParentMotherboardRepresents a pointer to the parent motherboard object.
TObjectPtr< UOperatingSystemBIOS >ParentBIOSRepresents a pointer to the parent BIOS object.
FGenericErrorHardwareError

TObjectPtr< UOperatingSystemMBB > ParentMotherboard

Defined in OperatingSystemBiosWidget.h:30 Represents a pointer to the parent motherboard object.


TObjectPtr< UOperatingSystemBIOS > ParentBIOS

Defined in OperatingSystemBiosWidget.h:34 Represents a pointer to the parent BIOS object.


FGenericError HardwareError

Defined in OperatingSystemBiosWidget.h:37

ReturnNameDescription
voidNativeConstruct virtual override
voidK2_OnHardwareErrorprotected UOperatingSystemBiosWidget::K2_OnHardwareError Event called when hardware fail occurs.

virtual override

virtual void NativeConstruct() override

Defined in OperatingSystemBiosWidget.h:50


void K2_OnHardwareError(const FGenericError & Error)

Defined in OperatingSystemBiosWidget.h:87 protected UOperatingSystemBiosWidget::K2_OnHardwareError Event called when hardware fail occurs.