You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none #lockdown Nick.Penwarden #ROBOMERGE-OWNER: ryan.gerleve #ROBOMERGE-AUTHOR: ben.marsh #ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/... #ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking) [CL 4662413 by ben marsh in Dev-Networking branch]
65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Containers/UnrealString.h"
|
|
|
|
/**
|
|
* Manager for reports that weren't able to be sent on previous runs of the tool
|
|
*/
|
|
class FPendingReports
|
|
{
|
|
public:
|
|
/**
|
|
* Load the list of reports
|
|
*/
|
|
FPendingReports();
|
|
|
|
/**
|
|
* Add a pending report directory
|
|
* @Path Full path to the directory containing the report
|
|
*/
|
|
void Add(const FString& Path);
|
|
|
|
/**
|
|
* Remove a pending report directory if present
|
|
* @ReportDirectoryName Leaf name of report directory to remove
|
|
*/
|
|
void Forget(const FString& ReportDirectoryName);
|
|
|
|
/**
|
|
* Clear out the list of reports
|
|
*/
|
|
void Clear()
|
|
{
|
|
Reports.Reset();
|
|
}
|
|
|
|
/**
|
|
* Save out the list of reports to the user's application settings folder
|
|
*/
|
|
void Save() const;
|
|
|
|
/**
|
|
* Access to report directories
|
|
* @return Full paths to all pending report directories
|
|
*/
|
|
const TArray<FString>& GetReportDirectories() const;
|
|
|
|
private:
|
|
/**
|
|
* Load the list of reports from the user's application settings folder
|
|
*/
|
|
void Load();
|
|
|
|
/**
|
|
* Get the application settings location of the pending reports file
|
|
* @return Full path to the file
|
|
*/
|
|
static FString GetPendingReportsJsonFilepath();
|
|
|
|
/** Full paths to reports not yet submitted */
|
|
TArray<FString> Reports;
|
|
};
|