Files
UnrealEngineUWP/Engine/Source/Programs/CrashReportClient/Private/RecoveryService.h
Ryan Durand 9ef3748747 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870955 by Ryan Durand in Main branch]
2019-12-26 23:01:54 -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