Files
UnrealEngineUWP/Engine/Source/Developer/ScreenShotComparison/Private/Models/ScreenComparisonModel.h
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#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]
2018-12-14 13:44:01 -05:00

55 lines
1.2 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "ImageComparer.h"
#include "AutomationWorkerMessages.h"
#include "Misc/FileHelper.h"
#include "JsonObjectConverter.h"
#include "AutomationWorkerMessages.h"
#include "Interfaces/IScreenShotManager.h"
class FScreenComparisonModel
{
public:
FScreenComparisonModel(const FComparisonReport& InReport);
DECLARE_MULTICAST_DELEGATE(FOnComplete);
FOnComplete OnComplete;
FComparisonReport Report;
bool IsComplete() const;
void Complete();
bool AddNew(IScreenShotManagerPtr ScreenshotManager);
bool Replace(IScreenShotManagerPtr ScreenshotManager);
bool AddAlternative(IScreenShotManagerPtr ScreenshotManager);
TOptional<FAutomationScreenshotMetadata> GetMetadata();
private:
bool RemoveExistingApproved(IScreenShotManagerPtr ScreenshotManager);
private:
bool bComplete;
TOptional<FAutomationScreenshotMetadata> Metadata;
struct FFileMapping
{
FFileMapping(const FString& InSourceFile, const FString& InDestinationFile)
: SourceFile(InSourceFile)
, DestinationFile(InDestinationFile)
{
}
FString SourceFile;
FString DestinationFile;
};
//
TArray<FFileMapping> FileImports;
};