UOperatingSystemDeviceWidget
#include <OperatingSystemSimulator/Public/Widgets/OperatingSystemDeviceWidget.h>class UOperatingSystemDeviceWidgetDefined in OperatingSystemDeviceWidget.h:16
Inherits:
UCommonUserWidget
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemDeviceWidget["UOperatingSystemDeviceWidget"]
class UCommonUserWidget["UCommonUserWidget"]
UCommonUserWidget <|-- UOperatingSystemDeviceWidget
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemDeviceWidget["UOperatingSystemDeviceWidget"]
class UOperatingSystemBaseDevice["UOperatingSystemBaseDevice"]
UOperatingSystemDeviceWidget *-- UOperatingSystemBaseDevice
Class detail
Section titled “Class detail”---
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.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
void | CheckHardwareFailed | Handles hardware check failure. |
void | OperatingSystemError | Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint. |
CheckHardwareFailed
Section titled “CheckHardwareFailed”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.
Parameters
Section titled “Parameters”HardwareErrorThe hardware error information in the form of FGenericError struct.
References
Section titled “References”OperatingSystemError
Section titled “OperatingSystemError”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.
Parameters
Section titled “Parameters”ErrorThe operating system error information in the form of FGenericError struct.
References
Section titled “References”ErrorK2_OperatingSystemError
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemDeviceWidget * | CreateDeviceWidget static | Creates a device widget for an operating system device. |
CreateDeviceWidget
Section titled “CreateDeviceWidget”static
static UOperatingSystemDeviceWidget * CreateDeviceWidget(UOperatingSystemBaseDevice * InDevice)Defined in OperatingSystemDeviceWidget.h:36 Creates a device widget for an operating system device.
Parameters
Section titled “Parameters”InDeviceA pointer to an instance of the UOperatingSystemBaseDevice class representing the device.
Returns
Section titled “Returns”A pointer to the created device widget which is an instance of the UOperatingSystemDeviceWidget class.
Referenced by
Section titled “Referenced by”References
Section titled “References”CreateFromSoftWidget
Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
TObjectPtr< UOperatingSystemBaseDevice > | OwningDevice | The OwningDevice variable represents a pointer to an instance of the UOperatingSystemBaseDevice class that owns the UOperatingSystemDeviceWidget. |
OwningDevice
Section titled “OwningDevice”TObjectPtr< UOperatingSystemBaseDevice > OwningDeviceDefined in OperatingSystemDeviceWidget.h:26 The OwningDevice variable represents a pointer to an instance of the UOperatingSystemBaseDevice class that owns the UOperatingSystemDeviceWidget.
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
void | K2_OperatingSystemError | Called when an operating system error occurs. It calls the K2_OperatingSystemError() method to handle the error in the blueprint. |
void | K2_OnCheckHardwareFailed | Handles hardware check failure. |
K2_OperatingSystemError
Section titled “K2_OperatingSystemError”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.
Parameters
Section titled “Parameters”ErrorThe operating system error information in the form of FGenericError struct.
Referenced by
Section titled “Referenced by”K2_OnCheckHardwareFailed
Section titled “K2_OnCheckHardwareFailed”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.
Parameters
Section titled “Parameters”ErrorThe hardware error information in the form of FGenericError struct.