You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#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]
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "TargetDeviceServicesPrivate.h"
|
|
|
|
#include "CoreTypes.h"
|
|
#include "Modules/ModuleManager.h"
|
|
|
|
#include "ITargetDeviceServicesModule.h"
|
|
#include "TargetDeviceProxyManager.h"
|
|
#include "TargetDeviceServiceManager.h"
|
|
|
|
|
|
DEFINE_LOG_CATEGORY(TargetDeviceServicesLog);
|
|
|
|
|
|
/**
|
|
* Implements the TargetDeviceServices module.
|
|
*/
|
|
class FTargetDeviceServicesModule
|
|
: public ITargetDeviceServicesModule
|
|
{
|
|
public:
|
|
|
|
//~ ITargetDeviceServicesModule interface
|
|
|
|
virtual TSharedRef<ITargetDeviceProxyManager> GetDeviceProxyManager() override
|
|
{
|
|
if (!DeviceProxyManagerSingleton.IsValid())
|
|
{
|
|
DeviceProxyManagerSingleton = MakeShareable(new FTargetDeviceProxyManager());
|
|
}
|
|
|
|
return DeviceProxyManagerSingleton.ToSharedRef();
|
|
}
|
|
|
|
virtual TSharedRef<ITargetDeviceServiceManager> GetDeviceServiceManager() override
|
|
{
|
|
if (!DeviceServiceManagerSingleton.IsValid())
|
|
{
|
|
DeviceServiceManagerSingleton = MakeShareable(new FTargetDeviceServiceManager());
|
|
}
|
|
|
|
return DeviceServiceManagerSingleton.ToSharedRef();
|
|
}
|
|
|
|
private:
|
|
|
|
/** Holds the device proxy manager singleton. */
|
|
TSharedPtr<FTargetDeviceProxyManager> DeviceProxyManagerSingleton;
|
|
|
|
/** Holds the device service manager singleton. */
|
|
TSharedPtr<FTargetDeviceServiceManager> DeviceServiceManagerSingleton;
|
|
};
|
|
|
|
|
|
IMPLEMENT_MODULE(FTargetDeviceServicesModule, TargetDeviceServices);
|