You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- removed dummy UClasses (no longer needed) - removed file header comments (not used) - removed duplicated function documentation in cpp files - documentation cleanup, punctuation, spelling etc. - pragma once include guards (now work on all platforms) - relative public includes (are auto-discovered by UBT) - fixed too many/too few line breaks - deleted empty files - missing override - NULL to nullptr [CL 2305058 by Max Preussner in Main branch]
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "TargetDeviceServicesPrivatePCH.h"
|
|
|
|
|
|
DEFINE_LOG_CATEGORY(TargetDeviceServicesLog);
|
|
|
|
|
|
/**
|
|
* Implements the TargetDeviceServices module.
|
|
*/
|
|
class FTargetDeviceServicesModule
|
|
: public ITargetDeviceServicesModule
|
|
{
|
|
public:
|
|
|
|
// ITargetDeviceServicesModule interface
|
|
|
|
virtual ITargetDeviceProxyManagerRef GetDeviceProxyManager( ) override
|
|
{
|
|
if (!DeviceProxyManagerSingleton.IsValid())
|
|
{
|
|
DeviceProxyManagerSingleton = MakeShareable(new FTargetDeviceProxyManager());
|
|
}
|
|
|
|
return DeviceProxyManagerSingleton.ToSharedRef();
|
|
}
|
|
|
|
virtual ITargetDeviceServiceManagerRef GetDeviceServiceManager( ) override
|
|
{
|
|
if (!DeviceServiceManagerSingleton.IsValid())
|
|
{
|
|
DeviceServiceManagerSingleton = MakeShareable(new FTargetDeviceServiceManager());
|
|
}
|
|
|
|
return DeviceServiceManagerSingleton.ToSharedRef();
|
|
}
|
|
|
|
private:
|
|
|
|
// Holds the device proxy manager singleton.
|
|
ITargetDeviceProxyManagerPtr DeviceProxyManagerSingleton;
|
|
|
|
// Holds the device service manager singleton.
|
|
ITargetDeviceServiceManagerPtr DeviceServiceManagerSingleton;
|
|
};
|
|
|
|
|
|
IMPLEMENT_MODULE(FTargetDeviceServicesModule, TargetDeviceServices);
|