Files
UnrealEngineUWP/Engine/Source/Editor/DerivedDataEditor/Private/DerivedDataInformation.h
aurel cordonnier fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00

42 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Commands/Commands.h"
enum class ERemoteCacheState : uint8
{
Idle,
Busy,
Unavailable,
Warning,
};
class FDerivedDataInformation
{
public:
static double GetCacheActivityTimeSeconds(bool bGet, bool bLocal);
static double GetCacheActivitySizeBytes(bool bGet, bool bLocal);
static bool GetHasRemoteCache();
static bool GetHasZenCache();
static bool GetHasHordeStorageCache();
static ERemoteCacheState GetRemoteCacheState() { return RemoteCacheState; }
static FText GetRemoteCacheStateAsText();
static FText GetRemoteCacheWarningMessage() { return RemoteCacheWarningMessage; }
static void UpdateRemoteCacheState();
static bool IsUploading() { return bIsUploading; }
static bool IsDownloading() { return bIsDownloading; }
private:
static ERemoteCacheState RemoteCacheState;
static FText RemoteCacheWarningMessage;
static double LastGetTime;
static double LastPutTime;
static bool bIsUploading;
static bool bIsDownloading;
};