UOperatingSystemBiosWidget
#include <OperatingSystemSimulator/Public/Widgets/OperatingSystemBiosWidget.h>class UOperatingSystemBiosWidgetDefined in OperatingSystemBiosWidget.h:22
Inherits:
UCommonUserWidget
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemBiosWidget["UOperatingSystemBiosWidget"]
class UCommonUserWidget["UCommonUserWidget"]
UCommonUserWidget <|-- UOperatingSystemBiosWidget
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemBiosWidget["UOperatingSystemBiosWidget"]
class UOperatingSystemMBB["UOperatingSystemMBB"]
UOperatingSystemBiosWidget *-- UOperatingSystemMBB
class UOperatingSystemBIOS["UOperatingSystemBIOS"]
UOperatingSystemBiosWidget *-- UOperatingSystemBIOS
class FGenericError["FGenericError"]
UOperatingSystemBiosWidget *-- FGenericError
Class detail
Section titled “Class detail”---
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.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemBiosWidget | Default constructor for the UOperatingSystemBiosWidget class. | |
void | OnHardwareError | This method handles a hardware error in the BIOS widget. |
void | SetParentMotherboard | Sets the parent motherboard and BIOS of the BIOS widget. |
UOperatingSystemBiosWidget
Section titled “UOperatingSystemBiosWidget”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.
OnHardwareError
Section titled “OnHardwareError”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.
Parameters
Section titled “Parameters”ErrorThe hardware error object containing information about the error.
Referenced by
Section titled “Referenced by”References
Section titled “References”SetParentMotherboard
Section titled “SetParentMotherboard”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.
Parameters
Section titled “Parameters”-
InMotherboardThe parent motherboard to set. It is represented as a weak object pointer to the UOperatingSystemMBB class. -
OwningBIOSThe parent BIOS to set. It is represented as a weak object pointer to the UOperatingSystemBIOS class.
References
Section titled “References”Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
TObjectPtr< UOperatingSystemMBB > | ParentMotherboard | Represents a pointer to the parent motherboard object. |
TObjectPtr< UOperatingSystemBIOS > | ParentBIOS | Represents a pointer to the parent BIOS object. |
FGenericError | HardwareError |
ParentMotherboard
Section titled “ParentMotherboard”TObjectPtr< UOperatingSystemMBB > ParentMotherboardDefined in OperatingSystemBiosWidget.h:30 Represents a pointer to the parent motherboard object.
Referenced by
Section titled “Referenced by”ParentBIOS
Section titled “ParentBIOS”TObjectPtr< UOperatingSystemBIOS > ParentBIOSDefined in OperatingSystemBiosWidget.h:34 Represents a pointer to the parent BIOS object.
Referenced by
Section titled “Referenced by”HardwareError
Section titled “HardwareError”FGenericError HardwareErrorDefined in OperatingSystemBiosWidget.h:37
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
void | NativeConstruct virtual override | |
void | K2_OnHardwareError | protected UOperatingSystemBiosWidget::K2_OnHardwareError Event called when hardware fail occurs. |
NativeConstruct
Section titled “NativeConstruct”virtual override
virtual void NativeConstruct() overrideDefined in OperatingSystemBiosWidget.h:50
References
Section titled “References”K2_OnHardwareError
Section titled “K2_OnHardwareError”void K2_OnHardwareError(const FGenericError & Error)Defined in OperatingSystemBiosWidget.h:87 protected UOperatingSystemBiosWidget::K2_OnHardwareError Event called when hardware fail occurs.
Parameters
Section titled “Parameters”Error[const FGenericError&] Error information