Files
jellyfin-jellyfin-1/Emby.Server.Core/INativeApp.cs

79 lines
2.6 KiB
C#
Raw Normal View History

2014-11-23 18:10:41 -05:00
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Logging;
using System.Collections.Generic;
using System.Reflection;
2016-11-11 00:23:15 -05:00
using Emby.Server.Core;
2016-11-11 01:43:42 -05:00
using Emby.Server.Core.Data;
using Emby.Server.Core.FFMpeg;
2016-11-11 03:13:11 -05:00
namespace Emby.Server.Core
{
public interface INativeApp
{
/// <summary>
/// Gets the assemblies with parts.
/// </summary>
/// <returns>List&lt;Assembly&gt;.</returns>
List<Assembly> GetAssembliesWithParts();
/// <summary>
/// Authorizes the server.
/// </summary>
2016-03-26 13:51:27 -04:00
void AuthorizeServer(int udpPort, int httpServerPort, int httpsServerPort, string applicationPath, string tempDirectory);
/// <summary>
/// Gets a value indicating whether [supports running as service].
/// </summary>
/// <value><c>true</c> if [supports running as service]; otherwise, <c>false</c>.</value>
bool SupportsRunningAsService { get; }
/// <summary>
/// Gets a value indicating whether this instance is running as service.
/// </summary>
/// <value><c>true</c> if this instance is running as service; otherwise, <c>false</c>.</value>
bool IsRunningAsService { get; }
/// <summary>
/// Gets a value indicating whether this instance can self restart.
/// </summary>
/// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value>
bool CanSelfRestart { get; }
/// <summary>
/// Gets a value indicating whether [supports autorun at startup].
/// </summary>
/// <value><c>true</c> if [supports autorun at startup]; otherwise, <c>false</c>.</value>
bool SupportsAutoRunAtStartup { get; }
/// <summary>
/// Gets a value indicating whether this instance can self update.
/// </summary>
/// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value>
bool CanSelfUpdate { get; }
/// <summary>
/// Shutdowns this instance.
/// </summary>
void Shutdown();
/// <summary>
/// Restarts this instance.
/// </summary>
2015-06-05 10:27:01 -04:00
void Restart(StartupOptions startupOptions);
/// <summary>
/// Configures the automatic run.
/// </summary>
/// <param name="autorun">if set to <c>true</c> [autorun].</param>
void ConfigureAutoRun(bool autorun);
2016-04-02 00:29:48 -04:00
FFMpegInstallInfo GetFfmpegInstallInfo();
2016-04-23 23:03:49 -04:00
void LaunchUrl(string url);
2016-05-01 17:48:37 -04:00
IDbConnector GetDbConnector();
2016-09-03 13:16:36 -04:00
void EnableLoopback(string appName);
}
}