UOperatingSystem
#include <OperatingSystemSimulator/Public/Core/OperatingSystem.h>class UOperatingSystemDefined in OperatingSystem.h:90
Inherits:
UObjectSubclassed by:UOperatingSystemNonUnix,UOperatingSystemUnix
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystem["UOperatingSystem"]
class UObject["UObject"]
UObject <|-- UOperatingSystem
class UOperatingSystemNonUnix["UOperatingSystemNonUnix"]
UOperatingSystem <|-- UOperatingSystemNonUnix
class UOperatingSystemUnix["UOperatingSystemUnix"]
UOperatingSystem <|-- UOperatingSystemUnix
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystem["UOperatingSystem"]
class FOperatingSystemVersion["FOperatingSystemVersion"]
UOperatingSystem *-- FOperatingSystemVersion
class UOperatingSystemProgramsCollection["UOperatingSystemProgramsCollection"]
UOperatingSystem *-- UOperatingSystemProgramsCollection
class UOperatingSystemDirectoriesCollection["UOperatingSystemDirectoriesCollection"]
UOperatingSystem *-- UOperatingSystemDirectoriesCollection
class UOperatingSystemSettingsData["UOperatingSystemSettingsData"]
UOperatingSystem *-- UOperatingSystemSettingsData
class UOperatingSystemWidget["UOperatingSystemWidget"]
UOperatingSystem *-- UOperatingSystemWidget
class UOperatingSystemBsodWidget["UOperatingSystemBsodWidget"]
UOperatingSystem *-- UOperatingSystemBsodWidget
class FOperatingSystemNotificationSettings["FOperatingSystemNotificationSettings"]
UOperatingSystem *-- FOperatingSystemNotificationSettings
class FOperatingSystemRangeTime["FOperatingSystemRangeTime"]
UOperatingSystem *-- FOperatingSystemRangeTime
class UOperatingSystemBaseDevice["UOperatingSystemBaseDevice"]
UOperatingSystem *-- UOperatingSystemBaseDevice
class UOperatingSystemBaseProgram["UOperatingSystemBaseProgram"]
UOperatingSystem *-- UOperatingSystemBaseProgram
class UOperatingSystemProgramData["UOperatingSystemProgramData"]
UOperatingSystem o-- UOperatingSystemProgramData
class FOperatingSystemUser["FOperatingSystemUser"]
UOperatingSystem *-- FOperatingSystemUser
class UOperatingSystemTaskbarButton["UOperatingSystemTaskbarButton"]
UOperatingSystem *-- UOperatingSystemTaskbarButton
class FOperatingSystemUniqueId["FOperatingSystemUniqueId"]
UOperatingSystem *-- FOperatingSystemUniqueId
class UDraggableWindow["UDraggableWindow"]
UOperatingSystem *-- UDraggableWindow
class FOperatingSystemProgramDelegate["FOperatingSystemProgramDelegate"]
UOperatingSystem *-- FOperatingSystemProgramDelegate
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystem {
+OnOperatingSystemWindowBroughtToFront : FOnOperatingSystemWindowBroughtToFront()
+OnProgramStarted : FOperatingSystemProgramDelegate()
+OnProgramClosed : FOperatingSystemProgramDelegate()
+OnProgramInstalled : FOperatingSystemProgramDelegate()
+OnProgramUninstalled : FOperatingSystemProgramDelegate()
+GetAs() const T() *
+GetAsConst() const const()T() *
+AddNotification(const FOperatingSystemNotification &NewNoti bool()
+AddNotification(const FGenericError &GenericError, const EO bool()
+StartOperatingSystem(const TWeakObjectPtr< const UOperatingSyste void()
+PostLoadOperatingSystem() void()
+OnShowDesktop() void()
+FinishInstallation() void()
+InstallStartupPrograms() void()
+ShutdownOS() void()
+RestartOS() void()
+DestroyOS() void()
+AddRunningProgram(UOperatingSystemBaseProgram *NewProgram, FG int32()
+ProgramStarted(UOperatingSystemBaseProgram *StartedProgram void()
+IsProgramRunning(const TWeakObjectPtr< const UOperatingSyste bool()
+IsProgramRunning(const TSubclassOf< UOperatingSystemBaseProg bool()
+CreateNewWindow(TWeakObjectPtr< UOperatingSystemBaseProgram UDraggableWindow() *
+BringWindowToFront(UDraggableWindow *TargetWindow) void()
+CreateDirectoryInPath(const FString &TargetPath, const FString &D UOperatingSystemDirectory() *
+CreateProgramsFromRepository(const TSoftObjectPtr< UOperatingSystemProgr bool()
+SetToInstallStartupPrograms(const bool bInstall) void()
+ShouldInstallStartupPrograms() const bool()
+SetDeviceName(const FText &NewName) void()
+GetDeviceName() const FText()
+SetAutoLogin(const bool bEnableAutoLogin) void()
+CanAutoLogin() const bool()
+GetInstallationTime() const float()
+GetLoadingTime() const float()
+GetInitialLoadingTime() const float()
+GetNotifications() const const()TArray()< FOperatingSystemNotific
+ClearAllNotifications() void()
+ConsumeSpaceInMB(const float &NewSizeInMB, UOperatingSystemP void()
+ConsumeSpaceInGB(const float &NewSizeInGB, UOperatingSystemP void()
+GetSizeAsText(const EOperatingSystemSizeMethod SizeMethod FText()
+GetStoragePercentage(const UOperatingSystemPartition *Partition, float()
+GetHardDiskSize(FGenericError &OutError, const EOperatingSy double()
+UninstallProgram(const FName &ProgramIdentifier, FGenericErr void()
+UninstallProgramByClass(const TSoftClassPtr< UOperatingSystemBasePr void()
+InstallProgramFromPackage(const FName &ProgramIdentifier, FGenericErr UOperatingSystemBaseProgram() *
+InstallProgramFromClass(FGenericError &OutErrorIfAny, const TSoftCl UOperatingSystemBaseProgram() *
+SetProgramAtStartup(UOperatingSystemBaseProgram *TargetProgram, bool()
+BeginInstallation(UOperatingSystemPartition *TargetPartition, void()
+AllocatePartition(const double SizeInBytes, FGenericError &Ou UOperatingSystemPartition() *
+RemovePartition(UOperatingSystemPartition *PartitionToDelet void()
+RefreshPartitions() void()
+InstallationCompleted(const bool bSwitchToDesktop=true) void()
+CreateNewUser(const FOperatingSystemUser &NewUser, const bool()
+LoginUser(const FText &Username, const FText &Passwor bool()
+UpdateCurrentUserDetails(const FOperatingSystemUser &UpdatedDetails) bool()
+HasEnoughSpace(const double &TestSizeInBytes, const UOpera bool()
+GetDiskPartitions() const TArray()< UOperatingSystemPartition() *
+GetOperatingSystemPartition() const UOperatingSystemPartition() *
+CloseProgram(UOperatingSystemBaseProgram *TargetProgram, void()
+BringBackgroundProgramToFront(UOperatingSystemBaseProgram *TargetProgram) bool()
+IsProgramInBackground(UOperatingSystemBaseProgram *TestProgram) c bool()
+MinimizeProgram(UOperatingSystemBaseProgram *TargetProgram) void()
+CloseAllRunningPrograms() void()
+RestoreMinimizedProgram(const UOperatingSystemBaseProgram *TargetPr void()
+GetDirectoryIconObject(const FGameplayTag &TestTag) const UObject *
+IsUnix() const bool()
+GetBsodOnScreenTime() const float()
+GetToastNotificationDisplayTime() const float()
+GetInstalledPrograms() const TArray()< UOperatingSystemBaseProgram()
+GetInstalledProgramsMap(TMap< FName, UOperatingSystemBaseProgram * void()
+GetStartupPrograms(TMap< FName, UOperatingSystemBaseProgram * void()
+FindProgramData(const UOperatingSystemBaseProgram *TargetPr UOperatingSystemProgramData() *
+AddProgramData(const UOperatingSystemBaseProgram *TargetPr void()
+GetInstalledProgram(const TSoftClassPtr< UOperatingSystemBasePr UOperatingSystemBaseProgram() *
+IsProgramInstalled(const TSoftClassPtr< UOperatingSystemBasePr bool()
+GetRunningProgram(const TSoftClassPtr< UOperatingSystemBasePr UOperatingSystemBaseProgram() *
+IsPreInstalledOperatingSystem() const bool()
+GetSettings() const UOperatingSystemSettingsData() *
+IsRunningOnPortableDevice() const bool()
+FindPartitionFromLetter(const FName &TargetDiskLetter) const UOperatingSystemPartition() *
+GetRootCommand() const TOptional()< FText() >
+GetRootUser() const TOptional()< FOperatingSystemUser() >
+HasValidRootCommandAndUser() const bool()
+IsShuttingDown() const bool()
+IsRestarting() const bool()
+GetAllUsers() const TArray()< FOperatingSystemUser() >
+GetOperatingSystemProgramRestoredEventName() FName()
+CreateOperatingSystem(UOperatingSystemBaseDevice *OwningDevice, F UOperatingSystem() *
+GetOperatingSystemUniqueID(const UOperatingSystem *TestOperatingSystem FString()
+TimerHandle_OperatingSystemInstallation : FTimerHandle()
+TimerHandle_LoadingTime : FTimerHandle()
+Name : FText()
+CompanyName : FText()
+Version : FOperatingSystemVersion()
+Icon : TSoftObjectPtr()< UObject >
+DirectoryIcons : TMap()< FGameplayTag(), TSoftObjectPtr()
+InstallationSpace : float()
+SupportedDevices : FGameplayTagContainer()
+MustHavePrograms : TSoftObjectPtr()< UOperatingSystemProgra
+PostInstallStartupPrograms : TSoftObjectPtr()< UOperatingSystemProgra
+DefaultDirectories : TSoftObjectPtr()< UOperatingSystemDirect
+SettingsDataClass : TSoftClassPtr()< UOperatingSystemSetting
+WidgetClass : TSoftClassPtr()< UOperatingSystemWidget(
+BsodWidgetClass : TSoftClassPtr()< UOperatingSystemBsodWid
+NotificationSettings : FOperatingSystemNotificationSettings()
+InstallationTime : FOperatingSystemRangeTime()
+LoadingTime : FOperatingSystemRangeTime()
+LoadingTimeInitial : FOperatingSystemRangeTime()
+LogonToDesktopTime : FOperatingSystemRangeTime()
+BsodOnScreenTime : FOperatingSystemRangeTime()
+OperatingSystemTag : FGameplayTag()
+ParentDevice : TWeakObjectPtr()< UOperatingSystemBaseDe
+OperatingSystemSettingsData : TObjectPtr()< UOperatingSystemSettingsDa
+OperatingSystemWidget : TObjectPtr()< UOperatingSystemWidget() >
+RunningPrograms : TMap()< int32(), TObjectPtr()< UOperatin
+BackgroundRunningPrograms : TMap()< int32(), TObjectPtr()< UOperatin
+InstalledPrograms : TMap()< FName(), UOperatingSystemBasePro
+ProgramDataObjs : TMap()< FName(), UOperatingSystemProgram
+CurrentUser : FOperatingSystemUser()
+bIsStartingForTheFirstTime : uint8()
+TotalNotifications : int32()
+TotalErrorNotifications : int32()
+TotalWarningNotifications : int32()
+BSODWidget : TObjectPtr()< UOperatingSystemBsodWidget
+TaskbarButtons : TMap()< int32(), TWeakObjectPtr()< UOper
+PreviousFocusedTaskbarButton : TWeakObjectPtr()< UOperatingSystemTaskba
+LastFocusedTaskbarButton : TWeakObjectPtr()< UOperatingSystemTaskba
+StartupPrograms : TMap()< FName(), TWeakObjectPtr()< UOper
+PendingStartupPrograms : TArray()< TWeakObjectPtr()< UOperatingSy
+TargetPartitionID : FOperatingSystemUniqueId()
+LastBroughtToFrontWindow : TWeakObjectPtr()< UDraggableWindow() >
+bAutoLogin : uint8()
+bInstallStartupPrograms : uint8()
+DeviceName : FText()
+OnShowNotification(const FOperatingSystemNotification &NewNoti void()
+OnAllOnNotificationsCleared() void()
+OnValidate(FGenericError &OutError) const void()
+FinalizePreInstallation(FGenericError &OutError) void()
+PrepareOperatingSystemInstallImpl(FGenericError &OutError) void()
+StartOperatingSystemImpl(FGenericError &OutError) bool()
+PostLoadOperatingSystemImpl(FGenericError &OutError) void()
+FinishInstallationImpl() void()
+InstallStartupProgramsImpl() void()
+OnPartitionLoaded(UOperatingSystemPartition &LoadedPartition, void()
+FindProgramFromPackage(const FName &ProgramIdentifier) TSoftClassPtr()< UOperatingSystemBasePro
+K2_CanStartOperatingSystem(FGenericError &ReturnError) bool()
+Internal_CreateDefaultDirectories(FGenericError &OutError) void()
+Internal_PrepareInstall(FGenericError &OutError) void()
+Internal_FinalizePreInstallation(FGenericError &OutError) void()
+Internal_Validate(FGenericError &OutError) const void()
+Internal_CreateNotificationManager() void()
+Internal_LoadSettings(const TWeakObjectPtr< const UOperatingSyste const()FOperatingSystemDeviceSaveLoad()
+Internal_RunPendingStartupProgram() void()
+Internal_InstallProgram(const TSoftClassPtr< UOperatingSystemBasePr UOperatingSystemBaseProgram() *
+Internal_LoadSavedProgram(const TSoftClassPtr< UOperatingSystemBasePr void()
+Internal_SetTaskbarButtonStateToUnfocused() void()
+Internal_BringWindowToFront(UDraggableWindow *TargetWindow) void()
}
Caller impact — GetSettings
Section titled “Caller impact — GetSettings”Documented call sites inside the plugin (92):
flowchart LR UOperatingSystem__GetSettings["UOperatingSystem::GetSettings"] UOperatingSystem__AddNotification["UOperatingSystem::AddNotification"] UOperatingSystem__AddNotification --> UOperatingSystem__GetSettings UOperatingSystem__AddNotification --> UOperatingSystem__GetSettings UOperatingSystem__AddProgramData["UOperatingSystem::AddProgramData"] UOperatingSystem__AddProgramData --> UOperatingSystem__GetSettings UOperatingSystem__AddRunningProgram["UOperatingSystem::AddRunningProgram"] UOperatingSystem__AddRunningProgram --> UOperatingSystem__GetSettings UOperatingSystem__AllocatePartition["UOperatingSystem::AllocatePartition"] UOperatingSystem__AllocatePartition --> UOperatingSystem__GetSettings UOperatingSystem__BeginInstallation["UOperatingSystem::BeginInstallation"] UOperatingSystem__BeginInstallation --> UOperatingSystem__GetSettings UOperatingSystem__BringBackgroundProgramToFront["UOperatingSystem::BringBackgroundProgramToFront"] UOperatingSystem__BringBackgroundProgramToFront --> UOperatingSystem__GetSettings UOperatingSystem__BringWindowToFront["UOperatingSystem::BringWindowToFront"] UOperatingSystem__BringWindowToFront --> UOperatingSystem__GetSettings UOperatingSystem__ClearAllNotifications["UOperatingSystem::ClearAllNotifications"] UOperatingSystem__ClearAllNotifications --> UOperatingSystem__GetSettings UOperatingSystem__CloseAllRunningPrograms["UOperatingSystem::CloseAllRunningPrograms"] UOperatingSystem__CloseAllRunningPrograms --> UOperatingSystem__GetSettings UOperatingSystem__CloseProgram["UOperatingSystem::CloseProgram"] UOperatingSystem__CloseProgram --> UOperatingSystem__GetSettings UOperatingSystem__ConsumeSpaceInGB["UOperatingSystem::ConsumeSpaceInGB"] UOperatingSystem__ConsumeSpaceInGB --> UOperatingSystem__GetSettings UOperatingSystem__ConsumeSpaceInMB["UOperatingSystem::ConsumeSpaceInMB"] UOperatingSystem__ConsumeSpaceInMB --> UOperatingSystem__GetSettings UOperatingSystem__CreateDirectoryInPath["UOperatingSystem::CreateDirectoryInPath"] UOperatingSystem__CreateDirectoryInPath --> UOperatingSystem__GetSettings UOperatingSystemNonUnix__CreateDirectoryInPath["UOperatingSystemNonUnix::CreateDirectoryInPath"] UOperatingSystemNonUnix__CreateDirectoryInPath --> UOperatingSystem__GetSettings UOperatingSystemUnix__CreateDirectoryInPath["UOperatingSystemUnix::CreateDirectoryInPath"] UOperatingSystemUnix__CreateDirectoryInPath --> UOperatingSystem__GetSettings UOperatingSystem__CreateNewUser["UOperatingSystem::CreateNewUser"] UOperatingSystem__CreateNewUser --> UOperatingSystem__GetSettings UOperatingSystem__CreateNewWindow["UOperatingSystem::CreateNewWindow"] UOperatingSystem__CreateNewWindow --> UOperatingSystem__GetSettings UOperatingSystem__CreateOperatingSystem["UOperatingSystem::CreateOperatingSystem"] UOperatingSystem__CreateOperatingSystem --> UOperatingSystem__GetSettings UOperatingSystem__CreateProgramsFromRepository["UOperatingSystem::CreateProgramsFromRepository"] UOperatingSystem__CreateProgramsFromRepository --> UOperatingSystem__GetSettings UOperatingSystemUnix__CreateRootDirectory["UOperatingSystemUnix::CreateRootDirectory"] UOperatingSystemUnix__CreateRootDirectory --> UOperatingSystem__GetSettings UOperatingSystem__DestroyOS["UOperatingSystem::DestroyOS"] UOperatingSystem__DestroyOS --> UOperatingSystem__GetSettings UOperatingSystemNonUnix__FinalizePreInstallation["UOperatingSystemNonUnix::FinalizePreInstallation"] UOperatingSystemNonUnix__FinalizePreInstallation --> UOperatingSystem__GetSettings UOperatingSystemUnix__FinalizePreInstallation["UOperatingSystemUnix::FinalizePreInstallation"] UOperatingSystemUnix__FinalizePreInstallation --> UOperatingSystem__GetSettings UOperatingSystemNonUnix__FindDiskLetterAtIndex["UOperatingSystemNonUnix::FindDiskLetterAtIndex"] UOperatingSystemNonUnix__FindDiskLetterAtIndex --> UOperatingSystem__GetSettings UOperatingSystemNonUnix__FindPartitionFromLetter["UOperatingSystemNonUnix::FindPartitionFromLetter"] UOperatingSystemNonUnix__FindPartitionFromLetter --> UOperatingSystem__GetSettings UOperatingSystem__FindProgramData["UOperatingSystem::FindProgramData"] UOperatingSystem__FindProgramData --> UOperatingSystem__GetSettings UOperatingSystemUnix__FindProgramFromPackage["UOperatingSystemUnix::FindProgramFromPackage"] UOperatingSystemUnix__FindProgramFromPackage --> UOperatingSystem__GetSettings UOperatingSystem__FinishInstallation["UOperatingSystem::FinishInstallation"] UOperatingSystem__FinishInstallation --> UOperatingSystem__GetSettings UOperatingSystem__GetDirectoryIconObject["UOperatingSystem::GetDirectoryIconObject"] UOperatingSystem__GetDirectoryIconObject --> UOperatingSystem__GetSettings UOperatingSystem__GetDiskPartitions["UOperatingSystem::GetDiskPartitions"] UOperatingSystem__GetDiskPartitions --> UOperatingSystem__GetSettings UOperatingSystem__GetHardDiskSize["UOperatingSystem::GetHardDiskSize"] UOperatingSystem__GetHardDiskSize --> UOperatingSystem__GetSettings UOperatingSystem__GetInitialLoadingTime["UOperatingSystem::GetInitialLoadingTime"] UOperatingSystem__GetInitialLoadingTime --> UOperatingSystem__GetSettings UOperatingSystem__GetInstallationTime["UOperatingSystem::GetInstallationTime"] UOperatingSystem__GetInstallationTime --> UOperatingSystem__GetSettings UOperatingSystem__GetInstalledProgram["UOperatingSystem::GetInstalledProgram"] UOperatingSystem__GetInstalledProgram --> UOperatingSystem__GetSettings UOperatingSystem__GetInstalledPrograms["UOperatingSystem::GetInstalledPrograms"] UOperatingSystem__GetInstalledPrograms --> UOperatingSystem__GetSettings UOperatingSystem__GetInstalledProgramsMap["UOperatingSystem::GetInstalledProgramsMap"] UOperatingSystem__GetInstalledProgramsMap --> UOperatingSystem__GetSettings UOperatingSystem__GetLoadingTime["UOperatingSystem::GetLoadingTime"] UOperatingSystem__GetLoadingTime --> UOperatingSystem__GetSettings UOperatingSystem__GetOperatingSystemPartition["UOperatingSystem::GetOperatingSystemPartition"] UOperatingSystem__GetOperatingSystemPartition --> UOperatingSystem__GetSettings UOperatingSystem__GetOperatingSystemUniqueID["UOperatingSystem::GetOperatingSystemUniqueID"] UOperatingSystem__GetOperatingSystemUniqueID --> UOperatingSystem__GetSettings UOperatingSystemUnix__GetRootCommand["UOperatingSystemUnix::GetRootCommand"] UOperatingSystemUnix__GetRootCommand --> UOperatingSystem__GetSettings UOperatingSystem__GetRunningProgram["UOperatingSystem::GetRunningProgram"] UOperatingSystem__GetRunningProgram --> UOperatingSystem__GetSettings UOperatingSystem__GetSizeAsText["UOperatingSystem::GetSizeAsText"] UOperatingSystem__GetSizeAsText --> UOperatingSystem__GetSettings UOperatingSystem__GetStartupPrograms["UOperatingSystem::GetStartupPrograms"] UOperatingSystem__GetStartupPrograms --> UOperatingSystem__GetSettings UOperatingSystem__GetStoragePercentage["UOperatingSystem::GetStoragePercentage"] UOperatingSystem__GetStoragePercentage --> UOperatingSystem__GetSettings UOperatingSystem__HasEnoughSpace["UOperatingSystem::HasEnoughSpace"] UOperatingSystem__HasEnoughSpace --> UOperatingSystem__GetSettings UOperatingSystem__InstallationCompleted["UOperatingSystem::InstallationCompleted"] UOperatingSystem__InstallationCompleted --> UOperatingSystem__GetSettings UOperatingSystem__InstallProgramFromClass["UOperatingSystem::InstallProgramFromClass"] UOperatingSystem__InstallProgramFromClass --> UOperatingSystem__GetSettings UOperatingSystem__InstallProgramFromPackage["UOperatingSystem::InstallProgramFromPackage"] UOperatingSystem__InstallProgramFromPackage --> UOperatingSystem__GetSettings UOperatingSystem__Internal_BringWindowToFront["UOperatingSystem::Internal_BringWindowToFront"] UOperatingSystem__Internal_BringWindowToFront --> UOperatingSystem__GetSettings UOperatingSystem__Internal_CreateDefaultDirectories["UOperatingSystem::Internal_CreateDefaultDirectories"] UOperatingSystem__Internal_CreateDefaultDirectories --> UOperatingSystem__GetSettings UOperatingSystem__Internal_CreateNotificationManager["UOperatingSystem::Internal_CreateNotificationManager"] UOperatingSystem__Internal_CreateNotificationManager --> UOperatingSystem__GetSettings UOperatingSystem__Internal_FinalizePreInstallation["UOperatingSystem::Internal_FinalizePreInstallation"] UOperatingSystem__Internal_FinalizePreInstallation --> UOperatingSystem__GetSettings UOperatingSystem__Internal_InstallProgram["UOperatingSystem::Internal_InstallProgram"] UOperatingSystem__Internal_InstallProgram --> UOperatingSystem__GetSettings UOperatingSystem__Internal_LoadSavedProgram["UOperatingSystem::Internal_LoadSavedProgram"] UOperatingSystem__Internal_LoadSavedProgram --> UOperatingSystem__GetSettings UOperatingSystem__Internal_LoadSettings["UOperatingSystem::Internal_LoadSettings"] UOperatingSystem__Internal_LoadSettings --> UOperatingSystem__GetSettings UOperatingSystem__Internal_PrepareInstall["UOperatingSystem::Internal_PrepareInstall"] UOperatingSystem__Internal_PrepareInstall --> UOperatingSystem__GetSettings UOperatingSystem__Internal_RunPendingStartupProgram["UOperatingSystem::Internal_RunPendingStartupProgram"] UOperatingSystem__Internal_RunPendingStartupProgram --> UOperatingSystem__GetSettings UOperatingSystem__Internal_SetTaskbarButtonStateToUnfocused["UOperatingSystem::Internal_SetTaskbarButtonStateToUnfocused"] UOperatingSystem__Internal_SetTaskbarButtonStateToUnfocused --> UOperatingSystem__GetSettings UOperatingSystem__Internal_Validate["UOperatingSystem::Internal_Validate"] UOperatingSystem__Internal_Validate --> UOperatingSystem__GetSettings UOperatingSystem__IsProgramInBackground["UOperatingSystem::IsProgramInBackground"] UOperatingSystem__IsProgramInBackground --> UOperatingSystem__GetSettings UOperatingSystem__IsProgramInstalled["UOperatingSystem::IsProgramInstalled"] UOperatingSystem__IsProgramInstalled --> UOperatingSystem__GetSettings UOperatingSystem__IsProgramRunning["UOperatingSystem::IsProgramRunning"] UOperatingSystem__IsProgramRunning --> UOperatingSystem__GetSettings UOperatingSystem__IsProgramRunning --> UOperatingSystem__GetSettings UOperatingSystem__LoginUser["UOperatingSystem::LoginUser"] UOperatingSystem__LoginUser --> UOperatingSystem__GetSettings UOperatingSystem__MinimizeProgram["UOperatingSystem::MinimizeProgram"] UOperatingSystem__MinimizeProgram --> UOperatingSystem__GetSettings UOperatingSystemNonUnix__OnPartitionLoaded["UOperatingSystemNonUnix::OnPartitionLoaded"] UOperatingSystemNonUnix__OnPartitionLoaded --> UOperatingSystem__GetSettings UOperatingSystem__OnShowDesktop["UOperatingSystem::OnShowDesktop"] UOperatingSystem__OnShowDesktop --> UOperatingSystem__GetSettings UOperatingSystem__OnShowNotification["UOperatingSystem::OnShowNotification"] UOperatingSystem__OnShowNotification --> UOperatingSystem__GetSettings UOperatingSystemUnix__OnValidate["UOperatingSystemUnix::OnValidate"] UOperatingSystemUnix__OnValidate --> UOperatingSystem__GetSettings UOperatingSystem__PostLoadOperatingSystem["UOperatingSystem::PostLoadOperatingSystem"] UOperatingSystem__PostLoadOperatingSystem --> UOperatingSystem__GetSettings UOperatingSystemNonUnix__PostLoadOperatingSystemImpl["UOperatingSystemNonUnix::PostLoadOperatingSystemImpl"] UOperatingSystemNonUnix__PostLoadOperatingSystemImpl --> UOperatingSystem__GetSettings UOperatingSystemUnix__PostLoadOperatingSystemImpl["UOperatingSystemUnix::PostLoadOperatingSystemImpl"] UOperatingSystemUnix__PostLoadOperatingSystemImpl --> UOperatingSystem__GetSettings UOperatingSystem__ProgramStarted["UOperatingSystem::ProgramStarted"] UOperatingSystem__ProgramStarted --> UOperatingSystem__GetSettings UOperatingSystem__RefreshPartitions["UOperatingSystem::RefreshPartitions"] UOperatingSystem__RefreshPartitions --> UOperatingSystem__GetSettings UOperatingSystem__RemovePartition["UOperatingSystem::RemovePartition"] UOperatingSystem__RemovePartition --> UOperatingSystem__GetSettings UOperatingSystem__RestartOS["UOperatingSystem::RestartOS"] UOperatingSystem__RestartOS --> UOperatingSystem__GetSettings UOperatingSystem__RestoreMinimizedProgram["UOperatingSystem::RestoreMinimizedProgram"] UOperatingSystem__RestoreMinimizedProgram --> UOperatingSystem__GetSettings UOperatingSystemSettingModule_Wallpaper__SaveBundledWallpaper["UOperatingSystemSettingModule_Wallpaper::SaveBundledWallpaper"] UOperatingSystemSettingModule_Wallpaper__SaveBundledWallpaper --> UOperatingSystem__GetSettings UOperatingSystemSettingModule_Wallpaper__SaveCustomWallpaper["UOperatingSystemSettingModule_Wallpaper::SaveCustomWallpaper"] UOperatingSystemSettingModule_Wallpaper__SaveCustomWallpaper --> UOperatingSystem__GetSettings UOperatingSystem__SetAutoLogin["UOperatingSystem::SetAutoLogin"] UOperatingSystem__SetAutoLogin --> UOperatingSystem__GetSettings UOperatingSystem__SetDeviceName["UOperatingSystem::SetDeviceName"] UOperatingSystem__SetDeviceName --> UOperatingSystem__GetSettings UOperatingSystem__SetProgramAtStartup["UOperatingSystem::SetProgramAtStartup"] UOperatingSystem__SetProgramAtStartup --> UOperatingSystem__GetSettings UOperatingSystem__SetToInstallStartupPrograms["UOperatingSystem::SetToInstallStartupPrograms"] UOperatingSystem__SetToInstallStartupPrograms --> UOperatingSystem__GetSettings UOperatingSystem__ShutdownOS["UOperatingSystem::ShutdownOS"] UOperatingSystem__ShutdownOS --> UOperatingSystem__GetSettings UOperatingSystem__StartOperatingSystem["UOperatingSystem::StartOperatingSystem"] UOperatingSystem__StartOperatingSystem --> UOperatingSystem__GetSettings UOperatingSystemNonUnix__StartOperatingSystemImpl["UOperatingSystemNonUnix::StartOperatingSystemImpl"] UOperatingSystemNonUnix__StartOperatingSystemImpl --> UOperatingSystem__GetSettings UOperatingSystemUnix__StartOperatingSystemImpl["UOperatingSystemUnix::StartOperatingSystemImpl"] UOperatingSystemUnix__StartOperatingSystemImpl --> UOperatingSystem__GetSettings UOperatingSystem__UninstallProgram["UOperatingSystem::UninstallProgram"] UOperatingSystem__UninstallProgram --> UOperatingSystem__GetSettings UOperatingSystem__UninstallProgramByClass["UOperatingSystem::UninstallProgramByClass"] UOperatingSystem__UninstallProgramByClass --> UOperatingSystem__GetSettings UOperatingSystemUnixPhone__UOperatingSystemUnixPhone["UOperatingSystemUnixPhone::UOperatingSystemUnixPhone"] UOperatingSystemUnixPhone__UOperatingSystemUnixPhone --> UOperatingSystem__GetSettings UOperatingSystem__UpdateCurrentUserDetails["UOperatingSystem::UpdateCurrentUserDetails"] UOperatingSystem__UpdateCurrentUserDetails --> UOperatingSystem__GetSettings
Caller impact — AddNotification
Section titled “Caller impact — AddNotification”Documented call sites inside the plugin (17):
flowchart LR UOperatingSystem__AddNotification["UOperatingSystem::AddNotification"] UOperatingSystemStatics__AddNotification["UOperatingSystemStatics::AddNotification"] UOperatingSystemStatics__AddNotification --> UOperatingSystem__AddNotification UOperatingSystemStatics__AddNotificationFromError["UOperatingSystemStatics::AddNotificationFromError"] UOperatingSystemStatics__AddNotificationFromError --> UOperatingSystem__AddNotification UOperatingSystem__AddRunningProgram["UOperatingSystem::AddRunningProgram"] UOperatingSystem__AddRunningProgram --> UOperatingSystem__AddNotification UOperatingSystem__CloseProgram["UOperatingSystem::CloseProgram"] UOperatingSystem__CloseProgram --> UOperatingSystem__AddNotification UOperatingSystem__ConsumeSpaceInGB["UOperatingSystem::ConsumeSpaceInGB"] UOperatingSystem__ConsumeSpaceInGB --> UOperatingSystem__AddNotification UOperatingSystem__ConsumeSpaceInMB["UOperatingSystem::ConsumeSpaceInMB"] UOperatingSystem__ConsumeSpaceInMB --> UOperatingSystem__AddNotification UOperatingSystemUserManager__CreateNewUser["UOperatingSystemUserManager::CreateNewUser"] UOperatingSystemUserManager__CreateNewUser --> UOperatingSystem__AddNotification UOperatingSystem__CreateProgramsFromRepository["UOperatingSystem::CreateProgramsFromRepository"] UOperatingSystem__CreateProgramsFromRepository --> UOperatingSystem__AddNotification UOperatingSystem__FinishInstallation["UOperatingSystem::FinishInstallation"] UOperatingSystem__FinishInstallation --> UOperatingSystem__AddNotification UOperatingSystem__InstallProgramFromClass["UOperatingSystem::InstallProgramFromClass"] UOperatingSystem__InstallProgramFromClass --> UOperatingSystem__AddNotification UOperatingSystem__InstallProgramFromPackage["UOperatingSystem::InstallProgramFromPackage"] UOperatingSystem__InstallProgramFromPackage --> UOperatingSystem__AddNotification UOperatingSystem__Internal_InstallProgram["UOperatingSystem::Internal_InstallProgram"] UOperatingSystem__Internal_InstallProgram --> UOperatingSystem__AddNotification UOperatingSystemNonUnix__PrepareOperatingSystemInstallImpl["UOperatingSystemNonUnix::PrepareOperatingSystemInstallImpl"] UOperatingSystemNonUnix__PrepareOperatingSystemInstallImpl --> UOperatingSystem__AddNotification UOperatingSystemUnix__PrepareOperatingSystemInstallImpl["UOperatingSystemUnix::PrepareOperatingSystemInstallImpl"] UOperatingSystemUnix__PrepareOperatingSystemInstallImpl --> UOperatingSystem__AddNotification UOperatingSystem__StartOperatingSystem["UOperatingSystem::StartOperatingSystem"] UOperatingSystem__StartOperatingSystem --> UOperatingSystem__AddNotification UOperatingSystemStore__SubmitRating["UOperatingSystemStore::SubmitRating"] UOperatingSystemStore__SubmitRating --> UOperatingSystem__AddNotification UOperatingSystem__UninstallProgram["UOperatingSystem::UninstallProgram"] UOperatingSystem__UninstallProgram --> UOperatingSystem__AddNotification
Caller impact — GetOperatingSystemPartition
Section titled “Caller impact — GetOperatingSystemPartition”Documented call sites inside the plugin (5):
flowchart LR UOperatingSystem__GetOperatingSystemPartition["UOperatingSystem::GetOperatingSystemPartition"] UOperatingSystem__CreateProgramsFromRepository["UOperatingSystem::CreateProgramsFromRepository"] UOperatingSystem__CreateProgramsFromRepository --> UOperatingSystem__GetOperatingSystemPartition UOperatingSystemUnix__CreateRootDirectory["UOperatingSystemUnix::CreateRootDirectory"] UOperatingSystemUnix__CreateRootDirectory --> UOperatingSystem__GetOperatingSystemPartition UOperatingSystem__InstallProgramFromClass["UOperatingSystem::InstallProgramFromClass"] UOperatingSystem__InstallProgramFromClass --> UOperatingSystem__GetOperatingSystemPartition UOperatingSystem__Internal_CreateDefaultDirectories["UOperatingSystem::Internal_CreateDefaultDirectories"] UOperatingSystem__Internal_CreateDefaultDirectories --> UOperatingSystem__GetOperatingSystemPartition UOperatingSystemTerminal__OnStart["UOperatingSystemTerminal::OnStart"] UOperatingSystemTerminal__OnStart --> UOperatingSystem__GetOperatingSystemPartition
Caller impact — IsProgramRunning
Section titled “Caller impact — IsProgramRunning”Documented call sites inside the plugin (2):
flowchart LR UOperatingSystem__IsProgramRunning["UOperatingSystem::IsProgramRunning"] UOperatingSystem__AddRunningProgram["UOperatingSystem::AddRunningProgram"] UOperatingSystem__AddRunningProgram --> UOperatingSystem__IsProgramRunning UOperatingSystem__UninstallProgram["UOperatingSystem::UninstallProgram"] UOperatingSystem__UninstallProgram --> UOperatingSystem__IsProgramRunning
Caller impact — GetDiskPartitions
Section titled “Caller impact — GetDiskPartitions”Documented call sites inside the plugin (3):
flowchart LR UOperatingSystem__GetDiskPartitions["UOperatingSystem::GetDiskPartitions"] UOperatingSystemNonUnix__FindPartitionFromLetter["UOperatingSystemNonUnix::FindPartitionFromLetter"] UOperatingSystemNonUnix__FindPartitionFromLetter --> UOperatingSystem__GetDiskPartitions UOperatingSystemNonUnix__StartOperatingSystemImpl["UOperatingSystemNonUnix::StartOperatingSystemImpl"] UOperatingSystemNonUnix__StartOperatingSystemImpl --> UOperatingSystem__GetDiskPartitions UOperatingSystemUnix__StartOperatingSystemImpl["UOperatingSystemUnix::StartOperatingSystemImpl"] UOperatingSystemUnix__StartOperatingSystemImpl --> UOperatingSystem__GetDiskPartitions
Caller impact — GetOperatingSystemUniqueID
Section titled “Caller impact — GetOperatingSystemUniqueID”Documented call sites inside the plugin (3):
flowchart LR UOperatingSystem__GetOperatingSystemUniqueID["UOperatingSystem::GetOperatingSystemUniqueID"] UOperatingSystemUserManager__GetUserKey["UOperatingSystemUserManager::GetUserKey"] UOperatingSystemUserManager__GetUserKey --> UOperatingSystem__GetOperatingSystemUniqueID UOperatingSystemSaveGame__SaveGame["UOperatingSystemSaveGame::SaveGame"] UOperatingSystemSaveGame__SaveGame --> UOperatingSystem__GetOperatingSystemUniqueID UOperatingSystemBaseDevice__StartOperatingSystem["UOperatingSystemBaseDevice::StartOperatingSystem"] UOperatingSystemBaseDevice__StartOperatingSystem --> UOperatingSystem__GetOperatingSystemUniqueID
Represents an operating system in the simulation.
UOperatingSystem is a subclass of UObject and it contains various properties and methods related to an operating system, such as its name, version, supported devices, installed programs, etc. DO NOT inherit from this class directly. @See UOperatingSystemUnix @See UOperatingSystemNonUnix
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
FOnOperatingSystemWindowBroughtToFront | OnOperatingSystemWindowBroughtToFront | |
FOperatingSystemProgramDelegate | OnProgramStarted | Delegate representing the event when a program starts in the operating system. |
FOperatingSystemProgramDelegate | OnProgramClosed | Delegate for handling the program closed event. |
FOperatingSystemProgramDelegate | OnProgramInstalled | Delegate representing the event when a program is installed in the operating system. |
FOperatingSystemProgramDelegate | OnProgramUninstalled |
OnOperatingSystemWindowBroughtToFront
Section titled “OnOperatingSystemWindowBroughtToFront”FOnOperatingSystemWindowBroughtToFront OnOperatingSystemWindowBroughtToFrontDefined in OperatingSystem.h:302
Referenced by
Section titled “Referenced by”OnProgramStarted
Section titled “OnProgramStarted”FOperatingSystemProgramDelegate OnProgramStartedDefined in OperatingSystem.h:327 Delegate representing the event when a program starts in the operating system.
This delegate is used to handle the event when a program starts in the operating system. It can be bound to functions or methods that need to be executed when a program is started.
Usage example:
UFUNCTION()void HandleProgramStarted(UOperatingSystemBaseProgram* Program){ // Code to handle program started event.}
// Bind the delegate to the handler function.OnProgramStarted.AddDynamic(this, &ThisClass::HandleProgramStarted);See also: FOperatingSystemProgramDelegate
See also: UOperatingSystemBaseProgram
Referenced by
Section titled “Referenced by”OnProgramClosed
Section titled “OnProgramClosed”FOperatingSystemProgramDelegate OnProgramClosedDefined in OperatingSystem.h:354 Delegate for handling the program closed event.
This delegate can be assigned a blueprint callable function to handle the event when the program is closed.
Example usage:
UFUNCTION()void HandleProgramClosed(UOperatingSystemBaseProgram* Program){ // Code to handle program closed event}
void SomeFunction(){ // Assigning the blueprint callable function to the delegate OnProgramClosed.AddDynamic(this, &ThisClass::HandleProgramClosed);}See also: FOperatingSystemProgramDelegate
See also: UOperatingSystemBaseProgram
OnProgramInstalled
Section titled “OnProgramInstalled”FOperatingSystemProgramDelegate OnProgramInstalledDefined in OperatingSystem.h:381 Delegate representing the event when a program is installed in the operating system.
This delegate is used to handle the event when a program is installed in the operating system. It can be assigned a function or method with the appropriate signature to handle the event.
Example usage:
UFUNCTION()void HandleProgramInstalled(UOperatingSystemBaseProgram* Program){ // Code to handle program closed event}
void SomeFunction(){ // Assigning the blueprint callable function to the delegate OnProgramInstalled.AddDynamic(this, &ThisClass::HandleProgramInstalled);}See also: FOperatingSystemProgramDelegate
See also: UOperatingSystemBaseProgram
Referenced by
Section titled “Referenced by”OnProgramUninstalled
Section titled “OnProgramUninstalled”FOperatingSystemProgramDelegate OnProgramUninstalledDefined in OperatingSystem.h:408
Referenced by
Section titled “Referenced by”Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
T * | GetAs const inline | Get a pointer to the object casted as type T. |
constT * | GetAsConst const inline | Get a pointer to the object casted as type T. |
bool | AddNotification | Adds a notification to the operating system. |
bool | AddNotification | Adds a notification to the operating system. This method allows adding a notification to the operating system with the specified error, category, and verbosity. |
void | StartOperatingSystem | Start the operating system. This method starts the operating system. It performs the necessary initialization and loads the settings and programs. |
void | PostLoadOperatingSystem | Calls the PostLoadOperatingSystemImpl method and handles any error that occurs. |
void | OnShowDesktop | Called from the widget after switching to the desktop view. |
void | FinishInstallation | Finish the installation of the operating system. |
void | InstallStartupPrograms | Install the startup programs for the operating system. |
void | ShutdownOS | Shuts down the operating system. |
void | RestartOS | Restarts the operating system. |
void | DestroyOS | Destroys the operating system instance. |
int32 | AddRunningProgram | Adds a running program to the operating system. |
void | ProgramStarted | Notifies the operating system that a program has started. |
bool | IsProgramRunning const | Check if a program is running. |
bool | IsProgramRunning const | Checks if a program of the specified class is currently running. |
UDraggableWindow * | CreateNewWindow const | Creates a new window for the target program. |
void | BringWindowToFront | Bring the specified window to the front. |
UOperatingSystemDirectory * | CreateDirectoryInPath virtual | Creates a directory in the given target path. |
bool | CreateProgramsFromRepository | Create programs from a given repository. |
void | SetToInstallStartupPrograms | Sets whether to install startup programs. |
bool | ShouldInstallStartupPrograms const | Determines whether the startup programs should be installed. |
void | SetDeviceName | Sets the name of the device. |
FText | GetDeviceName const | Returns the device name. |
void | SetAutoLogin | Sets the auto login flag for the operating system. |
bool | CanAutoLogin const | Checks if auto-login is enabled. |
float | GetInstallationTime const | Retrieves the installation time of the operating system. |
float | GetLoadingTime const | Get the loading time. |
float | GetInitialLoadingTime const | Gets the initial loading time. |
constTArray< FOperatingSystemNotification > & | GetNotifications const inline | Retrieves the notifications. |
void | ClearAllNotifications | Clears all notifications on the operating system. |
void | ConsumeSpaceInMB | Consume the given amount of space in megabytes (MB) from a specific operating system partition. |
void | ConsumeSpaceInGB | Consume space on the operating system partition in gigabytes. |
FText | GetSizeAsText const | Returns the size of the given partition. |
float | GetStoragePercentage const | Returns the percentage of storage available. For example: 75%, 40% etc. |
double | GetHardDiskSize const | Returns the Hard Disk total size in given method. |
void | UninstallProgram | Uninstalls the given program identifier from this Operating System. |
void | UninstallProgramByClass | Uninstalls the given program class from this Operating System. |
UOperatingSystemBaseProgram * | InstallProgramFromPackage | Installs a program from a package. |
UOperatingSystemBaseProgram * | InstallProgramFromClass | Installs the given program class. If target partition is null, system partition is automatically used. |
bool | SetProgramAtStartup | Configures the application to run at system startup. |
void | BeginInstallation | Begin installation of this Operating System. This is a simple timer which will call UOperatingSystem::FinishInstallation after the time returned by UOperatingSystem::GetInstallationTime() |
UOperatingSystemPartition * | AllocatePartition | AllocatePartition is a method used to allocate a new partition on a specific device. |
void | RemovePartition | Removes a partition from the operating system. |
void | RefreshPartitions | Refreshes the partitions of the operating system. |
void | InstallationCompleted | Marks the completion of the installation process. |
bool | CreateNewUser | Creates a new user in the operating system. |
bool | LoginUser | Logs the user in with the given username and password. |
bool | UpdateCurrentUserDetails | Updates the details for the current user. If you don’t want specific settings to change simply leave them empty or null. |
bool | HasEnoughSpace const | Check if a given partition has enough space for a given size. |
TArray< UOperatingSystemPartition * > | GetDiskPartitions const | Retrieves the disk partitions associated with the operating system. |
UOperatingSystemPartition * | GetOperatingSystemPartition const | Retrieves the operating system partition. |
void | CloseProgram | Closes the given program. |
bool | BringBackgroundProgramToFront | Brings a background program to the foreground and activates it. The program must be currently running in the background, otherwise an error will be returned. |
bool | IsProgramInBackground const | Determines if the specified program is currently running in the background or not. |
void | MinimizeProgram | Minimizes the specified program. |
void | CloseAllRunningPrograms | Closes all running programs in the operating system. |
void | RestoreMinimizedProgram | Restores a minimized program to the foreground on the operating system’s taskbar. |
UObject * | GetDirectoryIconObject const | Retrieves the directory icon object associated with the specified tag. |
bool | IsUnix const inline | Checks if the operating system is Unix. |
float | GetBsodOnScreenTime const inline | Returns the duration, in seconds, that the blue screen of death has been visible on the screen. |
float | GetToastNotificationDisplayTime const inline | Retrieves the display time for toast notifications. |
TArray< UOperatingSystemBaseProgram * > | GetInstalledPrograms const | [DEPRECATED] Get the list of installed programs. |
void | GetInstalledProgramsMap const | Gets the TMap of installed programs. |
void | GetStartupPrograms | Gets the TMap of currently set startup programs. |
UOperatingSystemProgramData * | FindProgramData const | |
void | AddProgramData | |
UOperatingSystemBaseProgram * | GetInstalledProgram const | Retrieves the installed program of the specified class. |
bool | IsProgramInstalled const | Checks if a program is installed. This method checks if a program, represented by the provided UOperatingSystemBaseProgram subclass, is installed on the system. |
UOperatingSystemBaseProgram * | GetRunningProgram const | Retrieves the running program that matches the given class. |
bool | IsPreInstalledOperatingSystem const | Check if the operating system is pre-installed on the parent device. |
UOperatingSystemSettingsData * | GetSettings const | Retrieves the settings data object for this Operating System. |
bool | IsRunningOnPortableDevice const | Checks to see if this Operating System is running on a portable device actor. |
UOperatingSystemPartition * | FindPartitionFromLetter virtual const inline | Find a partition in the operating system from a given disk letter. |
TOptional< FText > | GetRootCommand virtual const inline | Retrieves the root command associated with the operating system. |
TOptional< FOperatingSystemUser > | GetRootUser virtual const inline | Returns the root user of the operating system. This method retrieves the root user of the operating system and returns it as an optional object. If the root user cannot be determined or is not available, an empty optional object is returned. |
bool | HasValidRootCommandAndUser const inline | Determines whether the root command and user are valid. |
bool | IsShuttingDown const | Check if the operating system is in the process of shutting down. |
bool | IsRestarting const | Checks if the operating system is currently restarting. |
TArray< FOperatingSystemUser > | GetAllUsers const | Returns an array of all users registered in the operating system. This function retrieves information about all users registered in the operating system. |
const inline
template<classT> inline T * GetAs() constDefined in OperatingSystem.h:417 Get a pointer to the object casted as type T.
Returns
Section titled “Returns”A pointer to the object casted as type T.
method assumes that T is derived from UOperatingSystem. If not, a static_assert will be triggered.
GetAsConst
Section titled “GetAsConst”const inline
template<classT> inline constT * GetAsConst() constDefined in OperatingSystem.h:427 Get a pointer to the object casted as type T.
Returns
Section titled “Returns”A pointer to the object casted as type T.
method assumes that T is derived from UOperatingSystem. If not, a static_assert will be triggered. This returns a const object.
Referenced by
Section titled “Referenced by”AddNotification
Section titled “AddNotification”bool AddNotification(constFOperatingSystemNotification & NewNotification)Defined in OperatingSystem.h:481 Adds a notification to the operating system.
This method adds a notification to the operating system. It checks if notifications are enabled in the notification settings before adding the notification. If notifications are not enabled, this method returns false. If notifications are enabled, it creates a notification manager and logs the new notification.
If the new notification is an error, it increments the total error notifications count and plays an error notification sound if enabled. If the new notification is a warning, it increments the total warning notifications count and plays a warning notification sound if enabled. If the new notification is neither an error nor a warning, it plays the default notification sound if enabled.
Parameters
Section titled “Parameters”NewNotificationThe notification to be added to the operating system.
Returns
Section titled “Returns”Returns true if the notification is successfully added, false otherwise.
Referenced by
Section titled “Referenced by”AddNotificationAddNotificationAddNotificationFromErrorAddRunningProgramCloseProgramConsumeSpaceInGBConsumeSpaceInMBCreateNewUserCreateProgramsFromRepositoryFinishInstallationInstallProgramFromClassInstallProgramFromPackageInternal_InstallProgramPrepareOperatingSystemInstallImplPrepareOperatingSystemInstallImplStartOperatingSystemSubmitRatingUninstallProgram
References
Section titled “References”bEnableNotificationsbPlayNotificationSoundGetSettingsInternal_CreateNotificationManagerNotificationSettingsNotificationSoundDefaultNotificationSoundErrorNotificationSoundWarningTotalErrorNotificationsTotalNotificationsTotalWarningNotifications
AddNotification
Section titled “AddNotification”bool AddNotification(constFGenericError & GenericError, constEOperatingSystemNotificationCategory & Category, constEOperatingSystemNotificationType Verbosity = EOperatingSystemNotificationType::Error)Defined in OperatingSystem.h:491 Adds a notification to the operating system. This method allows adding a notification to the operating system with the specified error, category, and verbosity.
Parameters
Section titled “Parameters”-
GenericErrorThe error information for the notification. -
CategoryThe category of the notification. -
VerbosityVerbosity level.
References
Section titled “References”StartOperatingSystem
Section titled “StartOperatingSystem”void StartOperatingSystem(constTWeakObjectPtr< constUOperatingSystemSaveGame > LoadGameInstance, FGenericError & OutError)Defined in OperatingSystem.h:502 Start the operating system. This method starts the operating system. It performs the necessary initialization and loads the settings and programs.
Parameters
Section titled “Parameters”-
LoadGameInstanceA weak pointer to an instance of UOperatingSystemSaveGame containing the saved game data to load. This parameter is optional and can be nullptr if no saved game is available. -
OutErrorA reference to an FGenericError object that will store any error that occurs during the startup process. Any error message will be stored in the OutError object.
References
Section titled “References”AddNotificationBSODWidgetCreateProgramsFromRepositoryCurrentUserFullBootGetGetAnalyticsManagerGetDefaultUserGetInstalledProgramGetLoadingTimeGetSettingsGetUserManagerInfoInternal_LoadSavedProgramInternal_LoadSettingsInternal_PrepareInstallK2_CanStartOperatingSystemLOG_VVLOG_WITH_NAMEMAKE_ERRORMustHaveProgramsNameNOTIFICATION_OSOperatingSystemSettingsDataOperatingSystemWidgetParentDevicePostInstallStartupProgramsSettingsDataClassStartOperatingSystemImplStartupProgramsTimerHandle_LoadingTimeUsernameWARN_WITH_NAME
PostLoadOperatingSystem
Section titled “PostLoadOperatingSystem”void PostLoadOperatingSystem()Defined in OperatingSystem.h:515 Calls the PostLoadOperatingSystemImpl method and handles any error that occurs.
This method is responsible for initializing the operating system after it has been loaded. It calls the PostLoadOperatingSystemImpl method to perform the necessary initialization steps. If an error occurs during the initialization process, it sets the error in the BSODWidget and shows the Blue Screen of Death (BSOD) on the ParentDevice.
See also: PostLoadOperatingSystemImpl
References
Section titled “References”OnShowDesktop
Section titled “OnShowDesktop”void OnShowDesktop()Defined in OperatingSystem.h:520 Called from the widget after switching to the desktop view.
References
Section titled “References”FinishInstallation
Section titled “FinishInstallation”void FinishInstallation()Defined in OperatingSystem.h:536 Finish the installation of the operating system.
This method is responsible for completing the installation process of the operating system. It performs several tasks such as creating default directories, installing startup programs, finishing the installation implementation, and notifying the user about the completion. After installation, it checks if this is the first start of the operating system and starts it if required.
See also: UOperatingSystem::Internal_CreateDefaultDirectories()
See also: UOperatingSystem::InstallStartupPrograms()
See also: UOperatingSystem::FinishInstallationImpl()
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationbIsStartingForTheFirstTimeDefaultFinishInstallationImplGetSettingsInfoInstallStartupProgramsInternal_CreateDefaultDirectoriesLOG_WITH_NAMENOTIFICATION_OSOperatingSystemWidgetParentDevice
InstallStartupPrograms
Section titled “InstallStartupPrograms”void InstallStartupPrograms()Defined in OperatingSystem.h:547 Install the startup programs for the operating system.
This method checks if the startup programs should be installed and then calls the InstallStartupProgramsImpl() method to perform the actual installation.
See also: ShouldInstallStartupPrograms()
See also: InstallStartupProgramsImpl()
Referenced by
Section titled “Referenced by”References
Section titled “References”ShutdownOS
Section titled “ShutdownOS”void ShutdownOS()Defined in OperatingSystem.h:555 Shuts down the operating system.
This method initiates the shutdown process for the operating system. It closes all running programs and triggers the shutdown procedure handled by the operating system widget.
References
Section titled “References”RestartOS
Section titled “RestartOS”void RestartOS()Defined in OperatingSystem.h:564 Restarts the operating system.
This method is used to restart the operating system. It first closes all the running programs and then initiates the restart process.
See also: CloseAllRunningPrograms(), OperatingSystemWidget
References
Section titled “References”DestroyOS
Section titled “DestroyOS”void DestroyOS()Defined in OperatingSystem.h:578 Destroys the operating system instance.
This method is responsible for completely destroying the operating system instance and freeing up any resources it may have used. It performs the following actions:
-
Resets the shared pointer to the notification manager.
-
Resets the weak pointer to the last brought to front window.
-
Removes the BSOD widget from its parent.
-
Clears the list of installed programs.
-
Clears the list of running programs.
-
Removes the operating system widget from its parent.
-
Resets the weak pointer to the parent device.
References
Section titled “References”BSODWidgetGetSettingsInstalledProgramsLastBroughtToFrontWindowOperatingSystemWidgetParentDeviceRunningPrograms
AddRunningProgram
Section titled “AddRunningProgram”int32 AddRunningProgram(UOperatingSystemBaseProgram * NewProgram, FGenericError & OutError)Defined in OperatingSystem.h:590 Adds a running program to the operating system.
This method adds a running program to the operating system. The program must be installed and the operating system must be in a running state. If the program is a single instance program, it checks if it is already running.
Parameters
Section titled “Parameters”-
NewProgramThe program to add to the operating system. -
OutErrorThe error message if the program cannot be added.
Returns
Section titled “Returns”The process ID of the added program, or INVALID_PROCESS_ID if the program cannot be added.
References
Section titled “References”AddNotificationGetSettingsINVALID_PROCESS_IDIsProgramRunningMAKE_ERRORNOTIFICATION_OSOS_LOG_VERY_VERBOSEParentDeviceRunningProgramsVerbose
ProgramStarted
Section titled “ProgramStarted”void ProgramStarted(UOperatingSystemBaseProgram * StartedProgram, constbool bIsRestored)Defined in OperatingSystem.h:607 Notifies the operating system that a program has started.
This method is used to inform the operating system that a program has started. It takes a pointer to the UOperatingSystemBaseProgram object representing the started program, and a boolean indicating whether the program is being restored from a minimized state.
If the started program has a valid taskbar button, this method adds it to the list of taskbar buttons. The taskbar button is identified by the process ID of the started program.
If the program is not being restored, the “OnProgramStarted” event is broadcasted, indicating that the program has started.
Parameters
Section titled “Parameters”-
StartedProgramPointer to the UOperatingSystemBaseProgram object representing the started program. -
bIsRestoredBoolean indicating whether the program is being restored from a minimized state.
Referenced by
Section titled “Referenced by”References
Section titled “References”IsProgramRunning
Section titled “IsProgramRunning”const
bool IsProgramRunning(constTWeakObjectPtr< constUOperatingSystemBaseProgram > TestProgram) constDefined in OperatingSystem.h:618 Check if a program is running.
This method checks if a program is currently running based on the provided TestProgram.
Parameters
Section titled “Parameters”TestProgramA weak pointer to the UOperatingSystemBaseProgram object representing the program to be checked.
Returns
Section titled “Returns”A boolean value indicating whether the program is running or not. Returns true if the TestProgram is valid and running, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”IsProgramRunning
Section titled “IsProgramRunning”const
bool IsProgramRunning(constTSubclassOf< UOperatingSystemBaseProgram > TestProgramClass) constDefined in OperatingSystem.h:626 Checks if a program of the specified class is currently running.
Parameters
Section titled “Parameters”TestProgramClassThe class of the program to check.
Returns
Section titled “Returns”True if a program of the specified class is running, false otherwise.
References
Section titled “References”CreateNewWindow
Section titled “CreateNewWindow”const
UDraggableWindow * CreateNewWindow(TWeakObjectPtr< UOperatingSystemBaseProgram > TargetProgram) constDefined in OperatingSystem.h:636 Creates a new window for the target program.
This method creates a new window for the target program specified.
Parameters
Section titled “Parameters”TargetProgramThe target program for which the new window is to be created.
Returns
Section titled “Returns”The newly created window object.
References
Section titled “References”BringWindowToFront
Section titled “BringWindowToFront”void BringWindowToFront(UDraggableWindow * TargetWindow)Defined in OperatingSystem.h:647 Bring the specified window to the front.
This method is used to bring a draggable window to the front of all other windows in the operating system.
Parameters
Section titled “Parameters”TargetWindowThe window to bring to the front. Must be a valid draggable window.
References
Section titled “References”GetSettingsInternal_BringWindowToFrontInternal_SetTaskbarButtonStateToUnfocusedLastBroughtToFrontWindowOperatingSystemWidget
CreateDirectoryInPath
Section titled “CreateDirectoryInPath”virtual
virtual UOperatingSystemDirectory * CreateDirectoryInPath(constFString & TargetPath, constFString & DirectoryName, TSoftClassPtr< UOperatingSystemDirectory > DirectoryClass, UOperatingSystemPartition * TargetPartition, constbool bIsFromSaveGame, FGenericError & OutError)Defined in OperatingSystem.h:661 Creates a directory in the given target path.
Parameters
Section titled “Parameters”-
TargetPathThe target path where the directory will be created. -
DirectoryNameThe name of the directory to be created. -
DirectoryClassThe class of the directory to be created. -
TargetPartitionThe target partition where the directory will be created. -
bIsFromSaveGameSpecifies whether the directory is created from a save game. -
OutErrorA reference to a FGenericError structure that will hold any error information.
Returns
Section titled “Returns”A pointer to the created directory, or nullptr if the directory could not be created.
Referenced by
Section titled “Referenced by”References
Section titled “References”Reimplemented by
Section titled “Reimplemented by”CreateProgramsFromRepository
Section titled “CreateProgramsFromRepository”bool CreateProgramsFromRepository(constTSoftObjectPtr< UOperatingSystemProgramsCollection > & TargetRepository, constbool bIsInstalledWithOS)Defined in OperatingSystem.h:841 Create programs from a given repository.
Parameters
Section titled “Parameters”-
TargetRepositoryThe repository from which to create the programs. Must not be null. -
bIsInstalledWithOSDetermines whether the programs are installed with the operating system.
Returns
Section titled “Returns”True if the program creation is successful, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationErrorGetOperatingSystemPartitionGetSettingsInternal_InstallProgramNOTIFICATION_OSOS_LOGOS_LOG_VERBOSE
SetToInstallStartupPrograms
Section titled “SetToInstallStartupPrograms”void SetToInstallStartupPrograms(constbool bInstall)Defined in OperatingSystem.h:852 Sets whether to install startup programs.
This method allows you to specify whether the operating system should install startup programs.
Parameters
Section titled “Parameters”bInstallA boolean value indicating whether startup programs should be installed. Set to true if startup programs should be installed, false otherwise.
References
Section titled “References”ShouldInstallStartupPrograms
Section titled “ShouldInstallStartupPrograms”const
bool ShouldInstallStartupPrograms() constDefined in OperatingSystem.h:866 Determines whether the startup programs should be installed.
Returns
Section titled “Returns”-
true if the startup programs should be installed.
-
false otherwise.
This method checks if the PostInstallStartupPrograms is null or empty. It also checks if the flag bInstallStartupPrograms is set to true. If both conditions are satisfied, the method returns true; otherwise, it returns false.
Referenced by
Section titled “Referenced by”References
Section titled “References”SetDeviceName
Section titled “SetDeviceName”void SetDeviceName(constFText & NewName)Defined in OperatingSystem.h:875 Sets the name of the device.
This method allows the user to set the name of the device.
Parameters
Section titled “Parameters”NewNameThe new name of the device.
References
Section titled “References”GetDeviceName
Section titled “GetDeviceName”const
FText GetDeviceName() constDefined in OperatingSystem.h:883 Returns the device name.
Returns
Section titled “Returns”The device name as a FText object.
References
Section titled “References”SetAutoLogin
Section titled “SetAutoLogin”void SetAutoLogin(constbool bEnableAutoLogin)Defined in OperatingSystem.h:894 Sets the auto login flag for the operating system.
This method allows the user to enable or disable auto login for the operating system.
Parameters
Section titled “Parameters”-
bEnableAutoLogin- The value indicating whether auto login should be enabled or disabled. -
true: Auto login is enabled.
-
false: Auto login is disabled.
References
Section titled “References”CanAutoLogin
Section titled “CanAutoLogin”const
bool CanAutoLogin() constDefined in OperatingSystem.h:904 Checks if auto-login is enabled.
This method returns a boolean value indicating whether the auto-login feature is enabled or not.
Returns
Section titled “Returns”true if auto-login is enabled, false otherwise.
See also: SetAutoLoginEnabled()
References
Section titled “References”GetInstallationTime
Section titled “GetInstallationTime”const
float GetInstallationTime() constDefined in OperatingSystem.h:915 Retrieves the installation time of the operating system.
Returns
Section titled “Returns”The installation time of the operating system in seconds.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetSettingsGetTimeInstallationTimeLOG_VV
GetLoadingTime
Section titled “GetLoadingTime”const
float GetLoadingTime() constDefined in OperatingSystem.h:927 Get the loading time.
This method returns the loading time. If the loading time has not been previously set, it will calculate the loading time and store it in a cached variable for future retrieval. The loading time is obtained from the LoadingTime object.
Returns
Section titled “Returns”The loading time in seconds.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetSettingsGetTimeLoadingTimeLOG_VV
GetInitialLoadingTime
Section titled “GetInitialLoadingTime”const
float GetInitialLoadingTime() constDefined in OperatingSystem.h:938 Gets the initial loading time.
This method returns the initial loading time of the operating system. If the initial loading time has not been cached yet, it will retrieve the value from the LoadingTimeInitial object and cache it for future requests.
Returns
Section titled “Returns”The initial loading time in seconds.
References
Section titled “References”GetSettingsGetTimeLoadingTimeInitialLOG_VV
GetNotifications
Section titled “GetNotifications”const inline
inline constTArray< FOperatingSystemNotification > & GetNotifications() constDefined in OperatingSystem.h:946 Retrieves the notifications.
Returns
Section titled “Returns”The array of operating system notifications.
ClearAllNotifications
Section titled “ClearAllNotifications”void ClearAllNotifications()Defined in OperatingSystem.h:952 Clears all notifications on the operating system.
References
Section titled “References”ConsumeSpaceInMB
Section titled “ConsumeSpaceInMB”void ConsumeSpaceInMB(constfloat & NewSizeInMB, UOperatingSystemPartition * Partition, FGenericError & OutError)Defined in OperatingSystem.h:969 Consume the given amount of space in megabytes (MB) from a specific operating system partition.
This method consumes space from the specified partition of the operating system by delegating the task to the associated hard disk object. If the hard disk is not valid, an error is thrown and returned through the OutError parameter. If consuming space from the partition fails, an error notification is added.
Parameters
Section titled “Parameters”-
NewSizeInMBThe amount of space to consume in megabytes (MB). -
PartitionThe operating system partition from which to consume the space. -
OutErrorAn FGenericError object used to return any errors that occur during the operation.
See also: UOperatingSystemHDD
See also: FGenericError
See also: AddNotification
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationErrorGetSettingsMAKE_ERRORNOTIFICATION_OSParentDevice
ConsumeSpaceInGB
Section titled “ConsumeSpaceInGB”void ConsumeSpaceInGB(constfloat & NewSizeInGB, UOperatingSystemPartition * Partition, FGenericError & OutError)Defined in OperatingSystem.h:983 Consume space on the operating system partition in gigabytes.
Parameters
Section titled “Parameters”-
NewSizeInGBThe amount of space to consume in gigabytes. -
PartitionThe operating system partition on which to consume the space. -
OutError(out) The error message if the operation fails.
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationErrorGetSettingsMAKE_ERRORNOTIFICATION_OSParentDevice
GetSizeAsText
Section titled “GetSizeAsText”const
FText GetSizeAsText(constEOperatingSystemSizeMethod SizeMethod, constUOperatingSystemPartition * Partition, FGenericError & OutError) constDefined in OperatingSystem.h:994 Returns the size of the given partition.
Parameters
Section titled “Parameters”-
SizeMethodYour preferred method. Bytes, Megabytes or Gigabytes. -
PartitionTarget partition to check size. -
OutErrorOutputs error (if any).
Returns
Section titled “Returns”[FText] Return text in the format {Size} {SizeString}. For example: 256 GB.
References
Section titled “References”GetSettingsMAKE_ERRORParentDevice
GetStoragePercentage
Section titled “GetStoragePercentage”const
float GetStoragePercentage(constUOperatingSystemPartition * Partition, FGenericError & OutError) constDefined in OperatingSystem.h:1002 Returns the percentage of storage available. For example: 75%, 40% etc.
Returns
Section titled “Returns”[float] Percentage of storage remaining in 0 - 100 range.
References
Section titled “References”GetSettingsMAKE_ERRORParentDevice
GetHardDiskSize
Section titled “GetHardDiskSize”const
double GetHardDiskSize(FGenericError & OutError, constEOperatingSystemSizeMethod SizeMethod = EOperatingSystemSizeMethod::GB) constDefined in OperatingSystem.h:1012 Returns the Hard Disk total size in given method.
Parameters
Section titled “Parameters”-
OutError[FGenericError&] If any error this will be valid. -
SizeMethod[const EOperatingSystemSizeMethod] How you want to represent the return size to be.
Returns
Section titled “Returns”[double] Size in given method.
References
Section titled “References”GetSettingsMAKE_ERRORParentDevice
UninstallProgram
Section titled “UninstallProgram”void UninstallProgram(constFName & ProgramIdentifier, FGenericError & OutErrorIfAny)Defined in OperatingSystem.h:1021 Uninstalls the given program identifier from this Operating System.
Parameters
Section titled “Parameters”-
ProgramIdentifierIdentifier of the program to uninstall. -
OutErrorIfAnyOutputs uninstall error (if any).
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationConvertMB_ToBytesGetSettingsInstalledProgramsIsProgramRunningMAKE_ERROROnProgramUninstalledOperatingSystemParentDeviceSaveGameSetProgramAtStartup
UninstallProgramByClass
Section titled “UninstallProgramByClass”void UninstallProgramByClass(constTSoftClassPtr< UOperatingSystemBaseProgram > ProgramClass, FGenericError & OutErrorIfAny)Defined in OperatingSystem.h:1030 Uninstalls the given program class from this Operating System.
Parameters
Section titled “Parameters”-
ProgramClassTarget program class to uninstall. -
OutErrorIfAnyOutputs uninstall error (if any).
References
Section titled “References”GetSettingsMAKE_ERRORUninstallProgram
InstallProgramFromPackage
Section titled “InstallProgramFromPackage”UOperatingSystemBaseProgram * InstallProgramFromPackage(constFName & ProgramIdentifier, FGenericError & OutErrorIfAny)Defined in OperatingSystem.h:1045 Installs a program from a package.
This method installs a program from a package specified by the ProgramIdentifier parameter. If the program is found in the package repository, it will be installed and a pointer to the installed program will be returned. If the program is not found, an error message will be assigned to the OutErrorIfAny parameter and a nullptr will be returned.
Parameters
Section titled “Parameters”-
ProgramIdentifierThe identifier of the program to install. -
OutErrorIfAny[out] The error message if program installation fails.
Returns
Section titled “Returns”A pointer to the installed program, or nullptr if program installation fails.
References
Section titled “References”AddNotificationFindProgramFromPackageGetSettingsInstallProgramFromClassMAKE_ERROROperatingSystem
InstallProgramFromClass
Section titled “InstallProgramFromClass”UOperatingSystemBaseProgram * InstallProgramFromClass(FGenericError & OutErrorIfAny, constTSoftClassPtr< UOperatingSystemBaseProgram > ProgramClass, UOperatingSystemPartition * TargetPartition = nullptr)Defined in OperatingSystem.h:1056 Installs the given program class. If target partition is null, system partition is automatically used.
Parameters
Section titled “Parameters”-
OutErrorIfAnyOutputs any error. Use the IsValid from this struct to check if there are any errors. -
ProgramClassTarget program class to install -
TargetPartitionTarget partition to install. If null, then system partition is automatically used.
Returns
Section titled “Returns”Valid program if installed. Null otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationGetOperatingSystemPartitionGetSettingsInternal_InstallProgramMAKE_ERROROperatingSystem
SetProgramAtStartup
Section titled “SetProgramAtStartup”bool SetProgramAtStartup(UOperatingSystemBaseProgram * TargetProgram, constbool bRunAtStartup)Defined in OperatingSystem.h:1071 Configures the application to run at system startup.
This function enables or disables the ability for the program to automatically start when the operating system boots.
Parameters
Section titled “Parameters”-
TargetProgramA pointer to the UOperatingSystemBaseProgram object representing the program to configure. -
bRunAtStartupA boolean indicating whether to enable (true) or disable (false) the application’s startup at system boot.
Returns
Section titled “Returns”A boolean indicating the success of the operation. Returns true if the operation succeeds, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetSettingsOS_CLOG_VERBOSEOS_LOG_VERBOSEStartupPrograms
BeginInstallation
Section titled “BeginInstallation”void BeginInstallation(UOperatingSystemPartition * TargetPartition, FGenericError & OutError)Defined in OperatingSystem.h:1081 Begin installation of this Operating System. This is a simple timer which will call UOperatingSystem::FinishInstallation after the time returned by UOperatingSystem::GetInstallationTime()
Parameters
Section titled “Parameters”-
TargetPartitionWhich partition to install to? Must not be null. -
OutError[FGenericError&] Outputs error (if any). Use the IsValid in this struct to check if there was any error.
Referenced by
Section titled “Referenced by”References
Section titled “References”ConsumeSpaceInGBGetInstallationTimeGetSettingsInstallationSpaceLOG_WITH_NAMEMAKE_ERROROS_LOG_ERRORParentDeviceTargetPartitionIDTimerHandle_OperatingSystemInstallation
AllocatePartition
Section titled “AllocatePartition”UOperatingSystemPartition * AllocatePartition(constdouble SizeInBytes, FGenericError & OutError)Defined in OperatingSystem.h:1091 AllocatePartition is a method used to allocate a new partition on a specific device.
Parameters
Section titled “Parameters”-
SizeInBytes- The size of the partition to allocate in bytes. -
OutError- Reference to an FGenericError object that will hold any error that occurs during partition allocation.
Returns
Section titled “Returns”A pointer to the allocated UOperatingSystemPartition object, or nullptr if an error occurred during allocation.
Referenced by
Section titled “Referenced by”References
Section titled “References”CreateNewPartitionGetSettingsMAKE_ERROROS_LOG_ERRORParentDevice
RemovePartition
Section titled “RemovePartition”void RemovePartition(UOperatingSystemPartition * PartitionToDelete, FGenericError & OutError)Defined in OperatingSystem.h:1100 Removes a partition from the operating system.
Parameters
Section titled “Parameters”-
PartitionToDeleteThe partition to be removed. -
OutErrorThe error message if any error occurs.
References
Section titled “References”GetSettingsMAKE_ERRORParentDevice
RefreshPartitions
Section titled “RefreshPartitions”void RefreshPartitions()Defined in OperatingSystem.h:1109 Refreshes the partitions of the operating system.
This method updates the partitions of the operating system based on the current state of the underlying hardware device.
References
Section titled “References”InstallationCompleted
Section titled “InstallationCompleted”void InstallationCompleted(constbool bSwitchToDesktop = true)Defined in OperatingSystem.h:1122 Marks the completion of the installation process.
This method sets the ‘bIsStartingForTheTime’ flag to false in order to indicate that the operating system has finished its initial setup. It also triggers the ‘OnFinishSettingUpOperatingSystemPostInstallation’ event on the parent device.
Optionally, this method switches the current tab of the operating system widget to the desktop tab.
Parameters
Section titled “Parameters”bSwitchToDesktopWhether to switch the current tab to the desktop tab (default: true)
References
Section titled “References”CreateNewUser
Section titled “CreateNewUser”bool CreateNewUser(constFOperatingSystemUser & NewUser, constbool bSetAsActive = false)Defined in OperatingSystem.h:1132 Creates a new user in the operating system.
Parameters
Section titled “Parameters”-
NewUserThe information of the new user to be created. -
bSetAsActiveDetermines if the new user should be set as the active user.
Returns
Section titled “Returns”True if the new user was successfully created, false otherwise.
References
Section titled “References”LoginUser
Section titled “LoginUser”bool LoginUser(constFText & Username, constFText & Password)Defined in OperatingSystem.h:1142 Logs the user in with the given username and password.
Parameters
Section titled “Parameters”-
UsernameThe username of the user. -
PasswordThe password of the user.
Returns
Section titled “Returns”True if the user was successfully logged in, false otherwise.
References
Section titled “References”UpdateCurrentUserDetails
Section titled “UpdateCurrentUserDetails”bool UpdateCurrentUserDetails(constFOperatingSystemUser & UpdatedDetails)Defined in OperatingSystem.h:1151 Updates the details for the current user. If you don’t want specific settings to change simply leave them empty or null.
Parameters
Section titled “Parameters”UpdatedDetailsSettings to update. If a setting is left null or empty, that is not updated.
Returns
Section titled “Returns”True if the details were updated. False otherwise.
References
Section titled “References”HasEnoughSpace
Section titled “HasEnoughSpace”const
bool HasEnoughSpace(constdouble & TestSizeInBytes, constUOperatingSystemPartition * InPartition) constDefined in OperatingSystem.h:1161 Check if a given partition has enough space for a given size.
Parameters
Section titled “Parameters”-
TestSizeInBytesThe size to test in bytes. -
InPartitionThe partition to check the space on.
Returns
Section titled “Returns”True if the partition has enough space, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetDiskPartitions
Section titled “GetDiskPartitions”const
TArray< UOperatingSystemPartition * > GetDiskPartitions() constDefined in OperatingSystem.h:1169 Retrieves the disk partitions associated with the operating system.
Returns
Section titled “Returns”An array of UOperatingSystemPartition pointers representing the disk partitions.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetOperatingSystemPartition
Section titled “GetOperatingSystemPartition”const
UOperatingSystemPartition * GetOperatingSystemPartition() constDefined in OperatingSystem.h:1178 Retrieves the operating system partition.
Returns
Section titled “Returns”A pointer to the operating system partition.
Referenced by
Section titled “Referenced by”CreateProgramsFromRepositoryCreateRootDirectoryInstallProgramFromClassInternal_CreateDefaultDirectoriesOnStart
References
Section titled “References”CloseProgram
Section titled “CloseProgram”void CloseProgram(UOperatingSystemBaseProgram * TargetProgram, FGenericError & OutError)Defined in OperatingSystem.h:1187 Closes the given program.
Parameters
Section titled “Parameters”-
TargetProgramThe program to close. -
OutErrorThe error encountered during the process.
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationBackgroundRunningProgramsErrorFocusedFullCloseGetSettingsIsRestartingIsShuttingDownLastFocusedTaskbarButtonMAKE_ERRORNotFocusedNOTIFICATION_OSPreviousFocusedTaskbarButtonRunningProgramsTaskbarButtons
BringBackgroundProgramToFront
Section titled “BringBackgroundProgramToFront”bool BringBackgroundProgramToFront(UOperatingSystemBaseProgram * TargetProgram)Defined in OperatingSystem.h:1198 Brings a background program to the foreground and activates it. The program must be currently running in the background, otherwise an error will be returned.
Parameters
Section titled “Parameters”TargetProgramThe program to bring to the front.
Returns
Section titled “Returns”True if the program was successfully brought to the front, false otherwise. If false is returned, the specific error will be logged.
References
Section titled “References”BackgroundRunningProgramsGetOperatingSystemProgramRestoredEventNameGetSettingsMAKE_ERROROS_LOG_ERROROS_LOG_VERBOSEProgramStarted
IsProgramInBackground
Section titled “IsProgramInBackground”const
bool IsProgramInBackground(UOperatingSystemBaseProgram * TestProgram) constDefined in OperatingSystem.h:1207 Determines if the specified program is currently running in the background or not.
Parameters
Section titled “Parameters”TestProgramA pointer to the UOperatingSystemBaseProgram object to be tested.
Returns
Section titled “Returns”true if the program is running in the background, false otherwise.
References
Section titled “References”BackgroundRunningProgramsGetRunningProgramGetSettingsINVALID_PROCESS_ID
MinimizeProgram
Section titled “MinimizeProgram”void MinimizeProgram(UOperatingSystemBaseProgram * TargetProgram)Defined in OperatingSystem.h:1215 Minimizes the specified program.
Parameters
Section titled “Parameters”TargetProgramThe program to minimize.
References
Section titled “References”GetSettingsInternal_BringWindowToFrontInternal_SetTaskbarButtonStateToUnfocusedMinimizedNotFocusedPreviousFocusedTaskbarButtonTaskbarButtons
CloseAllRunningPrograms
Section titled “CloseAllRunningPrograms”void CloseAllRunningPrograms()Defined in OperatingSystem.h:1225 Closes all running programs in the operating system.
This method iterates over all the running programs in the operating system and calls the CloseProgram method to close each program. If an error occurs while closing a program, an error is generated and stored in OutError.
Referenced by
Section titled “Referenced by”References
Section titled “References”RestoreMinimizedProgram
Section titled “RestoreMinimizedProgram”void RestoreMinimizedProgram(constUOperatingSystemBaseProgram * TargetProgram)Defined in OperatingSystem.h:1241 Restores a minimized program to the foreground on the operating system’s taskbar.
This method attempts to restore the specified program identified by the given TargetProgram. If the program is currently minimized, it will be brought back to the foreground on the taskbar.
Parameters
Section titled “Parameters”TargetProgramThe target program to restore. It must be a valid pointer to an instance of the UOperatingSystemBaseProgram class.
See also: UOperatingSystemBaseProgram, ChangeTaskbarState()
References
Section titled “References”GetDirectoryIconObject
Section titled “GetDirectoryIconObject”const
UObject * GetDirectoryIconObject(constFGameplayTag & TestTag) constDefined in OperatingSystem.h:1259 Retrieves the directory icon object associated with the specified tag.
Parameters
Section titled “Parameters”TestTagThe tag used to determine the directory icon object.
Returns
Section titled “Returns”The directory icon object.
References
Section titled “References”IsUnix
Section titled “IsUnix”const inline
inline bool IsUnix() constDefined in OperatingSystem.h:1267 Checks if the operating system is Unix.
Returns
Section titled “Returns”True if the operating system is Unix, false otherwise.
Referenced by
Section titled “Referenced by”GetBsodOnScreenTime
Section titled “GetBsodOnScreenTime”const inline
inline float GetBsodOnScreenTime() constDefined in OperatingSystem.h:1275 Returns the duration, in seconds, that the blue screen of death has been visible on the screen.
Returns
Section titled “Returns”The time, in seconds, that the blue screen of death has been on screen.
GetToastNotificationDisplayTime
Section titled “GetToastNotificationDisplayTime”const inline
inline float GetToastNotificationDisplayTime() constDefined in OperatingSystem.h:1283 Retrieves the display time for toast notifications.
Returns
Section titled “Returns”The display time for toast notifications in seconds.
GetInstalledPrograms
Section titled “GetInstalledPrograms”const
TArray< UOperatingSystemBaseProgram * > GetInstalledPrograms() constDefined in OperatingSystem.h:1292 [DEPRECATED] Get the list of installed programs.
Returns
Section titled “Returns”An array of UOperatingSystemBaseProgram objects representing the installed programs.
References
Section titled “References”GetInstalledProgramsMap
Section titled “GetInstalledProgramsMap”const
void GetInstalledProgramsMap(TMap< FName, UOperatingSystemBaseProgram * > & OutInstalledPrograms) constDefined in OperatingSystem.h:1300 Gets the TMap of installed programs.
Parameters
Section titled “Parameters”OutInstalledProgramsTMap of all installed programs with key set to their identifier.
References
Section titled “References”GetStartupPrograms
Section titled “GetStartupPrograms”void GetStartupPrograms(TMap< FName, UOperatingSystemBaseProgram * > & OutStartupPrograms)Defined in OperatingSystem.h:1306 Gets the TMap of currently set startup programs.
References
Section titled “References”FindProgramData
Section titled “FindProgramData”const
UOperatingSystemProgramData * FindProgramData(constUOperatingSystemBaseProgram * TargetProgram) constDefined in OperatingSystem.h:1308
References
Section titled “References”AddProgramData
Section titled “AddProgramData”void AddProgramData(constUOperatingSystemBaseProgram * TargetProgram, UOperatingSystemProgramData * DataToAdd)Defined in OperatingSystem.h:1309
References
Section titled “References”GetInstalledProgram
Section titled “GetInstalledProgram”const
UOperatingSystemBaseProgram * GetInstalledProgram(constTSoftClassPtr< UOperatingSystemBaseProgram > TestClass) constDefined in OperatingSystem.h:1322 Retrieves the installed program of the specified class.
This method searches for an installed program in the list of installed programs that matches the specified class. If a matching program is found, it is returned; otherwise nullptr is returned.
Parameters
Section titled “Parameters”TestClassThe pointer to the class of the program to retrieve.
Returns
Section titled “Returns”The installed program of the specified class, or nullptr if not found.
Referenced by
Section titled “Referenced by”References
Section titled “References”IsProgramInstalled
Section titled “IsProgramInstalled”const
bool IsProgramInstalled(constTSoftClassPtr< UOperatingSystemBaseProgram > TestClass) constDefined in OperatingSystem.h:1332 Checks if a program is installed. This method checks if a program, represented by the provided UOperatingSystemBaseProgram subclass, is installed on the system.
Parameters
Section titled “Parameters”TestClassThe TSoftClassPtr<UOperatingSystemBaseProgram> representing the program to be checked.
Returns
Section titled “Returns”true if the program is installed, false otherwise.
References
Section titled “References”GetRunningProgram
Section titled “GetRunningProgram”const
UOperatingSystemBaseProgram * GetRunningProgram(constTSoftClassPtr< UOperatingSystemBaseProgram > TestClass) constDefined in OperatingSystem.h:1341 Retrieves the running program that matches the given class.
Parameters
Section titled “Parameters”TestClassA soft class pointer to the program class.
Returns
Section titled “Returns”A pointer to the running program that matches the given class, or nullptr if not found or TestClass is null.
Referenced by
Section titled “Referenced by”References
Section titled “References”IsPreInstalledOperatingSystem
Section titled “IsPreInstalledOperatingSystem”const
bool IsPreInstalledOperatingSystem() constDefined in OperatingSystem.h:1350 Check if the operating system is pre-installed on the parent device.
Returns
Section titled “Returns”True if the operating system is pre-installed, false otherwise.
References
Section titled “References”DefaultParentDevice
GetSettings
Section titled “GetSettings”const
UOperatingSystemSettingsData * GetSettings() constDefined in OperatingSystem.h:1358 Retrieves the settings data object for this Operating System.
Returns
Section titled “Returns”Settings data if one was created.
Referenced by
Section titled “Referenced by”AddNotificationAddNotificationAddProgramDataAddRunningProgramAllocatePartitionBeginInstallationBringBackgroundProgramToFrontBringWindowToFrontClearAllNotificationsCloseAllRunningProgramsCloseProgramConsumeSpaceInGBConsumeSpaceInMBCreateDirectoryInPathCreateDirectoryInPathCreateDirectoryInPathCreateNewUserCreateNewWindowCreateOperatingSystemCreateProgramsFromRepositoryCreateRootDirectoryDestroyOSFinalizePreInstallationFinalizePreInstallationFindDiskLetterAtIndexFindPartitionFromLetterFindProgramDataFindProgramFromPackageFinishInstallationGetDirectoryIconObjectGetDiskPartitionsGetHardDiskSizeGetInitialLoadingTimeGetInstallationTimeGetInstalledProgramGetInstalledProgramsGetInstalledProgramsMapGetLoadingTimeGetOperatingSystemPartitionGetOperatingSystemUniqueIDGetRootCommandGetRunningProgramGetSizeAsTextGetStartupProgramsGetStoragePercentageHasEnoughSpaceInstallationCompletedInstallProgramFromClassInstallProgramFromPackageInternal_BringWindowToFrontInternal_CreateDefaultDirectoriesInternal_CreateNotificationManagerInternal_FinalizePreInstallationInternal_InstallProgramInternal_LoadSavedProgramInternal_LoadSettingsInternal_PrepareInstallInternal_RunPendingStartupProgramInternal_SetTaskbarButtonStateToUnfocusedInternal_ValidateIsProgramInBackgroundIsProgramInstalledIsProgramRunningIsProgramRunningLoginUserMinimizeProgramOnPartitionLoadedOnShowDesktopOnShowNotificationOnValidatePostLoadOperatingSystemPostLoadOperatingSystemImplPostLoadOperatingSystemImplProgramStartedRefreshPartitionsRemovePartitionRestartOSRestoreMinimizedProgramSaveBundledWallpaperSaveCustomWallpaperSetAutoLoginSetDeviceNameSetProgramAtStartupSetToInstallStartupProgramsShutdownOSStartOperatingSystemStartOperatingSystemImplStartOperatingSystemImplUninstallProgramUninstallProgramByClassUOperatingSystemUnixPhoneUpdateCurrentUserDetails
References
Section titled “References”IsRunningOnPortableDevice
Section titled “IsRunningOnPortableDevice”const
bool IsRunningOnPortableDevice() constDefined in OperatingSystem.h:1366 Checks to see if this Operating System is running on a portable device actor.
Returns
Section titled “Returns”True if this Operating System is running on a portable device actor.
References
Section titled “References”FindPartitionFromLetter
Section titled “FindPartitionFromLetter”virtual const inline
virtual inline UOperatingSystemPartition * FindPartitionFromLetter(constFName & TargetDiskLetter) constDefined in OperatingSystem.h:1378 Find a partition in the operating system from a given disk letter.
This method searches for an operating system partition that corresponds to the provided disk letter.
Parameters
Section titled “Parameters”TargetDiskLetterThe disk letter to search for. It should be of type FName.
Returns
Section titled “Returns”A pointer to the found operating system partition. If no partition is found, nullptr is returned.
Reimplemented by
Section titled “Reimplemented by”GetRootCommand
Section titled “GetRootCommand”virtual const inline
virtual inline TOptional< FText > GetRootCommand() constDefined in OperatingSystem.h:1388 Retrieves the root command associated with the operating system.
Returns
Section titled “Returns”The root command as an optional text. If no root command is set, an empty optional is returned.
See also: UOperatingSystemUnix::GetRootCommand
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”GetRootUser
Section titled “GetRootUser”virtual const inline
virtual inline TOptional< FOperatingSystemUser > GetRootUser() constDefined in OperatingSystem.h:1404 Returns the root user of the operating system. This method retrieves the root user of the operating system and returns it as an optional object. If the root user cannot be determined or is not available, an empty optional object is returned.
Returns
Section titled “Returns”An optional object of type FOperatingSystemUser that represents the root user of the operating system. An empty optional object is returned if the root user cannot be determined.
See also: UOperatingSystemUnix::GetRootUser.
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”HasValidRootCommandAndUser
Section titled “HasValidRootCommandAndUser”const inline
inline bool HasValidRootCommandAndUser() constDefined in OperatingSystem.h:1416 Determines whether the root command and user are valid.
This method checks if the root command and user are both set, indicating that a valid root command and user have been provided.
Returns
Section titled “Returns”True if both the root command and user are set, otherwise false.
Referenced by
Section titled “Referenced by”IsShuttingDown
Section titled “IsShuttingDown”const
bool IsShuttingDown() constDefined in OperatingSystem.h:1442 Check if the operating system is in the process of shutting down.
This method determines whether the operating system is currently in the process of shutting down. It does this by calling the IsShuttingDown() method of the ParentDevice object.
Returns
Section titled “Returns”True if the operating system is in the process of shutting down, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”IsRestarting
Section titled “IsRestarting”const
bool IsRestarting() constDefined in OperatingSystem.h:1449 Checks if the operating system is currently restarting.
Returns
Section titled “Returns”True if the operating system is restarting, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetAllUsers
Section titled “GetAllUsers”const
TArray< FOperatingSystemUser > GetAllUsers() constDefined in OperatingSystem.h:1459 Returns an array of all users registered in the operating system. This function retrieves information about all users registered in the operating system.
Returns
Section titled “Returns”An array of FOperatingSystemUser objects representing the registered users.
See also: FOperatingSystemUser, UOperatingSystemStatics::GetUserManager()
References
Section titled “References”Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
FName | GetOperatingSystemProgramRestoredEventName static inline | Helper function that returns the name of the event that is triggered when a program is restored in the Operating System. |
UOperatingSystem * | CreateOperatingSystem static | Creates a new instance of the operating system associated with the specified device. |
FString | GetOperatingSystemUniqueID static | Gets the unique ID of the operating system. This method retrieves the unique ID of the operating system represented by the given TestOperatingSystem object. |
GetOperatingSystemProgramRestoredEventName
Section titled “GetOperatingSystemProgramRestoredEventName”static inline
static inline FName GetOperatingSystemProgramRestoredEventName()Defined in OperatingSystem.h:443 Helper function that returns the name of the event that is triggered when a program is restored in the Operating System.
Returns
Section titled “Returns”The event name for program restored event.
Referenced by
Section titled “Referenced by”CreateOperatingSystem
Section titled “CreateOperatingSystem”static
static UOperatingSystem * CreateOperatingSystem(UOperatingSystemBaseDevice * OwningDevice, FGenericError & OutError)Defined in OperatingSystem.h:456 Creates a new instance of the operating system associated with the specified device.
This method creates a new instance of the operating system associated with the specified device. If the operating system class is null, an error will be returned indicating that the operating system is missing. Otherwise, a new instance of the operating system will be created and initialized.
Parameters
Section titled “Parameters”-
OwningDeviceThe device that the operating system belongs to. -
OutErrorThe error object that will be populated if an error occurs during the creation process.
Returns
Section titled “Returns”A pointer to the newly created operating system instance, or nullptr if an error occurred.
Referenced by
Section titled “Referenced by”References
Section titled “References”CreateBsodWidgetCreateOperatingSystemWidgetFullBootGetAnalyticsManagerGetOperatingSystemClassGetSettingsInternal_ValidateMAKE_ERRORNEW_SOFT_OBJOperatingSystemPreInstalledOS_LOGOS_LOG_ERROR
GetOperatingSystemUniqueID
Section titled “GetOperatingSystemUniqueID”static
static FString GetOperatingSystemUniqueID(constUOperatingSystem * TestOperatingSystem)Defined in OperatingSystem.h:465
Gets the unique ID of the operating system. This method retrieves the unique ID of the operating system represented by the given TestOperatingSystem object.
Parameters
Section titled “Parameters”TestOperatingSystemThe operating system object to get the unique ID from.
Returns
Section titled “Returns”A string representing the unique ID of the operating system.
Referenced by
Section titled “Referenced by”References
Section titled “References”Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
FTimerHandle | TimerHandle_OperatingSystemInstallation | Timer handle for operating system installation. |
FTimerHandle | TimerHandle_LoadingTime | Timer handle for loading time. |
FText | Name | Name of this operating system. Think of this as just Windows or MacOS or Ubuntu etc. |
FText | CompanyName | Company that made this operating system. Think of this as just Microsoft or Apple or Canonical etc. |
FOperatingSystemVersion | Version | Current version of this Operating System. |
TSoftObjectPtr< UObject > | Icon | An icon (either texture or user interface material) for this Operating System. |
TMap< FGameplayTag, TSoftObjectPtr< UObject > > | DirectoryIcons | Icons for each type of directory. |
float | InstallationSpace | Space required by this OS for installation. Remember, this is all simulated so don’t worry about anything related to your PC. |
FGameplayTagContainer | SupportedDevices | List of devices this Operating System supports. If empty, it is assumed all devices are supported. |
TSoftObjectPtr< UOperatingSystemProgramsCollection > | MustHavePrograms | These are programs that must be installed with Operating System. For example: File explorer, terminal, web browser etc. |
TSoftObjectPtr< UOperatingSystemProgramsCollection > | PostInstallStartupPrograms | List of programs that can be optionally installed after installing the Operating System. |
TSoftObjectPtr< UOperatingSystemDirectoriesCollection > | DefaultDirectories | Default directories to automatically create when installing this Operating System. |
TSoftClassPtr< UOperatingSystemSettingsData > | SettingsDataClass | A data class that holds all settings (like theme, wallpapers etc) for this Operating System. |
TSoftClassPtr< UOperatingSystemWidget > | WidgetClass | Operating System Widget class. |
TSoftClassPtr< UOperatingSystemBsodWidget > | BsodWidgetClass | Operating System Widget class. |
FOperatingSystemNotificationSettings | NotificationSettings | Notification settings. |
FOperatingSystemRangeTime | InstallationTime | Installation time for installing this Operating System. |
FOperatingSystemRangeTime | LoadingTime | Time it takes for the Operating System to show loading screen and then change to logon screen. |
FOperatingSystemRangeTime | LoadingTimeInitial | Time it takes for the Operating System to load for the first time after installation. Typically this will be set higher than Loading Time. |
FOperatingSystemRangeTime | LogonToDesktopTime | Time it takes to transition from Logon screen to Desktop. |
FOperatingSystemRangeTime | BsodOnScreenTime | Time it takes for BSOD to stay on screen |
FGameplayTag | OperatingSystemTag | Tag to identify this Operating System. |
TWeakObjectPtr< UOperatingSystemBaseDevice > | ParentDevice | The device this Operating System is running on. |
TObjectPtr< UOperatingSystemSettingsData > | OperatingSystemSettingsData | Settings data for this operating system. |
TObjectPtr< UOperatingSystemWidget > | OperatingSystemWidget | Reference to the Operating System widget. |
TMap< int32, TObjectPtr< UOperatingSystemBaseProgram > > | RunningPrograms | All running programs in this Operating System. The key is the Process ID and value is the program. |
TMap< int32, TObjectPtr< UOperatingSystemBaseProgram > > | BackgroundRunningPrograms | All running programs in background. The key is the Process ID and value is the program. |
TMap< FName, UOperatingSystemBaseProgram * > | InstalledPrograms | All the programs that are currently installed. |
TMap< FName, UOperatingSystemProgramData * > | ProgramDataObjs | |
FOperatingSystemUser | CurrentUser | Active user. |
uint8 | bIsStartingForTheFirstTime | True if the Operating System is starting for the first time after installation. |
int32 | TotalNotifications | Total notifications received. |
int32 | TotalErrorNotifications | Total error notifications received. |
int32 | TotalWarningNotifications | Total warning notifications received. |
TObjectPtr< UOperatingSystemBsodWidget > | BSODWidget | Current BSOD widget. |
TMap< int32, TWeakObjectPtr< UOperatingSystemTaskbarButton > > | TaskbarButtons | Transient variable representing the taskbar buttons. It is a TMap that associates integer keys with weak object pointers to UOperatingSystemTaskbarButton objects. Key will be the process ID. Value will be the program. |
TWeakObjectPtr< UOperatingSystemTaskbarButton > | PreviousFocusedTaskbarButton | |
TWeakObjectPtr< UOperatingSystemTaskbarButton > | LastFocusedTaskbarButton | |
TMap< FName, TWeakObjectPtr< UOperatingSystemBaseProgram > > | StartupPrograms | Programs that are set to automatically run when Operating System starts. |
TArray< TWeakObjectPtr< UOperatingSystemBaseProgram > > | PendingStartupPrograms | |
FOperatingSystemUniqueId | TargetPartitionID | Structure representing a unique identifier for a target partition in the operating system. |
TWeakObjectPtr< UDraggableWindow > | LastBroughtToFrontWindow | Transient variable representing the last draggable window brought to the front. |
uint8 | bAutoLogin | Specifies whether the application should automatically login the user. |
uint8 | bInstallStartupPrograms | Specifies whether to install startup programs on the operating system. |
FText | DeviceName | Can be computer name also like JohnDoes-PC. |
TimerHandle_OperatingSystemInstallation
Section titled “TimerHandle_OperatingSystemInstallation”FTimerHandle TimerHandle_OperatingSystemInstallationDefined in OperatingSystem.h:96 Timer handle for operating system installation.
Referenced by
Section titled “Referenced by”TimerHandle_LoadingTime
Section titled “TimerHandle_LoadingTime”FTimerHandle TimerHandle_LoadingTimeDefined in OperatingSystem.h:99 Timer handle for loading time.
Referenced by
Section titled “Referenced by”FText NameDefined in OperatingSystem.h:103 Name of this operating system. Think of this as just Windows or MacOS or Ubuntu etc.
Referenced by
Section titled “Referenced by”CompanyName
Section titled “CompanyName”FText CompanyNameDefined in OperatingSystem.h:107 Company that made this operating system. Think of this as just Microsoft or Apple or Canonical etc.
Version
Section titled “Version”FOperatingSystemVersion VersionDefined in OperatingSystem.h:111 Current version of this Operating System.
TSoftObjectPtr< UObject > IconDefined in OperatingSystem.h:115 An icon (either texture or user interface material) for this Operating System.
DirectoryIcons
Section titled “DirectoryIcons”TMap< FGameplayTag, TSoftObjectPtr< UObject > > DirectoryIconsDefined in OperatingSystem.h:119 Icons for each type of directory.
Referenced by
Section titled “Referenced by”InstallationSpace
Section titled “InstallationSpace”float InstallationSpaceDefined in OperatingSystem.h:123 Space required by this OS for installation. Remember, this is all simulated so don’t worry about anything related to your PC.
Referenced by
Section titled “Referenced by”SupportedDevices
Section titled “SupportedDevices”FGameplayTagContainer SupportedDevicesDefined in OperatingSystem.h:127 List of devices this Operating System supports. If empty, it is assumed all devices are supported.
Referenced by
Section titled “Referenced by”MustHavePrograms
Section titled “MustHavePrograms”TSoftObjectPtr< UOperatingSystemProgramsCollection > MustHaveProgramsDefined in OperatingSystem.h:131 These are programs that must be installed with Operating System. For example: File explorer, terminal, web browser etc.
Referenced by
Section titled “Referenced by”PostInstallStartupPrograms
Section titled “PostInstallStartupPrograms”TSoftObjectPtr< UOperatingSystemProgramsCollection > PostInstallStartupProgramsDefined in OperatingSystem.h:135 List of programs that can be optionally installed after installing the Operating System.
Referenced by
Section titled “Referenced by”DefaultDirectories
Section titled “DefaultDirectories”TSoftObjectPtr< UOperatingSystemDirectoriesCollection > DefaultDirectoriesDefined in OperatingSystem.h:139 Default directories to automatically create when installing this Operating System.
Referenced by
Section titled “Referenced by”SettingsDataClass
Section titled “SettingsDataClass”TSoftClassPtr< UOperatingSystemSettingsData > SettingsDataClassDefined in OperatingSystem.h:143 A data class that holds all settings (like theme, wallpapers etc) for this Operating System.
Referenced by
Section titled “Referenced by”WidgetClass
Section titled “WidgetClass”TSoftClassPtr< UOperatingSystemWidget > WidgetClassDefined in OperatingSystem.h:147 Operating System Widget class.
Referenced by
Section titled “Referenced by”BsodWidgetClass
Section titled “BsodWidgetClass”TSoftClassPtr< UOperatingSystemBsodWidget > BsodWidgetClassDefined in OperatingSystem.h:151 Operating System Widget class.
NotificationSettings
Section titled “NotificationSettings”FOperatingSystemNotificationSettings NotificationSettingsDefined in OperatingSystem.h:155 Notification settings.
Referenced by
Section titled “Referenced by”InstallationTime
Section titled “InstallationTime”FOperatingSystemRangeTime InstallationTimeDefined in OperatingSystem.h:159 Installation time for installing this Operating System.
Referenced by
Section titled “Referenced by”LoadingTime
Section titled “LoadingTime”FOperatingSystemRangeTime LoadingTimeDefined in OperatingSystem.h:163 Time it takes for the Operating System to show loading screen and then change to logon screen.
Referenced by
Section titled “Referenced by”LoadingTimeInitial
Section titled “LoadingTimeInitial”FOperatingSystemRangeTime LoadingTimeInitialDefined in OperatingSystem.h:167 Time it takes for the Operating System to load for the first time after installation. Typically this will be set higher than Loading Time.
Referenced by
Section titled “Referenced by”LogonToDesktopTime
Section titled “LogonToDesktopTime”FOperatingSystemRangeTime LogonToDesktopTimeDefined in OperatingSystem.h:171 Time it takes to transition from Logon screen to Desktop.
BsodOnScreenTime
Section titled “BsodOnScreenTime”FOperatingSystemRangeTime BsodOnScreenTimeDefined in OperatingSystem.h:175 Time it takes for BSOD to stay on screen
OperatingSystemTag
Section titled “OperatingSystemTag”FGameplayTag OperatingSystemTagDefined in OperatingSystem.h:179 Tag to identify this Operating System.
Referenced by
Section titled “Referenced by”ParentDevice
Section titled “ParentDevice”TWeakObjectPtr< UOperatingSystemBaseDevice > ParentDeviceDefined in OperatingSystem.h:183 The device this Operating System is running on.
Referenced by
Section titled “Referenced by”AddRunningProgramAllocatePartitionBeginInstallationConsumeSpaceInGBConsumeSpaceInMBDestroyOSFinalizePreInstallationFinalizePreInstallationFinishInstallationGetDiskPartitionsGetHardDiskSizeGetOperatingSystemPartitionGetSizeAsTextGetStoragePercentageHasEnoughSpaceInstallationCompletedInternal_InstallProgramInternal_LoadSettingsInternal_PrepareInstallInternal_ValidateIsPreInstalledOperatingSystemIsRestartingIsRunningOnPortableDeviceIsShuttingDownPostLoadOperatingSystemPostLoadOperatingSystemImplPostLoadOperatingSystemImplRefreshPartitionsRemovePartitionRestartOSShutdownOSStartOperatingSystemUninstallProgram
OperatingSystemSettingsData
Section titled “OperatingSystemSettingsData”TObjectPtr< UOperatingSystemSettingsData > OperatingSystemSettingsDataDefined in OperatingSystem.h:187 Settings data for this operating system.
Referenced by
Section titled “Referenced by”OperatingSystemWidget
Section titled “OperatingSystemWidget”TObjectPtr< UOperatingSystemWidget > OperatingSystemWidgetDefined in OperatingSystem.h:191 Reference to the Operating System widget.
Referenced by
Section titled “Referenced by”BringWindowToFrontCreateNewWindowDestroyOSFinishInstallationInstallationCompletedInternal_BringWindowToFrontOnAllOnNotificationsClearedOnShowNotificationPostLoadOperatingSystemImplPostLoadOperatingSystemImplPrepareOperatingSystemInstallImplPrepareOperatingSystemInstallImplRestartOSShutdownOSStartOperatingSystem
RunningPrograms
Section titled “RunningPrograms”TMap< int32, TObjectPtr< UOperatingSystemBaseProgram > > RunningProgramsDefined in OperatingSystem.h:195 All running programs in this Operating System. The key is the Process ID and value is the program.
Referenced by
Section titled “Referenced by”BackgroundRunningPrograms
Section titled “BackgroundRunningPrograms”TMap< int32, TObjectPtr< UOperatingSystemBaseProgram > > BackgroundRunningProgramsDefined in OperatingSystem.h:199 All running programs in background. The key is the Process ID and value is the program.
Referenced by
Section titled “Referenced by”BringBackgroundProgramToFrontCloseAllRunningProgramsCloseProgramIsProgramInBackgroundIsProgramRunning
InstalledPrograms
Section titled “InstalledPrograms”TMap< FName, UOperatingSystemBaseProgram * > InstalledProgramsDefined in OperatingSystem.h:203 All the programs that are currently installed.
Referenced by
Section titled “Referenced by”DestroyOSGetInstalledProgramGetInstalledProgramsGetInstalledProgramsMapGetStartupProgramsInternal_InstallProgramInternal_LoadSavedProgramUninstallProgram
ProgramDataObjs
Section titled “ProgramDataObjs”TMap< FName, UOperatingSystemProgramData * > ProgramDataObjsDefined in OperatingSystem.h:206
Referenced by
Section titled “Referenced by”CurrentUser
Section titled “CurrentUser”FOperatingSystemUser CurrentUserDefined in OperatingSystem.h:210 Active user.
Referenced by
Section titled “Referenced by”bIsStartingForTheFirstTime
Section titled “bIsStartingForTheFirstTime”uint8 bIsStartingForTheFirstTimeDefined in OperatingSystem.h:214 True if the Operating System is starting for the first time after installation.
Referenced by
Section titled “Referenced by”TotalNotifications
Section titled “TotalNotifications”int32 TotalNotificationsDefined in OperatingSystem.h:218 Total notifications received.
Referenced by
Section titled “Referenced by”TotalErrorNotifications
Section titled “TotalErrorNotifications”int32 TotalErrorNotificationsDefined in OperatingSystem.h:222 Total error notifications received.
Referenced by
Section titled “Referenced by”TotalWarningNotifications
Section titled “TotalWarningNotifications”int32 TotalWarningNotificationsDefined in OperatingSystem.h:226 Total warning notifications received.
Referenced by
Section titled “Referenced by”BSODWidget
Section titled “BSODWidget”TObjectPtr< UOperatingSystemBsodWidget > BSODWidgetDefined in OperatingSystem.h:230 Current BSOD widget.
Referenced by
Section titled “Referenced by”TaskbarButtons
Section titled “TaskbarButtons”TMap< int32, TWeakObjectPtr< UOperatingSystemTaskbarButton > > TaskbarButtonsDefined in OperatingSystem.h:239 Transient variable representing the taskbar buttons. It is a TMap that associates integer keys with weak object pointers to UOperatingSystemTaskbarButton objects. Key will be the process ID. Value will be the program.
Referenced by
Section titled “Referenced by”CloseProgramInternal_SetTaskbarButtonStateToUnfocusedMinimizeProgramProgramStartedRestoreMinimizedProgram
PreviousFocusedTaskbarButton
Section titled “PreviousFocusedTaskbarButton”TWeakObjectPtr< UOperatingSystemTaskbarButton > PreviousFocusedTaskbarButtonDefined in OperatingSystem.h:242
Referenced by
Section titled “Referenced by”LastFocusedTaskbarButton
Section titled “LastFocusedTaskbarButton”TWeakObjectPtr< UOperatingSystemTaskbarButton > LastFocusedTaskbarButtonDefined in OperatingSystem.h:245
Referenced by
Section titled “Referenced by”StartupPrograms
Section titled “StartupPrograms”TMap< FName, TWeakObjectPtr< UOperatingSystemBaseProgram > > StartupProgramsDefined in OperatingSystem.h:249 Programs that are set to automatically run when Operating System starts.
Referenced by
Section titled “Referenced by”PendingStartupPrograms
Section titled “PendingStartupPrograms”TArray< TWeakObjectPtr< UOperatingSystemBaseProgram > > PendingStartupProgramsDefined in OperatingSystem.h:252
Referenced by
Section titled “Referenced by”TargetPartitionID
Section titled “TargetPartitionID”FOperatingSystemUniqueId TargetPartitionIDDefined in OperatingSystem.h:260 Structure representing a unique identifier for a target partition in the operating system.
This identifier is transient, meaning it is not meant to be stored or persisted. It is used for temporary identification purposes only.
Referenced by
Section titled “Referenced by”LastBroughtToFrontWindow
Section titled “LastBroughtToFrontWindow”TWeakObjectPtr< UDraggableWindow > LastBroughtToFrontWindowDefined in OperatingSystem.h:271 Transient variable representing the last draggable window brought to the front.
It is a weak pointer to an instance of UDraggableWindow class. This variable is transient, meaning that it is not serialized and doesn’t persist across sessions.
See also: UDraggableWindow
Referenced by
Section titled “Referenced by”bAutoLogin
Section titled “bAutoLogin”uint8 bAutoLoginDefined in OperatingSystem.h:275 Specifies whether the application should automatically login the user.
Referenced by
Section titled “Referenced by”bInstallStartupPrograms
Section titled “bInstallStartupPrograms”uint8 bInstallStartupProgramsDefined in OperatingSystem.h:283 Specifies whether to install startup programs on the operating system.
See also: SetToInstallStartupPrograms
See also: ShouldInstallStartupPrograms
Referenced by
Section titled “Referenced by”DeviceName
Section titled “DeviceName”FText DeviceNameDefined in OperatingSystem.h:298 Can be computer name also like JohnDoes-PC.
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
void | OnShowNotification virtual | This method is called when a new notification should be shown on the operating system. |
void | OnAllOnNotificationsCleared virtual | Callback triggered when all notifications are cleared. |
void | OnValidate virtual const inline | This method is called to validate the object’s state. This method should be overridden by derived classes to provide specific validation logic for the object. The validation result should be stored in the OutError parameter. If there are any validation errors, they should be added to the OutError object using its MAKE_ERROR macro. |
void | FinalizePreInstallation virtual inline | Finalizes the pre-installation process. |
void | PrepareOperatingSystemInstallImpl virtual inline | Prepares the operating system for installation. |
bool | StartOperatingSystemImpl virtual inline | Starts the implementation of the operating system. |
void | PostLoadOperatingSystemImpl virtual inline | This method is responsible for performing additional actions after the operating system is loaded. |
void | FinishInstallationImpl virtual inline | Performs the finishing steps of the installation process. |
void | InstallStartupProgramsImpl virtual inline | Allows the derived classes to implement their own logic for installing startup programs. This method should be overridden in derived classes to define the actual logic for installing startup programs. |
void | OnPartitionLoaded virtual inline | Callback method called when a partition is loaded. |
TSoftClassPtr< UOperatingSystemBaseProgram > | FindProgramFromPackage virtual inline | Finds the program corresponding to the given package identifier. This method searches for a program based on the provided package identifier. |
bool | K2_CanStartOperatingSystem | Determines if the operating system can start. |
OnShowNotification
Section titled “OnShowNotification”virtual
virtual void OnShowNotification(constFOperatingSystemNotification & NewNotification)Defined in OperatingSystem.h:683 This method is called when a new notification should be shown on the operating system.
Parameters
Section titled “Parameters”NewNotificationThe new notification to be shown.
References
Section titled “References”OnAllOnNotificationsCleared
Section titled “OnAllOnNotificationsCleared”virtual
virtual void OnAllOnNotificationsCleared()Defined in OperatingSystem.h:692 Callback triggered when all notifications are cleared.
This function is called when all notifications are cleared in the operating system. It resets the total number of notifications, error notifications, and warning notifications. Then it calls the AllNotificationsCleared() function of the OperatingSystemWidget.
References
Section titled “References”OnValidate
Section titled “OnValidate”virtual const inline
virtual inline void OnValidate(FGenericError & OutError) constDefined in OperatingSystem.h:705 This method is called to validate the object’s state. This method should be overridden by derived classes to provide specific validation logic for the object. The validation result should be stored in the OutError parameter. If there are any validation errors, they should be added to the OutError object using its MAKE_ERROR macro.
Parameters
Section titled “Parameters”OutErrorReference to an FGenericError object that will be populated with any validation errors.
See also: FGenericError
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”FinalizePreInstallation
Section titled “FinalizePreInstallation”virtual inline
virtual inline void FinalizePreInstallation(FGenericError & OutError)Defined in OperatingSystem.h:719 Finalizes the pre-installation process.
This method is used to perform any necessary finalization steps before installation. It is called during the pre-installation phase.
Parameters
Section titled “Parameters”OutErrorReference to a FGenericError object that will be used to store any error information that occurs during the finalization process.
See also: FGenericError
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”PrepareOperatingSystemInstallImpl
Section titled “PrepareOperatingSystemInstallImpl”virtual inline
virtual inline void PrepareOperatingSystemInstallImpl(FGenericError & OutError)Defined in OperatingSystem.h:731 Prepares the operating system for installation.
This method is virtual and can be overridden in derived classes to implement the specific logic for preparing the operating system for installation. The implementation should set the error message in the provided FGenericError object if any error occurs during the preparation process.
Parameters
Section titled “Parameters”OutErrorA reference to the FGenericError object to store any error message generated during the preparation process.
See also: FGenericError
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”StartOperatingSystemImpl
Section titled “StartOperatingSystemImpl”virtual inline
virtual inline bool StartOperatingSystemImpl(FGenericError & OutError)Defined in OperatingSystem.h:745 Starts the implementation of the operating system.
This method starts the implementation of the operating system. It performs the necessary steps to initiate the operating system functionality.
Parameters
Section titled “Parameters”OutErrorReference to a FGenericError object that will store any errors that occur during the operation.
Returns
Section titled “Returns”False by default.
See also: FGenericError
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”PostLoadOperatingSystemImpl
Section titled “PostLoadOperatingSystemImpl”virtual inline
virtual inline void PostLoadOperatingSystemImpl(FGenericError & OutError)Defined in OperatingSystem.h:753 This method is responsible for performing additional actions after the operating system is loaded.
Parameters
Section titled “Parameters”OutErrorA reference to the FGenericError object that can be used to report any errors that occur during the post-load process.
See also: FGenericError
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”FinishInstallationImpl
Section titled “FinishInstallationImpl”virtual inline
virtual inline void FinishInstallationImpl()Defined in OperatingSystem.h:763 Performs the finishing steps of the installation process.
This method should be implemented by derived classes to perform any necessary operations to finalize the installation process. It is called after all the installation steps have been completed.
Referenced by
Section titled “Referenced by”InstallStartupProgramsImpl
Section titled “InstallStartupProgramsImpl”virtual inline
virtual inline void InstallStartupProgramsImpl()Defined in OperatingSystem.h:771 Allows the derived classes to implement their own logic for installing startup programs. This method should be overridden in derived classes to define the actual logic for installing startup programs.
Referenced by
Section titled “Referenced by”OnPartitionLoaded
Section titled “OnPartitionLoaded”virtual inline
virtual inline void OnPartitionLoaded(UOperatingSystemPartition & LoadedPartition, constFOperatingSystemPartitionSaveLoad & SaveLoadData)Defined in OperatingSystem.h:781 Callback method called when a partition is loaded.
Parameters
Section titled “Parameters”-
LoadedPartitionThe reference to the loaded partition. -
SaveLoadDataThe save/load data for the partition.
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”FindProgramFromPackage
Section titled “FindProgramFromPackage”virtual inline
virtual inline TSoftClassPtr< UOperatingSystemBaseProgram > FindProgramFromPackage(constFName & ProgramIdentifier)Defined in OperatingSystem.h:792 Finds the program corresponding to the given package identifier. This method searches for a program based on the provided package identifier.
Parameters
Section titled “Parameters”ProgramIdentifierThe package identifier of the program to be found.
Returns
Section titled “Returns”A pointer to the soft class representing the found program. Returns nullptr if no program is found.
Referenced by
Section titled “Referenced by”Reimplemented by
Section titled “Reimplemented by”K2_CanStartOperatingSystem
Section titled “K2_CanStartOperatingSystem”bool K2_CanStartOperatingSystem(FGenericError & ReturnError)Defined in OperatingSystem.h:1431 Determines if the operating system can start.
This method checks if the operating system can start successfully. It is a BlueprintImplementableEvent, which means that it can be implemented in Blueprint classes.
Parameters
Section titled “Parameters”ReturnError[out] A reference to a FGenericError structure that will hold the error message if the operating system cannot start.
Returns
Section titled “Returns”True if the operating system can start, false otherwise.
Referenced by
Section titled “Referenced by”Private Methods
Section titled “Private Methods”| Return | Name | Description |
|---|---|---|
void | Internal_CreateDefaultDirectories | |
void | Internal_PrepareInstall | |
void | Internal_FinalizePreInstallation | |
void | Internal_Validate const | Perform internal validation of the operating system. This method performs internal validation of the operating system. It checks various criteria to ensure that the operating system is valid. |
void | Internal_CreateNotificationManager | Internal method called to create the notification manager for the operating system. |
constFOperatingSystemDeviceSaveLoad * | Internal_LoadSettings | Internal method to load the settings for the operating system. |
void | Internal_RunPendingStartupProgram | |
UOperatingSystemBaseProgram * | Internal_InstallProgram | Installs a program in the operating system. |
void | Internal_LoadSavedProgram | Loads a saved program into the operating system. |
void | Internal_SetTaskbarButtonStateToUnfocused | |
void | Internal_BringWindowToFront |
Internal_CreateDefaultDirectories
Section titled “Internal_CreateDefaultDirectories”void Internal_CreateDefaultDirectories(FGenericError & OutError)Defined in OperatingSystem.h:669
Referenced by
Section titled “Referenced by”References
Section titled “References”CreateDirectoryDefaultDirectoriesGetOperatingSystemPartitionGetSettingsOS_LOG_VERBOSE
Internal_PrepareInstall
Section titled “Internal_PrepareInstall”void Internal_PrepareInstall(FGenericError & OutError)Defined in OperatingSystem.h:670
Referenced by
Section titled “Referenced by”References
Section titled “References”DefaultGetSettingsInternal_FinalizePreInstallationLOG_WITH_NAMEParentDevicePrepareOperatingSystemInstallImpl
Internal_FinalizePreInstallation
Section titled “Internal_FinalizePreInstallation”void Internal_FinalizePreInstallation(FGenericError & OutError)Defined in OperatingSystem.h:672
Referenced by
Section titled “Referenced by”References
Section titled “References”Internal_Validate
Section titled “Internal_Validate”const
void Internal_Validate(FGenericError & OutError) constDefined in OperatingSystem.h:802 Perform internal validation of the operating system. This method performs internal validation of the operating system. It checks various criteria to ensure that the operating system is valid.
Parameters
Section titled “Parameters”OutErrorThe reference to FGenericError object that will be populated with error information if any validation errors occur.
References
Section titled “References”DefaultDirectoriesDirectoryIconsGetSettingsInstallationSpaceMAKE_ERRORMustHaveProgramsNameOnValidateOperatingSystemTagParentDeviceSupportedDevicesWidgetClass
Internal_CreateNotificationManager
Section titled “Internal_CreateNotificationManager”void Internal_CreateNotificationManager()Defined in OperatingSystem.h:814 Internal method called to create the notification manager for the operating system.
This method creates an instance of the notification manager only if it doesn’t already exist. The notification manager is responsible for handling the display and management of operating system notifications.
The notification manager is created using the current world and the toast notification time defined in the notification settings. The OnShowNotification event is bound to the OnShowNotification method of the class, and the OnClearAllNotifications event is bound to the OnAllNotificationsCleared method of the class.
Referenced by
Section titled “Referenced by”References
Section titled “References”Internal_LoadSettings
Section titled “Internal_LoadSettings”constFOperatingSystemDeviceSaveLoad * Internal_LoadSettings(constTWeakObjectPtr< constUOperatingSystemSaveGame > LoadGameInstance, FGenericError & OutError)Defined in OperatingSystem.h:831 Internal method to load the settings for the operating system.
This method is used to load the settings for the operating system. It is an internal method and is not intended to be called directly from outside the class. This method loads the settings from the provided save game instance and applies them to the operating system. It also checks if the necessary modules and partitions are present and handles the error accordingly.
Parameters
Section titled “Parameters”-
LoadGameInstanceThe instance of the save game to load the settings from. -
OutErrorThe error to be filled in case of any failure.
Referenced by
Section titled “Referenced by”References
Section titled “References”bAutoLoginbIsStartingForTheFirstTimeCreateDirectoryInPathDeviceNameFindSettingModuleFromClassGetSettingsMAKE_ERRORNameOnPartitionLoadedOperatingSystemSettingsDataParentDeviceTargetPartitionIDToStringWARN_WITH_NAME
Internal_RunPendingStartupProgram
Section titled “Internal_RunPendingStartupProgram”void Internal_RunPendingStartupProgram()Defined in OperatingSystem.h:1473
References
Section titled “References”Internal_InstallProgram
Section titled “Internal_InstallProgram”UOperatingSystemBaseProgram * Internal_InstallProgram(constTSoftClassPtr< UOperatingSystemBaseProgram > & TargetProgram, UOperatingSystemPartition * TargetPartition, FGenericError & OutError, constbool bIsSystemInstalled = false)Defined in OperatingSystem.h:1485 Installs a program in the operating system.
Parameters
Section titled “Parameters”-
TargetProgramThe program to be installed. -
TargetPartitionThe partition where the program will be installed. -
OutErrorThe error that occurred during installation, if any. -
bIsSystemInstalledFlag indicating whether the program is a system program.
Returns
Section titled “Returns”A pointer to the installed program, or nullptr if installation failed.
Referenced by
Section titled “Referenced by”References
Section titled “References”AddNotificationConsumeSpaceInMBConvertMB_ToBytesCreateProgramGetSettingsHasEnoughSpaceInstalledProgramsMAKE_ERROROnProgramInstalledOperatingSystemParentDeviceSaveGameSetProgramAtStartup
Internal_LoadSavedProgram
Section titled “Internal_LoadSavedProgram”void Internal_LoadSavedProgram(constTSoftClassPtr< UOperatingSystemBaseProgram > & TargetProgram, UOperatingSystemPartition * TargetPartition)Defined in OperatingSystem.h:1508 Loads a saved program into the operating system.
This method loads a saved program into the operating system and adds it to the list of installed programs. The program is associated with the specified target partition.
Parameters
Section titled “Parameters”-
TargetProgramThe reference to the soft class pointer of the target program to be loaded. -
TargetPartitionThe pointer to the target partition where the program will be associated with.
Preconditions
Section titled “Preconditions”-
The TargetProgram must not be null.
-
The TargetPartition must be a valid pointer.
Postconditions
Section titled “Postconditions”-
The program is loaded into the operating system.
-
The program is added to the list of installed programs.
-
The program is associated with the specified target partition.
See also: UOperatingSystemBaseProgram::CreateProgram
See also: InstalledPrograms
See also: UOperatingSystemBaseProgram::SetParentPartition
Referenced by
Section titled “Referenced by”References
Section titled “References”Internal_SetTaskbarButtonStateToUnfocused
Section titled “Internal_SetTaskbarButtonStateToUnfocused”void Internal_SetTaskbarButtonStateToUnfocused()Defined in OperatingSystem.h:1510
Referenced by
Section titled “Referenced by”References
Section titled “References”FocusedGetSettingsNotFocusedTaskbarButtons
Internal_BringWindowToFront
Section titled “Internal_BringWindowToFront”void Internal_BringWindowToFront(UDraggableWindow * TargetWindow)Defined in OperatingSystem.h:1511