Files
UnrealEngineUWP/Engine/Source/Programs/CrashReportClient/Private/RecoveryService.h
Patrick Boutot 410c720ac7 Merging //UE4/Dev-Main @ 10886849 to Dev-Tools-Staging (//UE4/Dev-Tools-Staging)
#rb none
#rnx
#author jeanmichel.dignard

[CL 10992634 by Patrick Boutot in Dev-VirtualProduction branch]
2020-01-15 09:39:21 -05:00

36 lines
804 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "CrashReportClientDefines.h"
#if CRASH_REPORT_WITH_RECOVERY
class IConcertSyncServer;
/** Manage the life time of the Disaster recovery service. */
class FRecoveryService
{
public:
FRecoveryService(uint64 InClientPid) : MonitorPid(InClientPid) { Startup(); }
~FRecoveryService() { Shutdown(); }
/** Collects the session files. */
bool CollectFiles(const FString& DestDir, bool bMetaDataOnly = true, bool bAnonymizeMetaData = false);
private:
bool Startup();
void Shutdown();
FString GetRecoveryServiceWorkingDir() const;
FString GetRecoveryServiceArchivedDir() const;
FGuid GetRecoverySessionId() const;
private:
TSharedPtr<IConcertSyncServer> Server;
uint64 MonitorPid = 0;
};
#endif