|
| UOperatingSystemNonUnix () |
|
virtual UOperatingSystemDirectory * | CreateDirectoryInPath (const FString &TargetPath, const FString &DirectoryName, TSoftClassPtr< UOperatingSystemDirectory > DirectoryClass, UOperatingSystemPartition *TargetPartition, const bool bIsFromSaveGame, FGenericError &OutError) override |
|
template<class T > |
T * | GetAs () const |
| Get a pointer to the object casted as type T.
|
|
template<class T > |
FORCEINLINE const T * | GetAsConst () const |
| Get a pointer to the object casted as type T.
|
|
OPERATINGSYSTEMSIMULATOR_API bool | AddNotification (const FOperatingSystemNotification &NewNotification) |
| Adds a notification to the operating system.
|
|
OPERATINGSYSTEMSIMULATOR_API bool | AddNotification (const FGenericError &GenericError, const EOperatingSystemNotificationCategory &Category, const EOperatingSystemNotificationType Verbosity=EOperatingSystemNotificationType::Error) |
| 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 (const TWeakObjectPtr< const UOperatingSystemSaveGame > LoadGameInstance, FGenericError &OutError) |
| 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 | 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 (UOperatingSystemBaseProgram *NewProgram, FGenericError &OutError) |
| Adds a running program to the operating system.
|
|
void | ProgramStarted (UOperatingSystemBaseProgram *StartedProgram, const bool bIsRestored) |
| Notifies the operating system that a program has started.
|
|
bool | IsProgramRunning (const TWeakObjectPtr< const UOperatingSystemBaseProgram > TestProgram) const |
| Check if a program is running.
|
|
bool | IsProgramRunning (const TSubclassOf< UOperatingSystemBaseProgram > TestProgramClass) const |
| Checks if a program of the specified class is currently running.
|
|
UDraggableWindow * | CreateNewWindow (TWeakObjectPtr< UOperatingSystemBaseProgram > TargetProgram) const |
| Creates a new window for the target program.
|
|
void | BringWindowToFront (UDraggableWindow *TargetWindow) |
| Bring the specified window to the front.
|
|
bool | CreateProgramsFromRepository (const TSoftObjectPtr< UOperatingSystemProgramsCollection > &TargetRepository, const bool bIsInstalledWithOS) |
| Create programs from a given repository.
|
|
void | SetToInstallStartupPrograms (const bool bInstall) |
|
bool | ShouldInstallStartupPrograms () const |
|
void | SetDeviceName (const FText &NewName) |
|
FText | GetDeviceName () const |
|
void | SetAutoLogin (const bool bEnableAutoLogin) |
|
bool | CanAutoLogin () const |
|
float | GetInstallationTime () const |
|
float | GetLoadingTime () const |
|
float | GetInitialLoadingTime () const |
|
const TArray< FOperatingSystemNotification > & | GetNotifications () const |
|
void | ClearAllNotifications () |
|
OPERATINGSYSTEMSIMULATOR_API void | ConsumeSpaceInMB (const float &NewSizeInMB, UOperatingSystemPartition *Partition, FGenericError &OutError) |
|
OPERATINGSYSTEMSIMULATOR_API void | ConsumeSpaceInGB (const float &NewSizeInGB, UOperatingSystemPartition *Partition, FGenericError &OutError) |
|
OPERATINGSYSTEMSIMULATOR_API FText | GetSizeAsText (const EOperatingSystemSizeMethod SizeMethod, const UOperatingSystemPartition *Partition, FGenericError &OutError) const |
|
OPERATINGSYSTEMSIMULATOR_API float | GetStoragePercentage (const UOperatingSystemPartition *Partition, FGenericError &OutError) const |
|
OPERATINGSYSTEMSIMULATOR_API double | GetHardDiskSize (FGenericError &OutError, const EOperatingSystemSizeMethod SizeMethod=EOperatingSystemSizeMethod::GB) const |
|
void | UninstallProgram (const FName &ProgramIdentifier, FGenericError &OutErrorIfAny) |
|
void | UninstallProgramByClass (const TSoftClassPtr< UOperatingSystemBaseProgram > ProgramClass, FGenericError &OutErrorIfAny) |
|
UOperatingSystemBaseProgram * | InstallProgramFromPackage (const FName &ProgramIdentifier, FGenericError &OutErrorIfAny) |
|
UOperatingSystemBaseProgram * | InstallProgramFromClass (FGenericError &OutErrorIfAny, const TSoftClassPtr< UOperatingSystemBaseProgram > ProgramClass, UOperatingSystemPartition *TargetPartition=nullptr) |
|
void | BeginInstallation (UOperatingSystemPartition *TargetPartition, FGenericError &OutError) |
|
UOperatingSystemPartition * | AllocatePartition (const double SizeInBytes, FGenericError &OutError) |
|
void | RemovePartition (UOperatingSystemPartition *PartitionToDelete, FGenericError &OutError) |
|
void | RefreshPartitions () |
|
void | InstallationCompleted (const bool bSwitchToDesktop=true) |
|
bool | CreateNewUser (const FOperatingSystemUser &NewUser, const bool bSetAsActive=false) |
|
bool | LoginUser (const FText &Username, const FText &Password) |
|
bool | UpdateCurrentUserDetails (const FOperatingSystemUser &UpdatedDetails) |
|
bool | HasEnoughSpace (const double &TestSizeInBytes, const UOperatingSystemPartition *InPartition) const |
|
TArray< UOperatingSystemPartition * > | GetDiskPartitions () const |
|
UOperatingSystemPartition * | GetOperatingSystemPartition () const |
|
void | CloseProgram (UOperatingSystemBaseProgram *TargetProgram, FGenericError &OutError) |
|
bool | BringBackgroundProgramToFront (UOperatingSystemBaseProgram *TargetProgram) |
|
bool | IsProgramInBackground (UOperatingSystemBaseProgram *TestProgram) const |
|
void | MinimizeProgram (UOperatingSystemBaseProgram *TargetProgram) |
|
void | CloseAllRunningPrograms () |
|
void | RestoreMinimizedProgram (const UOperatingSystemBaseProgram *TargetProgram) |
| Restores a minimized program to the foreground on the operating system's taskbar.
|
|
UObject * | GetDirectoryIconObject (const FGameplayTag &TestTag) const |
|
bool | IsUnix () const |
|
float | GetBsodOnScreenTime () const |
|
float | GetToastNotificationDisplayTime () const |
|
TArray< UOperatingSystemBaseProgram * > | GetInstalledPrograms () const |
|
void | GetInstalledProgramsMap (TMap< FName, UOperatingSystemBaseProgram * > &OutInstalledPrograms) |
|
UOperatingSystemBaseProgram * | GetInstalledProgram (const TSoftClassPtr< UOperatingSystemBaseProgram > TestClass) const |
|
bool | IsProgramInstalled (const TSoftClassPtr< UOperatingSystemBaseProgram > TestClass) const |
|
UOperatingSystemBaseProgram * | GetRunningProgram (const TSoftClassPtr< UOperatingSystemBaseProgram > TestClass) const |
|
bool | IsPreInstalledOperatingSystem () const |
|
UOperatingSystemSettingsData * | GetSettings () const |
|
bool | IsRunningOnPortableDevice () const |
|
virtual TOptional< FText > | GetRootCommand () const |
| Retrieves the root command associated with the operating system.
|
|
virtual TOptional< FOperatingSystemUser > | GetRootUser () const |
| 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 |
| 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.
|
|
|
virtual void | FinalizePreInstallation (FGenericError &OutError) override |
|
virtual void | PrepareOperatingSystemInstallImpl (FGenericError &OutError) override |
| Finalizes the pre-installation process of the operating system for non-unix systems.
|
|
virtual bool | StartOperatingSystemImpl (FGenericError &OutError) override |
| Starts the operating system for non-unix systems. This method sets the disk letter for each disk partition.
|
|
virtual void | PostLoadOperatingSystemImpl (FGenericError &OutError) override |
| Performs post-loading operations for the operating system in non-Unix systems.
|
|
virtual void | OnPartitionLoaded (UOperatingSystemPartition &LoadedPartition, const FOperatingSystemPartitionSaveLoad &SaveLoadData) override |
| This method is called when a partition is loaded. This method sets the disk letter for the loaded partition, using the disk letter from the SaveLoadData if it is not empty, or the first disk letter found if it is empty.
|
|
virtual UOperatingSystemPartition * | FindPartitionFromLetter (const FName &TargetDiskLetter) const override final |
| Finds a partition on the non-Unix operating system that matches the given disk letter. This function searches for a partition in the list of disk partitions that has the specified disk letter.
|
|
FName | FindDiskLetterAtIndex (const int32 &AtIndex) const |
|
virtual OPERATINGSYSTEMSIMULATOR_API void | OnShowNotification (const FOperatingSystemNotification &NewNotification) |
| This method is called when a new notification should be shown on the operating system.
|
|
virtual OPERATINGSYSTEMSIMULATOR_API void | OnAllOnNotificationsCleared () |
| Callback triggered when all notifications are cleared.
|
|
virtual OPERATINGSYSTEMSIMULATOR_API void | OnValidate (FGenericError &OutError) const |
| 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.
|
|
virtual OPERATINGSYSTEMSIMULATOR_API void | FinishInstallationImpl () |
| Performs the finishing steps of the installation process.
|
|
virtual OPERATINGSYSTEMSIMULATOR_API void | InstallStartupProgramsImpl () |
| 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.
|
|
virtual OPERATINGSYSTEMSIMULATOR_API TSoftClassPtr< UOperatingSystemBaseProgram > | FindProgramFromPackage (const FName &ProgramIdentifier) |
| Finds the program corresponding to the given package identifier. This method searches for a program based on the provided package identifier.
|
|
bool | K2_CanStartOperatingSystem (FGenericError &ReturnError) |
| Determines if the operating system can start.
|
|
This class represents a non-unix operating system. It inherits from UOperatingSystem and provides additional functionality specific to non-unix systems.