2014-11-30 12:01:33 -07:00
|
|
|
|
using MediaBrowser.Controller.Drawing;
|
|
|
|
|
using MediaBrowser.Model.Dlna;
|
2014-03-26 08:06:48 -07:00
|
|
|
|
using System.Collections.Generic;
|
2014-03-13 12:08:02 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Dlna
|
|
|
|
|
{
|
|
|
|
|
public interface IDlnaManager
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2014-03-26 08:06:48 -07:00
|
|
|
|
/// Gets the profile infos.
|
2014-03-13 12:08:02 -07:00
|
|
|
|
/// </summary>
|
2014-03-26 08:06:48 -07:00
|
|
|
|
/// <returns>IEnumerable{DeviceProfileInfo}.</returns>
|
|
|
|
|
IEnumerable<DeviceProfileInfo> GetProfileInfos();
|
2014-03-13 12:08:02 -07:00
|
|
|
|
|
2014-03-24 22:25:03 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the profile.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="headers">The headers.</param>
|
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
|
|
|
|
DeviceProfile GetProfile(IDictionary<string,string> headers);
|
|
|
|
|
|
2014-03-26 08:17:36 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the default profile.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
|
|
|
|
DeviceProfile GetDefaultProfile();
|
2014-03-26 12:21:29 -07:00
|
|
|
|
|
2014-03-26 13:14:47 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates the profile.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="profile">The profile.</param>
|
|
|
|
|
void CreateProfile(DeviceProfile profile);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Updates the profile.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="profile">The profile.</param>
|
|
|
|
|
void UpdateProfile(DeviceProfile profile);
|
|
|
|
|
|
2014-03-26 12:21:29 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Deletes the profile.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
void DeleteProfile(string id);
|
2014-03-26 08:17:36 -07:00
|
|
|
|
|
2014-03-26 08:06:48 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the profile.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
|
|
|
|
DeviceProfile GetProfile(string id);
|
|
|
|
|
|
2014-03-13 12:08:02 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the profile.
|
|
|
|
|
/// </summary>
|
2014-03-17 07:48:16 -07:00
|
|
|
|
/// <param name="deviceInfo">The device information.</param>
|
|
|
|
|
/// <returns>DeviceProfile.</returns>
|
|
|
|
|
DeviceProfile GetProfile(DeviceIdentification deviceInfo);
|
2014-04-10 08:06:54 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the server description XML.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="headers">The headers.</param>
|
|
|
|
|
/// <param name="serverUuId">The server uu identifier.</param>
|
2015-01-30 14:14:08 -07:00
|
|
|
|
/// <param name="serverAddress">The server address.</param>
|
2014-04-10 08:06:54 -07:00
|
|
|
|
/// <returns>System.String.</returns>
|
2015-01-30 14:14:08 -07:00
|
|
|
|
string GetServerDescriptionXml(IDictionary<string, string> headers, string serverUuId, string serverAddress);
|
2014-04-10 08:06:54 -07:00
|
|
|
|
|
2014-04-15 22:08:12 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the icon.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="filename">The filename.</param>
|
|
|
|
|
/// <returns>DlnaIconResponse.</returns>
|
2014-11-30 12:01:33 -07:00
|
|
|
|
ImageStream GetIcon(string filename);
|
2014-03-13 12:08:02 -07:00
|
|
|
|
}
|
|
|
|
|
}
|