2020-03-15 16:42:57 +00:00
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
namespace MediaBrowser.Common.Configuration
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Interface IApplicationPaths.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
public interface IApplicationPaths
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the path to the program data folder.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The program data path.</value>
|
|
|
|
string ProgramDataPath { get; }
|
|
|
|
|
2019-03-10 21:04:18 +00:00
|
|
|
/// <summary>
|
2020-03-15 16:42:57 +00:00
|
|
|
/// Gets the path to the web UI resources folder.
|
2019-03-10 21:04:18 +00:00
|
|
|
/// </summary>
|
2020-03-15 16:42:57 +00:00
|
|
|
/// <remarks>
|
|
|
|
/// This value is not relevant if the server is configured to not host any static web content. Additionally,
|
|
|
|
/// the value for <see cref="ServerConfiguration.DashboardSourcePath"/> takes precedence over this one.
|
|
|
|
/// </remarks>
|
2019-03-10 21:04:18 +00:00
|
|
|
string WebPath { get; }
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the path to the program system folder.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The program data path.</value>
|
|
|
|
string ProgramSystemPath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the folder path to the data directory.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The data directory.</value>
|
|
|
|
string DataPath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the image cache path.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The image cache path.</value>
|
|
|
|
string ImageCachePath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the path to the plugin directory.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The plugins path.</value>
|
|
|
|
string PluginsPath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the path to the plugin configurations directory.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The plugin configurations path.</value>
|
|
|
|
string PluginConfigurationsPath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the path to the log directory.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The log directory path.</value>
|
|
|
|
string LogDirectoryPath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the path to the application configuration root directory.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The configuration directory path.</value>
|
|
|
|
string ConfigurationDirectoryPath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the path to the system configuration file.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The system configuration file path.</value>
|
|
|
|
string SystemConfigurationFilePath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the folder path to the cache directory.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The cache directory.</value>
|
|
|
|
string CachePath { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-06-03 11:04:45 +00:00
|
|
|
/// Gets the folder path to the temp directory within the cache folder.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The temp directory.</value>
|
|
|
|
string TempDirectory { get; }
|
|
|
|
|
2019-10-09 15:10:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the magic string used for virtual path manipulation.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The magic string used for virtual path manipulation.</value>
|
2018-12-27 23:27:57 +00:00
|
|
|
string VirtualDataPath { get; }
|
|
|
|
}
|
|
|
|
}
|