42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "HAL/Platform.h"
|
|
#include "Internationalization/Text.h"
|
|
|
|
enum class DERIVEDDATAWIDGETS_API ERemoteCacheState : uint8
|
|
{
|
|
Idle,
|
|
Busy,
|
|
Unavailable,
|
|
Warning,
|
|
};
|
|
|
|
class DERIVEDDATAWIDGETS_API FDerivedDataInformation
|
|
{
|
|
public:
|
|
|
|
static double GetCacheActivityTimeSeconds(bool bGet, bool bLocal);
|
|
static double GetCacheActivitySizeBytes(bool bGet, bool bLocal);
|
|
static bool GetHasRemoteCache();
|
|
static bool GetHasZenCache();
|
|
static bool GetHasUnrealCloudCache();
|
|
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;
|
|
|
|
};
|