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

This class represents a widget for an operating system device. More...

#include "OperatingSystemDeviceWidget.h"

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

Public Member Functions

void CheckHardwareFailed (const FGenericError &HardwareError)
 Handles hardware check failure.
 
void OperatingSystemError (const FGenericError &Error)
 Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.
 

Static Public Member Functions

static UOperatingSystemDeviceWidgetCreateDeviceWidget (UOperatingSystemBaseDevice *InDevice)
 Creates a device widget for an operating system device.
 

Protected Member Functions

void K2_OperatingSystemError (const FGenericError &Error)
 Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.
 
void K2_OnCheckHardwareFailed (const FGenericError &Error)
 Handles hardware check failure.
 

Protected Attributes

TObjectPtr< UOperatingSystemBaseDeviceOwningDevice
 The OwningDevice variable represents a pointer to an instance of the UOperatingSystemBaseDevice class that owns the UOperatingSystemDeviceWidget.
 

Detailed Description

This class represents a widget for an operating system device.

Member Function Documentation

◆ CheckHardwareFailed()

void UOperatingSystemDeviceWidget::CheckHardwareFailed ( const FGenericError & HardwareError)

Handles hardware check failure.

This method is called when hardware check fails for the device widget. It retrieves the motherboard from the owning device, checks if it can open the BIOS, and if so, calls the On HardwareError() method of the BIOS widget. Then, it calls the K2_OnCheckHardwareFailed() method to handle the hardware check failure in the blueprint.

Parameters
HardwareErrorThe hardware error information in the form of FGenericError struct.
Here is the call graph for this function:

◆ CreateDeviceWidget()

UOperatingSystemDeviceWidget * UOperatingSystemDeviceWidget::CreateDeviceWidget ( UOperatingSystemBaseDevice * InDevice)
static

Creates a device widget for an operating system device.

Parameters
InDeviceA pointer to an instance of the UOperatingSystemBaseDevice class representing the device.
Returns
A pointer to the created device widget which is an instance of the UOperatingSystemDeviceWidget class.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ K2_OnCheckHardwareFailed()

void UOperatingSystemDeviceWidget::K2_OnCheckHardwareFailed ( const FGenericError & Error)
protected

Handles hardware check failure.

This method is called when hardware check fails for the device widget. It retrieves the motherboard from the owning device, checks if it can open the BIOS, and if so, calls the On HardwareError() method of the BIOS widget. Then, it calls the K2_OnCheckHardwareFailed() method to handle the hardware check failure in the blueprint.

Parameters
ErrorThe hardware error information in the form of FGenericError struct.
Note
This method is implemented as a BlueprintImplementableEvent, which means it can be overridden in Blueprints and additional functionality can be added.
Here is the caller graph for this function:

◆ K2_OperatingSystemError()

void UOperatingSystemDeviceWidget::K2_OperatingSystemError ( const FGenericError & Error)
protected

Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.

Parameters
ErrorThe operating system error information in the form of FGenericError struct.
Note
This method is implemented as a BlueprintImplementableEvent, which means it can be overridden in Blueprints and additional functionality can be added.
Here is the caller graph for this function:

◆ OperatingSystemError()

void UOperatingSystemDeviceWidget::OperatingSystemError ( const FGenericError & Error)

Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.

Parameters
ErrorThe operating system error information in the form of FGenericError struct.
Here is the call graph for this function:

Member Data Documentation

◆ OwningDevice

TObjectPtr<UOperatingSystemBaseDevice> UOperatingSystemDeviceWidget::OwningDevice
protected

The OwningDevice variable represents a pointer to an instance of the UOperatingSystemBaseDevice class that owns the UOperatingSystemDeviceWidget.


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