UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LiveLinkSourceFactory.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "CoreMinimal.h"
7#include "CoreTypes.h"
12#include "UObject/Object.h"
15
16#include "LiveLinkSourceFactory.generated.h"
17
18class ILiveLinkClient;
19class ILiveLinkSource;
20class SWidget;
21
25UCLASS(Abstract, MinimalAPI)
27{
29
30public:
32 virtual FText GetSourceDisplayName() const PURE_VIRTUAL( ULiveLinkSourceFactory::GetSourceDisplayName, return FText(); );
33
35 virtual FText GetSourceTooltip() const PURE_VIRTUAL(ULiveLinkSourceFactory::GetSourceTooltip, return FText(); );
36
37 UE_DEPRECATED(4.23, "CreateSourceCreationPanel is deprecated. LiveLinkSourceFactory can now be used at runtime. This factory won't work until it's been updated.")
38 LIVELINKINTERFACE_API virtual TSharedPtr<SWidget> CreateSourceCreationPanel();
39
40 UE_DEPRECATED(4.23, "OnSourceCreationPanelClosed is deprecated. LiveLinkSourceFactory can now be used at runtime. The factory won't work until it's been updated.")
41 LIVELINKINTERFACE_API virtual TSharedPtr<ILiveLinkSource> OnSourceCreationPanelClosed(bool bMakeSource);
42
44 {
45 SubPanel, // In the UI, a sub menu will used
46 MenuEntry, // In the UI, a button will be used
47 Disabled, // In the UI, the button will be used but it will be disabled
48 };
49
54 virtual EMenuType GetMenuType() const { return EMenuType::Disabled; }
55
56 DECLARE_DELEGATE_TwoParams(FOnLiveLinkSourceCreated, TSharedPtr<ILiveLinkSource> /*Created source*/, FString /*ConnectionString*/);
57
64
67
69 virtual bool IsEnabled() const { return true; }
70};
#define PURE_VIRTUAL(func,...)
Definition CoreMiscDefines.h:103
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Text.h:385
Definition ILiveLinkClient.h:61
Definition ILiveLinkSource.h:16
Definition SWidget.h:165
Definition SharedPointer.h:692
Definition LiveLinkSourceFactory.h:27
EMenuType
Definition LiveLinkSourceFactory.h:44
virtual bool IsEnabled() const
Definition LiveLinkSourceFactory.h:69
virtual EMenuType GetMenuType() const
Definition LiveLinkSourceFactory.h:54
DECLARE_DELEGATE_TwoParams(FOnLiveLinkSourceCreated, TSharedPtr< ILiveLinkSource >, FString)
virtual TSharedPtr< ILiveLinkSource > CreateSource(const FString &ConnectionString) const PURE_VIRTUAL(ULiveLinkSourceFactory
Definition LiveLinkSourceFactory.h:66
virtual FText GetSourceDisplayName() const PURE_VIRTUAL(ULiveLinkSourceFactory
Definition LiveLinkSourceFactory.h:32
Definition Object.h:95