Files
UnrealEngineUWP/Engine/Source/Editor/TurnkeySupport/Private/TurnkeySupportModule.h
Josh Adams b81fcf0c50 - Run Turnkey device queries automtically for all devices after getting platform SDK info, so there is less waiting with Turnkey menu open with (Querying...)
- Added -nocompileuat when UAT has run successfully to speed up UAT runs
#jira none
#rb david.harvey
#preflight 624efe49867d2945ae80a1b3

[CL 19670235 by Josh Adams in ue5-main branch]
2022-04-07 11:32:19 -04:00

65 lines
1.8 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Interfaces/ITurnkeySupportModule.h"
#if WITH_EDITOR
#include "Misc/CoreMisc.h"
#endif
/**
* Editor main frame module
*/
class FTurnkeySupportModule : public ITurnkeySupportModule
#if WITH_EDITOR
, public FSelfRegisteringExec
#endif
{
public:
virtual void MakeTurnkeyMenu(struct FToolMenuSection& MenuSection) const override;
virtual void MakeQuickLaunchItems(class UToolMenu* Menu, FOnQuickLaunchSelected ExternalOnClickDelegate) const override;
virtual void RepeatQuickLaunch(FString DeviceId) override;
virtual void UpdateSdkInfo() override;
void UpdateSdkInfoForAllDevices();
void UpdateSdkInfoForProxy(const TSharedRef<class ITargetDeviceProxy>& AddedProxy);
virtual void UpdateSdkInfoForDevices(TArray<FString> DeviceIds) override;
virtual FTurnkeySdkInfo GetSdkInfo(FName PlatformName, bool bBlockIfQuerying = true) const override;
virtual FTurnkeySdkInfo GetSdkInfoForDeviceId(const FString& DeviceId) const override;
virtual void ClearDeviceStatus(FName PlatformName=NAME_None) override;
public:
// IModuleInterface interface
virtual void StartupModule( ) override;
virtual void ShutdownModule( ) override;
virtual bool SupportsDynamicReloading( ) override
{
return true; // @todo: Eventually, this should probably not be allowed.
}
private:
// Information about the validity of using a platform, discovered via Turnkey
TMap<FName, FTurnkeySdkInfo> PerPlatformSdkInfo;
// Information about the validity of each connected device (by string, discovered by Turnkey)
TMap<FString, FTurnkeySdkInfo> PerDeviceSdkInfo;
// menu helpers
TSharedRef<SWidget> MakeTurnkeyMenuWidget() const;
#if WITH_EDITOR
// FSelfRegisteringExec interface
virtual bool Exec( class UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar ) override;
#endif
};