UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IAuthorizeMessageRecipients.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
7#include "UObject/Class.h"
8
9class FName;
12
13struct FMessageAddress;
14
15
20{
21public:
22
30 UE_DEPRECATED(5.1, "Types names are now represented by path names. Please use a version of this function that takes an FTopLevelAssetPath as MessageType.")
32 {
33 return AuthorizeInterceptor(Interceptor, UClass::TryConvertShortTypeNameToPathName<UStruct>(MessageType.ToString()));
34 }
35
44
53
61 UE_DEPRECATED(5.1, "Types names are now represented by path names. Please use a version of this function that takes an FTopLevelAssetPath as TopicPattern.")
63 {
64 return AuthorizeSubscription(Subscriber, UClass::TryConvertShortTypeNameToPathName<UStruct>(TopicPattern.ToString()));
65 }
66
75
82 virtual bool AuthorizeUnregistration(const FMessageAddress& Address) = 0;
83
91 UE_DEPRECATED(5.1, "Types names are now represented by path names. Please use a version of this function that takes an FTopLevelAssetPath as TopicPattern.")
93 {
94 return AuthorizeUnsubscription(Subscriber, UClass::TryConvertShortTypeNameToPathName<UStruct>(TopicPattern.ToString()));
95 }
96
105
106public:
107
110};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ESPMode
Definition SharedPointerFwd.h:12
Definition NameTypes.h:617
Definition IAuthorizeMessageRecipients.h:20
virtual bool AuthorizeSubscription(const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > &Subscriber, const FTopLevelAssetPath &TopicPattern)=0
virtual bool AuthorizeRegistration(const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > &Recipient, const FMessageAddress &Address)=0
virtual bool AuthorizeUnregistration(const FMessageAddress &Address)=0
virtual bool AuthorizeInterceptor(const TSharedRef< IMessageInterceptor, ESPMode::ThreadSafe > &Interceptor, const FName &MessageType)
Definition IAuthorizeMessageRecipients.h:31
virtual bool AuthorizeUnsubscription(const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > &Subscriber, const FName &TopicPattern)
Definition IAuthorizeMessageRecipients.h:92
virtual bool AuthorizeInterceptor(const TSharedRef< IMessageInterceptor, ESPMode::ThreadSafe > &Interceptor, const FTopLevelAssetPath &MessageType)=0
virtual bool AuthorizeSubscription(const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > &Subscriber, const FName &TopicPattern)
Definition IAuthorizeMessageRecipients.h:62
virtual ~IAuthorizeMessageRecipients()
Definition IAuthorizeMessageRecipients.h:109
virtual bool AuthorizeUnsubscription(const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > &Subscriber, const FTopLevelAssetPath &TopicPattern)=0
Definition IMessageInterceptor.h:16
Definition IMessageReceiver.h:26
Definition SharedPointer.h:153
Definition IMessageContext.h:26
Definition TopLevelAssetPath.h:38