Skip to content

UOperatingSystemDeviceWidget

#include <OperatingSystemSimulator/Public/Widgets/OperatingSystemDeviceWidget.h>
class UOperatingSystemDeviceWidget

Defined in OperatingSystemDeviceWidget.h:16

Inherits: UCommonUserWidget

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemDeviceWidget["UOperatingSystemDeviceWidget"]
  class UCommonUserWidget["UCommonUserWidget"]
  UCommonUserWidget <|-- UOperatingSystemDeviceWidget
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemDeviceWidget["UOperatingSystemDeviceWidget"]
  class UOperatingSystemBaseDevice["UOperatingSystemBaseDevice"]
  UOperatingSystemDeviceWidget *-- UOperatingSystemBaseDevice
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemDeviceWidget {
    +CheckHardwareFailed(const FGenericError &HardwareError)
    +OperatingSystemError(const FGenericError &Error)
    +CreateDeviceWidget(UOperatingSystemBaseDevice *InDevice) UOperatingSystemDeviceWidget() *
    +OwningDevice : TObjectPtr< UOperatingSystemBaseDevice()
    +K2_OperatingSystemError(const FGenericError &Error)
    +K2_OnCheckHardwareFailed(const FGenericError &Error)
  }

This class represents a widget for an operating system device.

ReturnNameDescription
voidCheckHardwareFailedHandles hardware check failure.
voidOperatingSystemErrorCalled when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.

void CheckHardwareFailed(const FGenericError & HardwareError)

Defined in OperatingSystemDeviceWidget.h:46 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.

  • HardwareError The hardware error information in the form of FGenericError struct.

void OperatingSystemError(const FGenericError & Error)

Defined in OperatingSystemDeviceWidget.h:53 Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.

  • Error The operating system error information in the form of FGenericError struct.
ReturnNameDescription
UOperatingSystemDeviceWidget *CreateDeviceWidget staticCreates a device widget for an operating system device.

static

static UOperatingSystemDeviceWidget * CreateDeviceWidget(UOperatingSystemBaseDevice * InDevice)

Defined in OperatingSystemDeviceWidget.h:36 Creates a device widget for an operating system device.

A pointer to the created device widget which is an instance of the UOperatingSystemDeviceWidget class.

  • CreateFromSoftWidget
ReturnNameDescription
TObjectPtr< UOperatingSystemBaseDevice >OwningDeviceThe OwningDevice variable represents a pointer to an instance of the UOperatingSystemBaseDevice class that owns the UOperatingSystemDeviceWidget.

TObjectPtr< UOperatingSystemBaseDevice > OwningDevice

Defined in OperatingSystemDeviceWidget.h:26 The OwningDevice variable represents a pointer to an instance of the UOperatingSystemBaseDevice class that owns the UOperatingSystemDeviceWidget.

ReturnNameDescription
voidK2_OperatingSystemErrorCalled when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.
voidK2_OnCheckHardwareFailedHandles hardware check failure.

void K2_OperatingSystemError(const FGenericError & Error)

Defined in OperatingSystemDeviceWidget.h:65 Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint.

  • Error The operating system error information in the form of FGenericError struct.

void K2_OnCheckHardwareFailed(const FGenericError & Error)

Defined in OperatingSystemDeviceWidget.h:78 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.

  • Error The hardware error information in the form of FGenericError struct.