You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Headers are updated to contain any missing #includes needed to compile and #includes are sorted. Nothing is removed. #ushell-cherrypick of 21065896 by bryan.sefcik #preflight 62d4b1a5a6141b6adfb0c892 #jira #ROBOMERGE-OWNER: Bryan.sefcik #ROBOMERGE-AUTHOR: bryan.sefcik #ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824) #ROBOMERGE-CONFLICT from-shelf [CL 21181076 by Bryan sefcik in ue5-main branch]
60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Interfaces/IBackgroundHttpManager.h"
|
|
#include "Interfaces/IBackgroundHttpRequest.h"
|
|
#include "Misc/CoreMisc.h"
|
|
#include "Modules/ModuleInterface.h"
|
|
|
|
|
|
/**
|
|
* Module for Http Background request implementations
|
|
*/
|
|
class FBackgroundHttpModule :
|
|
public IModuleInterface
|
|
{
|
|
public:
|
|
/**
|
|
* Singleton-like access to this module's interface. This is just for convenience!
|
|
* Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.
|
|
*
|
|
* @return Returns singleton instance, loading the module on demand if needed
|
|
*/
|
|
BACKGROUNDHTTP_API static FBackgroundHttpModule& Get();
|
|
|
|
/**
|
|
* Creates a BackgroundRequest through the appropriate platform-layer.
|
|
*
|
|
* @return SharedRef to the new BackgroundRequest.
|
|
*/
|
|
BACKGROUNDHTTP_API static FBackgroundHttpRequestPtr CreateBackgroundRequest();
|
|
|
|
/**
|
|
* Gets the current BackgroundHttpManager from the appropriate platform layer.
|
|
*
|
|
* @return SharedPtr to the BackgroundHttpManager.
|
|
*/
|
|
BACKGROUNDHTTP_API FBackgroundHttpManagerPtr GetBackgroundHttpManager();
|
|
|
|
public:
|
|
// IModuleInterface
|
|
/**
|
|
* Called when Background Http module is loaded
|
|
*/
|
|
virtual void StartupModule() override;
|
|
|
|
/**
|
|
* Called when Background Http module is unloaded
|
|
*/
|
|
virtual void ShutdownModule() override;
|
|
|
|
private:
|
|
/** Keeps track of Background Http requests while they are being processed */
|
|
FBackgroundHttpManagerPtr BackgroundHttpManager;
|
|
|
|
/** singleton for the module while loaded and available */
|
|
static FBackgroundHttpModule* Singleton;
|
|
};
|