2013-02-26 09:02:16 -07:00
|
|
|
|
using MediaBrowser.Model.Updates;
|
2013-02-20 18:33:05 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Configuration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Serves as a common base class for the Server and UI application Configurations
|
|
|
|
|
/// ProtoInclude tells Protobuf about subclasses,
|
|
|
|
|
/// The number 50 can be any number, so long as it doesn't clash with any of the ProtoMember numbers either here or in subclasses.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BaseApplicationConfiguration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether [enable debug level logging].
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if [enable debug level logging]; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool EnableDebugLevelLogging { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Enable automatically and silently updating of the application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool EnableAutoUpdate { get; set; }
|
|
|
|
|
|
2013-02-26 09:02:16 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets of sets a value indicating the level of system updates (Release, Beta, Dev)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public PackageVersionClass SystemUpdateLevel { get; set; }
|
|
|
|
|
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The number of days we should retain log files
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The log file retention days.</value>
|
|
|
|
|
public int LogFileRetentionDays { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether [run at startup].
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if [run at startup]; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool RunAtStartup { get; set; }
|
|
|
|
|
|
2013-03-04 09:56:29 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is first run.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsStartupWizardCompleted { get; set; }
|
2013-12-14 18:17:57 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the cache path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The cache path.</value>
|
|
|
|
|
public string CachePath { get; set; }
|
|
|
|
|
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="BaseApplicationConfiguration" /> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BaseApplicationConfiguration()
|
|
|
|
|
{
|
|
|
|
|
EnableAutoUpdate = true;
|
2013-06-04 09:48:23 -07:00
|
|
|
|
LogFileRetentionDays = 3;
|
2013-02-20 18:33:05 -07:00
|
|
|
|
|
|
|
|
|
#if (DEBUG)
|
|
|
|
|
EnableDebugLevelLogging = true;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|