Files
UnrealEngineUWP/Engine/Source/Editor/DeviceProfileServices/Private/DeviceProfileServicesModule.cpp
2014-03-14 14:13:41 -04:00

41 lines
1.3 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
DeviceProfileServicesModule.cpp: Implements the FDeviceProfileServicesModule module.
=============================================================================*/
#include "DeviceProfileServicesPCH.h"
/**
* Implements the DeviceProfileServices module.
*/
class FDeviceProfileServicesModule
: public IDeviceProfileServicesModule
{
public:
// Begin IDeviceProfileServicesModule interface
virtual IDeviceProfileServicesUIManagerRef GetProfileServicesManager( ) OVERRIDE
{
if (!DeviceProfileServicesUIManagerSingleton.IsValid())
{
DeviceProfileServicesUIManagerSingleton = MakeShareable(new FDeviceProfileServicesUIManager());
}
return DeviceProfileServicesUIManagerSingleton.ToSharedRef();
}
// End IDeviceProfileServicesModule interface
protected:
// Holds the session manager singleton.
static IDeviceProfileServicesUIManagerPtr DeviceProfileServicesUIManagerSingleton;
};
/* Static initialization
*****************************************************************************/
IDeviceProfileServicesUIManagerPtr FDeviceProfileServicesModule::DeviceProfileServicesUIManagerSingleton = NULL;
IMPLEMENT_MODULE(FDeviceProfileServicesModule, DeviceProfileServices);