Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
Represents an operating system video file. More...
#include "OperatingSystemVideoFile.h"
Public Member Functions | |
UOperatingSystemVideoFile () | |
Public Member Functions inherited from UOperatingSystemFile | |
UOperatingSystemFile () | |
void | OpenFile (FGenericError &OutError) |
void | CloseFile () |
Closes the file and cleans up any associated resources. | |
FText | GetFileName (const bool bWithExtension=true) const |
FText | GetExtension () const |
bool | IsSameFile (const UOperatingSystemFile *OtherFile) const |
FORCEINLINE TSoftObjectPtr< UObject > | GetIconObject () const |
FORCEINLINE TScriptInterface< IOperatingSystemExplorerInterface > | GetExplorerInterface () const |
This method returns the TScriptInterface of the IOperatingSystemExplorer. | |
Protected Member Functions | |
virtual void | OnValidate (FGenericError &OutError) override |
Validates the operating system video file. | |
Protected Member Functions inherited from UOperatingSystemFile | |
UOperatingSystemFileIconWidget * | CreateIconWidget () |
void | K2_OnOpen () |
Protected Attributes | |
TSoftObjectPtr< UMediaSource > | MediaSource |
Protected Attributes inherited from UOperatingSystemFile | |
FText | Name |
FText | Extension |
TSoftObjectPtr< UObject > | IconObject |
float | SpaceRequiredInMB |
uint8 | bIsDeletable: 1 |
uint8 | bIsMovable: 1 |
TSoftClassPtr< UOperatingSystemBaseProgram > | TargetProgramClass |
TSoftClassPtr< UOperatingSystemFileIconWidget > | IconWidgetClass |
TSoftClassPtr< UOperatingSystemFileWidget > | WidgetClass |
TWeakObjectPtr< UOperatingSystemBaseProgram > | ParentProgram |
TObjectPtr< UOperatingSystemFileWidget > | FileWidget |
TScriptInterface< IOperatingSystemExplorerInterface > | ParentExplorerInterface |
bool | bHasBlueprintOnOpen |
Additional Inherited Members | |
Static Public Member Functions inherited from UOperatingSystemFile | |
static UOperatingSystemFile * | CreateFile (TScriptInterface< IOperatingSystemExplorerInterface > ExplorerInterface, const TSoftClassPtr< UOperatingSystemFile > &FileSoftClass, FGenericError &OutError) |
Creates a new file in the operating system. | |
static UOperatingSystemFile * | CreateRuntimeFile (UOperatingSystemFile *ParentFile) |
Creates a runtime file based on the given parent file. | |
Represents an operating system video file.
UOperatingSystemVideoFile is a subclass of UOperatingSystemFile that represents a video file in the operating system. It provides functionality to store and validate a video media source.
UOperatingSystemVideoFile::UOperatingSystemVideoFile | ( | ) |
|
overrideprotectedvirtual |
Validates the operating system video file.
This method checks if the MediaSource is null and sets the OutError object if it is. The error message will be of the format "'%s' has no media source set.", where s is replaced by the file name returned from GetFileName().
OutError | The reference to a FGenericError object that will store the error information if the validation fails. |
Reimplemented from UOperatingSystemFile.
|
protected |
Video media source.