Files
UnrealEngine/Engine/Source/Editor/DeviceProfileServices/Private/DeviceProfileServicesModule.cpp
2025-05-18 13:04:45 +08:00

44 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "DeviceProfileServicesUIManager.h"
#include "HAL/PlatformCrt.h"
#include "IDeviceProfileServicesModule.h"
#include "IDeviceProfileServicesUIManager.h"
#include "Modules/ModuleManager.h"
#include "Templates/SharedPointer.h"
/**
* Implements the DeviceProfileServices module.
*/
class FDeviceProfileServicesModule
: public IDeviceProfileServicesModule
{
public:
// IDeviceProfileServicesModule interface
virtual IDeviceProfileServicesUIManagerRef GetProfileServicesManager( ) override
{
if (!DeviceProfileServicesUIManagerSingleton.IsValid())
{
DeviceProfileServicesUIManagerSingleton = MakeShareable(new FDeviceProfileServicesUIManager());
}
return DeviceProfileServicesUIManagerSingleton.ToSharedRef();
}
protected:
// Holds the session manager singleton.
static IDeviceProfileServicesUIManagerPtr DeviceProfileServicesUIManagerSingleton;
};
/* Static initialization
*****************************************************************************/
IDeviceProfileServicesUIManagerPtr FDeviceProfileServicesModule::DeviceProfileServicesUIManagerSingleton = NULL;
IMPLEMENT_MODULE(FDeviceProfileServicesModule, DeviceProfileServices);