2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2015-05-19 22:51:39 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
class FLocalizationServiceSettings
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FLocalizationServiceSettings()
|
|
|
|
|
: bUseGlobalSettings(false)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Get the provider we want to use */
|
|
|
|
|
const FString& GetProvider() const;
|
|
|
|
|
|
|
|
|
|
/** Set the provider we want to use */
|
|
|
|
|
void SetProvider(const FString& InString);
|
|
|
|
|
|
|
|
|
|
/** Get whether we should use global or per-project settings */
|
|
|
|
|
bool GetUseGlobalSettings() const;
|
|
|
|
|
|
|
|
|
|
/** Set whether we should use global or per-project settings */
|
|
|
|
|
void SetUseGlobalSettings(bool bInUseGlobalSettings);
|
|
|
|
|
|
|
|
|
|
/** Load settings from ini file */
|
|
|
|
|
void LoadSettings();
|
|
|
|
|
|
|
|
|
|
/** Save settings to ini file */
|
|
|
|
|
void SaveSettings() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/** The preferred Localization service provider */
|
|
|
|
|
FString Provider;
|
|
|
|
|
|
|
|
|
|
/** Whether we should use global or per-project settings */
|
|
|
|
|
bool bUseGlobalSettings;
|
|
|
|
|
};
|