From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Controller/IServerApplicationHost.cs | 100 ++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 MediaBrowser.Controller/IServerApplicationHost.cs (limited to 'MediaBrowser.Controller/IServerApplicationHost.cs') diff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.cs new file mode 100644 index 000000000..830c160e3 --- /dev/null +++ b/MediaBrowser.Controller/IServerApplicationHost.cs @@ -0,0 +1,100 @@ +using MediaBrowser.Common; +using MediaBrowser.Model.System; +using System; +using System.Collections.Generic; +using System.Net; +using System.Threading.Tasks; +using MediaBrowser.Model.Net; +using System.Threading; + +namespace MediaBrowser.Controller +{ + /// + /// Interface IServerApplicationHost + /// + public interface IServerApplicationHost : IApplicationHost + { + event EventHandler HasUpdateAvailableChanged; + + /// + /// Gets the system info. + /// + /// SystemInfo. + Task GetSystemInfo(CancellationToken cancellationToken); + + Task GetPublicSystemInfo(CancellationToken cancellationToken); + + /// + /// Gets a value indicating whether [supports automatic run at startup]. + /// + /// true if [supports automatic run at startup]; otherwise, false. + bool SupportsAutoRunAtStartup { get; } + + bool CanLaunchWebBrowser { get; } + + /// + /// Gets the HTTP server port. + /// + /// The HTTP server port. + int HttpPort { get; } + + /// + /// Gets the HTTPS port. + /// + /// The HTTPS port. + int HttpsPort { get; } + + /// + /// Gets a value indicating whether [supports HTTPS]. + /// + /// true if [supports HTTPS]; otherwise, false. + bool EnableHttps { get; } + + /// + /// Gets a value indicating whether this instance has update available. + /// + /// true if this instance has update available; otherwise, false. + bool HasUpdateAvailable { get; } + + /// + /// Gets the name of the friendly. + /// + /// The name of the friendly. + string FriendlyName { get; } + + /// + /// Gets the local ip address. + /// + /// The local ip address. + Task> GetLocalIpAddresses(CancellationToken cancellationToken); + + /// + /// Gets the local API URL. + /// + /// The local API URL. + Task GetLocalApiUrl(CancellationToken cancellationToken); + + /// + /// Gets the local API URL. + /// + /// The host. + /// System.String. + string GetLocalApiUrl(string host); + + /// + /// Gets the local API URL. + /// + string GetLocalApiUrl(IpAddressInfo address); + + void LaunchUrl(string url); + + void EnableLoopback(string appName); + + string PackageRuntime { get; } + + WakeOnLanInfo[] GetWakeOnLanInfo(); + + string ExpandVirtualPath(string path); + string ReverseVirtualPath(string path); + } +} -- cgit v1.2.3