Files
UnrealEngineUWP/Engine/Source/Developer/ScreenShotComparison/Private/Models/ScreenComparisonModel.h
ryan durand 471d972e62 Updating copyright for Engine Developer.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870584 by ryan durand in Main branch]
2019-12-26 15:32:37 -05:00

55 lines
1.2 KiB
C++

// Copyright 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;
};