You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
32 lines
981 B
C
32 lines
981 B
C
|
|
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
|
||
|
|
|
||
|
|
class BACKGROUNDHTTP_API FBackgroundHttpNotificationObject
|
||
|
|
: public TSharedFromThis<FBackgroundHttpNotificationObject, ESPMode::ThreadSafe>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
FBackgroundHttpNotificationObject(FText InNotificationTitle, FText InNotificationAction, FText InNotificationBody, const FString& InNotificationActivationString, bool InNotifyOnlyOnFullSuccess);
|
||
|
|
~FBackgroundHttpNotificationObject();
|
||
|
|
|
||
|
|
void NotifyOfDownloadResult(bool bWasSuccess);
|
||
|
|
|
||
|
|
private:
|
||
|
|
FText NotificationTitle;
|
||
|
|
FText NotificationAction;
|
||
|
|
FText NotificationBody;
|
||
|
|
FString NotificationActivationString;
|
||
|
|
|
||
|
|
bool bNotifyOnlyOnFullSuccess;
|
||
|
|
volatile int32 NumFailedDownloads;
|
||
|
|
|
||
|
|
class ILocalNotificationService* PlatformNotificationService;
|
||
|
|
|
||
|
|
//No default constructor
|
||
|
|
FBackgroundHttpNotificationObject() {}
|
||
|
|
};
|
||
|
|
|
||
|
|
typedef TSharedPtr<FBackgroundHttpNotificationObject, ESPMode::ThreadSafe> FBackgroundHttpNotificationObjectPtr;
|