Files
UnrealEngine/Engine/Source/Editor/DerivedDataWidgets/Public/DerivedDataCacheNotifications.h
2025-05-18 13:04:45 +08:00

32 lines
806 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "DerivedDataCacheInterface.h"
#include "IDerivedDataCacheNotifications.h"
#include "Templates/SharedPointer.h"
class SNotificationItem;
class DERIVEDDATAWIDGETS_API FDerivedDataCacheNotifications : public IDerivedDataCacheNotifications
{
public:
FDerivedDataCacheNotifications();
virtual ~FDerivedDataCacheNotifications();
private:
/** DDC data put notification handler */
void OnDDCNotificationEvent(FDerivedDataCacheInterface::EDDCNotification DDCNotification);
/** Subscribe to the notifications */
void Subscribe(bool bSubscribe);
/** Whether we are subscribed or not **/
bool bSubscribed;
/** Valid when a DDC notification item is being presented */
TSharedPtr<SNotificationItem> SharedDDCNotification;
};