2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-11-07 09:55:57 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
class IContentSource;
|
|
|
|
|
|
|
|
|
|
/** Defines methods for an object which provides IContentSource objects for use with the SAddContentDialog. */
|
|
|
|
|
class IContentSourceProvider
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
DECLARE_DELEGATE(FOnContentSourcesChanged);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
/** Gets the available content sources. */
|
|
|
|
|
virtual const TArray<TSharedRef<IContentSource>> GetContentSources() = 0;
|
|
|
|
|
|
2014-11-07 13:16:53 -05:00
|
|
|
/** Sets the delegate which will be executed when the avaialble content sources change */
|
2014-11-07 09:55:57 -05:00
|
|
|
virtual void SetContentSourcesChanged(FOnContentSourcesChanged OnContentSourcesChangedIn) = 0;
|
2014-11-07 13:16:53 -05:00
|
|
|
|
|
|
|
|
virtual ~IContentSourceProvider() { }
|
2014-11-07 09:55:57 -05:00
|
|
|
};
|