Files
UnrealEngineUWP/Engine/Source/Developer/ScreenShotComparisonTools/Private/ScreenShotToolsModule.cpp
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

62 lines
1.3 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
ScreenShotToolsModule.cpp: Implements the FScreenShotToolsModule class.
=============================================================================*/
#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"
#include "Interfaces/IScreenShotToolsModule.h"
#include "IMessagingModule.h"
#include "ScreenShotManager.h"
/**
* Implements the ScreenshotTools module.
*/
class FScreenShotToolsModule
: public IScreenShotToolsModule
{
public:
// Begin IScreenShotToolsModule interface
virtual IScreenShotManagerPtr GetScreenShotManager() override
{
return ScreenShotManager;
}
// End IScreenShotToolsModule interface
public:
/**
* Shutdown the screen shot manager tools module
*/
virtual void ShutdownModule( ) override
{
ScreenShotManager.Reset();
}
/**
* Startup the screen shot manager tools module
*/
void StartupModule() override
{
// Create the screen shot manager
if (!ScreenShotManager.IsValid())
{
ScreenShotManager = MakeShareable(new FScreenShotManager());
}
}
private:
// Holds the screen shot manager.
IScreenShotManagerPtr ScreenShotManager;
};
IMPLEMENT_MODULE(FScreenShotToolsModule, ScreenShotComparisonTools);