Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
UOperatingSystemBiosWidget Class Reference

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

#include "OperatingSystemBiosWidget.h"

Inheritance diagram for UOperatingSystemBiosWidget:
[legend]
Collaboration diagram for UOperatingSystemBiosWidget:
[legend]

Public Member Functions

 UOperatingSystemBiosWidget ()
 Default constructor for the UOperatingSystemBiosWidget class.
 
void OnHardwareError (const FGenericError &Error)
 This method handles a hardware error in the BIOS widget.
 
void SetParentMotherboard (TWeakObjectPtr< UOperatingSystemMBB > InMotherboard, TWeakObjectPtr< UOperatingSystemBIOS > OwningBIOS)
 Sets the parent motherboard and BIOS of the BIOS widget.
 

Protected Member Functions

virtual void NativeConstruct () override
 
void K2_OnHardwareError (const FGenericError &Error)
 

Protected Attributes

TObjectPtr< UOperatingSystemMBBParentMotherboard
 
TObjectPtr< UOperatingSystemBIOSParentBIOS
 
FGenericError HardwareError
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UOperatingSystemBiosWidget()

UOperatingSystemBiosWidget::UOperatingSystemBiosWidget ( )

Default constructor for the UOperatingSystemBiosWidget class.

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

Member Function Documentation

◆ K2_OnHardwareError()

void UOperatingSystemBiosWidget::K2_OnHardwareError ( const FGenericError & Error)
protected

protected UOperatingSystemBiosWidget::K2_OnHardwareError Event called when hardware fail occurs.

Parameters
Error[const FGenericError&] Error information
Here is the caller graph for this function:

◆ NativeConstruct()

void UOperatingSystemBiosWidget::NativeConstruct ( )
overrideprotectedvirtual
Here is the call graph for this function:

◆ OnHardwareError()

void UOperatingSystemBiosWidget::OnHardwareError ( const FGenericError & Error)

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
ErrorThe hardware error object containing information about the error.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetParentMotherboard()

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

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
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.

Member Data Documentation

◆ HardwareError

FGenericError UOperatingSystemBiosWidget::HardwareError
protected

◆ ParentBIOS

TObjectPtr<UOperatingSystemBIOS> UOperatingSystemBiosWidget::ParentBIOS
protected

Represents a pointer to the parent BIOS object.

◆ ParentMotherboard

TObjectPtr<UOperatingSystemMBB> UOperatingSystemBiosWidget::ParentMotherboard
protected

Represents a pointer to the parent motherboard object.


The documentation for this class was generated from the following files: