You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Added a function to pulse basic notification with a specified glow color while they are pending #rb Jamie.Dale, Patrick.Laflamme [CL 11052904 by Francis Hurteau in Dev-VirtualProduction branch]
29 lines
1000 B
C++
29 lines
1000 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Misc/CoreAsyncTaskNotificationImpl.h"
|
|
|
|
class SNotificationItem;
|
|
class SSlateAsyncTaskNotificationWidget;
|
|
|
|
/**
|
|
* Slate asynchronous task notification that uses a notification item.
|
|
*/
|
|
class FSlateAsyncTaskNotificationImpl : public FCoreAsyncTaskNotificationImpl
|
|
{
|
|
public:
|
|
//~ IAsyncTaskNotificationImpl
|
|
virtual void Initialize(const FAsyncTaskNotificationConfig& InConfig) override;
|
|
virtual void SetCanCancel(const TAttribute<bool>& InCanCancel) override;
|
|
virtual void SetKeepOpenOnSuccess(const TAttribute<bool>& InKeepOpenOnSuccess) override;
|
|
virtual void SetKeepOpenOnFailure(const TAttribute<bool>& InKeepOpenOnFailure) override;
|
|
virtual EAsyncTaskNotificationPromptAction GetPromptAction() const override;
|
|
private:
|
|
//~ FCoreAsyncTaskNotificationImpl
|
|
virtual void UpdateNotification() override;
|
|
|
|
/** Active Slate notification widget */
|
|
TSharedPtr<SSlateAsyncTaskNotificationWidget> NotificationItemWidget;
|
|
};
|