Files
UnrealEngineUWP/Engine/Source/Runtime/Slate/Private/Framework/Notifications/SlateAsyncTaskNotificationImpl.h
Francis Hurteau 17be5494bd Modified AsyncTaskNotification to add a prompt state along with an hyperlink for slate based notification
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]
2020-01-17 14:05:31 -05:00

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;
};