Files
UnrealEngineUWP/Engine/Source/Developer/SettingsEditor/Public/ISettingsEditorModule.h
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

55 lines
1.4 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/SWidget.h"
#include "Modules/ModuleInterface.h"
class ISettingsContainer;
class ISettingsEditorModel;
/**
* Interface for settings editor modules.
*/
class ISettingsEditorModule
: public IModuleInterface
{
public:
/**
* Creates a settings editor widget.
*
* @param Model The view model.
* @return The new widget.
* @see CreateModel
*/
virtual TSharedRef<SWidget> CreateEditor( const TSharedRef<ISettingsEditorModel>& Model ) = 0;
/**
* Creates a view model for the settings editor widget.
*
* @param SettingsContainer The settings container.
* @return The controller.
* @see CreateEditor
*/
virtual TSharedRef<ISettingsEditorModel> CreateModel( const TSharedRef<ISettingsContainer>& SettingsContainer ) = 0;
/**
* Called when the settings have been changed such that an application restart is required for them to be fully applied
*/
virtual void OnApplicationRestartRequired() = 0;
/**
* Set the delegate that should be called when a setting editor needs to restart the application
*
* @param InRestartApplicationDelegate The new delegate to call
*/
virtual void SetRestartApplicationCallback( FSimpleDelegate InRestartApplicationDelegate ) = 0;
public:
/** Virtual destructor. */
virtual ~ISettingsEditorModule() { }
};