Files
UnrealEngineUWP/Engine/Source/Programs/CrashReportClient/Private/RecoveryService.h
Stefan Boberg 1f813eb516 Copying //UE4/Dev-Core to Main (//UE4/Main)
#rb many

[CL 9405827 by Stefan Boberg in Main branch]
2019-10-03 16:26:48 -04:00

36 lines
814 B
C++

// Copyright 1998-2019 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