aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.UI/Configuration
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-23 10:58:08 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-23 10:58:08 -0500
commit17c1fd576057bdd2d6aea517d733fe8af6e6b2ba (patch)
tree660f47e816a8599aabdb7ee47f3cde64c72c3f4d /MediaBrowser.UI/Configuration
parent33ed929b526acbda696f00f5966917ebd6a9ded2 (diff)
moved ui to it's own repo
Diffstat (limited to 'MediaBrowser.UI/Configuration')
-rw-r--r--MediaBrowser.UI/Configuration/PlayerConfiguration.cs52
-rw-r--r--MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs72
-rw-r--r--MediaBrowser.UI/Configuration/UIApplicationPaths.cs37
3 files changed, 0 insertions, 161 deletions
diff --git a/MediaBrowser.UI/Configuration/PlayerConfiguration.cs b/MediaBrowser.UI/Configuration/PlayerConfiguration.cs
deleted file mode 100644
index c00f49b5e..000000000
--- a/MediaBrowser.UI/Configuration/PlayerConfiguration.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using MediaBrowser.Model.Entities;
-
-namespace MediaBrowser.UI.Configuration
-{
- /// <summary>
- /// Class PlayerConfiguration
- /// </summary>
- public class PlayerConfiguration
- {
- /// <summary>
- /// Gets or sets the name of the player.
- /// </summary>
- /// <value>The name of the player.</value>
- public string PlayerName { get; set; }
-
- /// <summary>
- /// Gets or sets the item types.
- /// </summary>
- /// <value>The item types.</value>
- public string[] ItemTypes { get; set; }
-
- /// <summary>
- /// Gets or sets the file extensions.
- /// </summary>
- /// <value>The file extensions.</value>
- public string[] FileExtensions { get; set; }
-
- /// <summary>
- /// Gets or sets the video types.
- /// </summary>
- /// <value>The video types.</value>
- public VideoType[] VideoTypes { get; set; }
-
- /// <summary>
- /// Gets or sets the video formats.
- /// </summary>
- /// <value>The video formats.</value>
- public VideoFormat[] VideoFormats { get; set; }
-
- /// <summary>
- /// Gets or sets the command.
- /// </summary>
- /// <value>The command.</value>
- public string Command { get; set; }
-
- /// <summary>
- /// Gets or sets the args.
- /// </summary>
- /// <value>The args.</value>
- public string Args { get; set; }
- }
-}
diff --git a/MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs b/MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs
deleted file mode 100644
index 703833924..000000000
--- a/MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using MediaBrowser.Model.Configuration;
-using System.Windows;
-
-namespace MediaBrowser.UI.Configuration
-{
- /// <summary>
- /// This is the UI's device configuration that applies regardless of which user is logged in.
- /// </summary>
- public class UIApplicationConfiguration : BaseApplicationConfiguration
- {
- /// <summary>
- /// Gets or sets the server host name (myserver or 192.168.x.x)
- /// </summary>
- /// <value>The name of the server host.</value>
- public string ServerHostName { get; set; }
-
- /// <summary>
- /// Gets or sets the port number used by the API
- /// </summary>
- /// <value>The server API port.</value>
- public int ServerApiPort { get; set; }
-
- /// <summary>
- /// Gets or sets the player configurations.
- /// </summary>
- /// <value>The player configurations.</value>
- public PlayerConfiguration[] MediaPlayers { get; set; }
-
- /// <summary>
- /// Gets or sets the state of the window.
- /// </summary>
- /// <value>The state of the window.</value>
- public WindowState? WindowState { get; set; }
-
- /// <summary>
- /// Gets or sets the window top.
- /// </summary>
- /// <value>The window top.</value>
- public double? WindowTop { get; set; }
-
- /// <summary>
- /// Gets or sets the window left.
- /// </summary>
- /// <value>The window left.</value>
- public double? WindowLeft { get; set; }
-
- /// <summary>
- /// Gets or sets the width of the window.
- /// </summary>
- /// <value>The width of the window.</value>
- public double? WindowWidth { get; set; }
-
- /// <summary>
- /// Gets or sets the height of the window.
- /// </summary>
- /// <value>The height of the window.</value>
- public double? WindowHeight { get; set; }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="UIApplicationConfiguration" /> class.
- /// </summary>
- public UIApplicationConfiguration()
- : base()
- {
- ServerHostName = "localhost";
- ServerApiPort = 8096;
-
- // Need a different default than the server
- LegacyWebSocketPortNumber = 8946;
- }
- }
-}
diff --git a/MediaBrowser.UI/Configuration/UIApplicationPaths.cs b/MediaBrowser.UI/Configuration/UIApplicationPaths.cs
deleted file mode 100644
index 313c310d3..000000000
--- a/MediaBrowser.UI/Configuration/UIApplicationPaths.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using MediaBrowser.Common.Kernel;
-using System.IO;
-
-namespace MediaBrowser.UI.Configuration
-{
- /// <summary>
- /// Class UIApplicationPaths
- /// </summary>
- public class UIApplicationPaths : BaseApplicationPaths
- {
- /// <summary>
- /// The _remote image cache path
- /// </summary>
- private string _remoteImageCachePath;
- /// <summary>
- /// Gets the remote image cache path.
- /// </summary>
- /// <value>The remote image cache path.</value>
- public string RemoteImageCachePath
- {
- get
- {
- if (_remoteImageCachePath == null)
- {
- _remoteImageCachePath = Path.Combine(CachePath, "remote-images");
-
- if (!Directory.Exists(_remoteImageCachePath))
- {
- Directory.CreateDirectory(_remoteImageCachePath);
- }
- }
-
- return _remoteImageCachePath;
- }
- }
- }
-}