Skip to content

UOperatingSystemSettingModule

#include <OperatingSystemSimulator/Public/Programs/Settings/OperatingSystemSettingModule.h>
class UOperatingSystemSettingModule

Defined in OperatingSystemSettingModule.h:21

Inherits: UObject Subclassed by: UOperatingSystemSettingModule_Theme, UOperatingSystemSettingModule_Wallpaper

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemSettingModule["UOperatingSystemSettingModule"]
  class UObject["UObject"]
  UObject <|-- UOperatingSystemSettingModule
  class UOperatingSystemSettingModule_Theme["UOperatingSystemSettingModule_Theme"]
  UOperatingSystemSettingModule <|-- UOperatingSystemSettingModule_Theme
  class UOperatingSystemSettingModule_Wallpaper["UOperatingSystemSettingModule_Wallpaper"]
  UOperatingSystemSettingModule <|-- UOperatingSystemSettingModule_Wallpaper
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemSettingModule["UOperatingSystemSettingModule"]
  class FOperatingSystemSettingModuleInfo["FOperatingSystemSettingModuleInfo"]
  UOperatingSystemSettingModule *-- FOperatingSystemSettingModuleInfo
  class UOperatingSystemSettingModuleWidget["UOperatingSystemSettingModuleWidget"]
  UOperatingSystemSettingModule *-- UOperatingSystemSettingModuleWidget
  class UOperatingSystem["UOperatingSystem"]
  UOperatingSystemSettingModule *-- UOperatingSystem
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemSettingModule {
    +UOperatingSystemSettingModule()
    +ApplySetting(const FName SettingIdentifier, UObject *Pay
    +GetParentOperatingSystem() const UOperatingSystem() *
    +GetModuleInfo() const FOperatingSystemSettingModuleInfo()
    +ConstructSettingModule(UOperatingSystem *OwningOS, const FOperatin UOperatingSystemSettingModule() *
    +WidgetClass : TSoftClassPtr< UOperatingSystemSettingMo
    +OnApplySetting(const FName &SettingIdentifier, UObject *Pa
    +OnCreated()
    +K2_OnCreated()
    +K2_OnApplySetting(const FName &SettingIdentifier, UObject *Pa
    +Data : FOperatingSystemSettingModuleInfo()
    +Widget : TObjectPtr< UOperatingSystemSettingModul
    +ParentOS : TWeakObjectPtr< UOperatingSystem() >
  }

Caller impact — GetParentOperatingSystem

Section titled “Caller impact — GetParentOperatingSystem”

Documented call sites inside the plugin (5):

flowchart LR
  UOperatingSystemSettingModule__GetParentOperatingSystem["UOperatingSystemSettingModule::GetParentOperatingSystem"]
  UOperatingSystemSettingModuleWidget__CreateWidget["UOperatingSystemSettingModuleWidget::CreateWidget"]
  UOperatingSystemSettingModuleWidget__CreateWidget --> UOperatingSystemSettingModule__GetParentOperatingSystem
  UOperatingSystemSettingModule_Wallpaper__GetDesktopWallpapers["UOperatingSystemSettingModule_Wallpaper::GetDesktopWallpapers"]
  UOperatingSystemSettingModule_Wallpaper__GetDesktopWallpapers --> UOperatingSystemSettingModule__GetParentOperatingSystem
  UOperatingSystemSettingModule_Wallpaper__OnCreated["UOperatingSystemSettingModule_Wallpaper::OnCreated"]
  UOperatingSystemSettingModule_Wallpaper__OnCreated --> UOperatingSystemSettingModule__GetParentOperatingSystem
  UOperatingSystemSettingModule_Wallpaper__SaveBundledWallpaper["UOperatingSystemSettingModule_Wallpaper::SaveBundledWallpaper"]
  UOperatingSystemSettingModule_Wallpaper__SaveBundledWallpaper --> UOperatingSystemSettingModule__GetParentOperatingSystem
  UOperatingSystemSettingModule_Wallpaper__SaveCustomWallpaper["UOperatingSystemSettingModule_Wallpaper::SaveCustomWallpaper"]
  UOperatingSystemSettingModule_Wallpaper__SaveCustomWallpaper --> UOperatingSystemSettingModule__GetParentOperatingSystem

Represents a module for operating system settings.

This class inherits from UObject and provides functionality for managing operating system setting modules. It contains properties and methods to handle the module’s data and behavior.

ReturnNameDescription
UOperatingSystemSettingModule
voidApplySettingApply a setting to the operating system setting module identified by the specified SettingIdentifier.
UOperatingSystem *GetParentOperatingSystem constRetrieves a pointer to the parent operating system object. It is a constant method, meaning it does not modify the object’s state.
FOperatingSystemSettingModuleInfoGetModuleInfo const inlineRetrieves an FOperatingSystemSettingModuleInfo object containing information about the module.

UOperatingSystemSettingModule()

Defined in OperatingSystemSettingModule.h:56


void ApplySetting(const FName SettingIdentifier, UObject * Payload = nullptr)

Defined in OperatingSystemSettingModule.h:83 Apply a setting to the operating system setting module identified by the specified SettingIdentifier.

  • SettingIdentifier The name of the setting identifier to apply.

  • Payload An optional payload object associated with the setting.


const

UOperatingSystem * GetParentOperatingSystem() const

Defined in OperatingSystemSettingModule.h:137 Retrieves a pointer to the parent operating system object. It is a constant method, meaning it does not modify the object’s state.

A pointer to the parent operating system object. If the parent operating system object is not set, the return value will be nullptr.


const inline

inline FOperatingSystemSettingModuleInfo GetModuleInfo() const

Defined in OperatingSystemSettingModule.h:144 Retrieves an FOperatingSystemSettingModuleInfo object containing information about the module.

The module information.

ReturnNameDescription
UOperatingSystemSettingModule *ConstructSettingModule staticConstructs a setting module for the operating system.

static

static UOperatingSystemSettingModule * ConstructSettingModule(UOperatingSystem * OwningOS, const FOperatingSystemSettingModuleInfo & Info, const TSoftClassPtr< UOperatingSystemSettingModule > & SettingModuleSoftClass, FGenericError & OutError)

Defined in OperatingSystemSettingModule.h:71 Constructs a setting module for the operating system.

This method creates a setting module object for the operating system based on the provided parameters. It initializes the module’s properties and sets up its widget class.

  • OwningOS The parent operating system object to which this setting module belongs.

  • Info The basic information regarding this module.

  • SettingModuleSoftClass A soft reference to the class of the setting module.

  • OutError [out] The error information if the construction fails.

A pointer to the constructed setting module object, or nullptr if the construction fails.

ReturnNameDescription
TSoftClassPtr< UOperatingSystemSettingModuleWidget >WidgetClassWidget class to create when this module is constructed

TSoftClassPtr< UOperatingSystemSettingModuleWidget > WidgetClass

Defined in OperatingSystemSettingModule.h:33 Widget class to create when this module is constructed

ReturnNameDescription
voidOnApplySetting virtual inlineApply a setting to the operating system setting module identified by the specified SettingIdentifier. This method applies a setting to the operating system setting module identified by the specified SettingIdentifier. The SettingIdentifier parameter represents the name of the setting identifier that will be applied. The Payload parameter is an optional payload object associated with the setting. If the Payload parameter is not provided, the setting module itself will be used as the payload.
voidOnCreated virtual inlineThis method is called when the operating system setting module is created.
voidK2_OnCreatedBlueprint implementable event triggered when an instance of OperatingSystemSettingModule is created.
voidK2_OnApplySettingCalled when a setting is being applied.

virtual inline

virtual inline void OnApplySetting(const FName & SettingIdentifier, UObject * Payload)

Defined in OperatingSystemSettingModule.h:97 Apply a setting to the operating system setting module identified by the specified SettingIdentifier. This method applies a setting to the operating system setting module identified by the specified SettingIdentifier. The SettingIdentifier parameter represents the name of the setting identifier that will be applied. The Payload parameter is an optional payload object associated with the setting. If the Payload parameter is not provided, the setting module itself will be used as the payload.

  • SettingIdentifier The name of the setting identifier to apply.

  • Payload An optional payload object associated with the setting.


virtual inline

virtual inline void OnCreated()

Defined in OperatingSystemSettingModule.h:108 This method is called when the operating system setting module is created.

This method is a virtual method that can be overridden by derived classes to perform custom initialization when the setting module is created. It is called after the setting module object is constructed and its properties are initialized. This method does not take any parameters or return any value.


void K2_OnCreated()

Defined in OperatingSystemSettingModule.h:117 Blueprint implementable event triggered when an instance of OperatingSystemSettingModule is created.

This event is fired when an instance of OperatingSystemSettingModule is created. It can be overridden in Blueprints to add custom functionality when the module is created.


void K2_OnApplySetting(const FName & SettingIdentifier, UObject * Payload)

Defined in OperatingSystemSettingModule.h:129 Called when a setting is being applied.

This is a blueprint implementable event used to handle the application of a setting. The method is called with the setting identifier and a payload that contains additional data related to the setting.

  • SettingIdentifier The identifier of the setting being applied.

  • Payload The payload object containing additional data for the setting.

ReturnNameDescription
FOperatingSystemSettingModuleInfoDataBasic information regarding this module
TObjectPtr< UOperatingSystemSettingModuleWidget >WidgetRepresents a pointer to a UOperatingSystemSettingModuleWidget object.
TWeakObjectPtr< UOperatingSystem >ParentOSA weak pointer to the parent operating system object to which this setting module belongs. It is a weak pointer, meaning that it does not have ownership of the parent object. The value of this variable can be null if the parent operating system has been destroyed or is not set.

FOperatingSystemSettingModuleInfo Data

Defined in OperatingSystemSettingModule.h:27 Basic information regarding this module


TObjectPtr< UOperatingSystemSettingModuleWidget > Widget

Defined in OperatingSystemSettingModule.h:39 Represents a pointer to a UOperatingSystemSettingModuleWidget object.


TWeakObjectPtr< UOperatingSystem > ParentOS

Defined in OperatingSystemSettingModule.h:47 A weak pointer to the parent operating system object to which this setting module belongs. It is a weak pointer, meaning that it does not have ownership of the parent object. The value of this variable can be null if the parent operating system has been destroyed or is not set.