/// <summary> /// Constructor -- sets configuration entries /// </summary> public MagnatunePlugin() : base() { use_proxy = UseProxyEntry.Get().Equals("True") ? true : false; if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds)) { http_timeout_seconds = 20; } proxy_url = ProxyUrlEntry.Get(); SetWebIcon("http://my.magnatune.com/favicon.ico"); }
/// <summary> /// Constructor -- sets configuration entries /// </summary> public RealRadiosPlugin() : base() { use_proxy = UseProxyEntry.Get().Equals("True") ? true : false; if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds)) { http_timeout_seconds = 20; } proxy_url = ProxyUrlEntry.Get(); SetWebIcon(base_url + "sites/default/files/favicon_0.ico"); }
/// <summary> /// Constructor -- sets configuration entries /// </summary> public XiphOrgPlugin() : base() { use_proxy = UseProxyEntry.Get().Equals("True") ? true : false; if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds)) { http_timeout_seconds = 20; } proxy_url = ProxyUrlEntry.Get(); SetWebIcon("http://www.xiph.org/favicon.ico"); }
/// <summary> /// Constructor -- sets configuration entries /// </summary> public ShoutCastPlugin() : base() { use_proxy = UseProxyEntry.Get().Equals("True") ? true : false; if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds)) { http_timeout_seconds = 20; } proxy_url = ProxyUrlEntry.Get(); SetWebIcon("http://o.aolcdn.com/shoutcast/images/sc_favicon.ico"); }
/// <summary> /// Saves the configuration for this plugin /// </summary> public override void SaveConfiguration() { if (configuration_widget == null) { return; } http_timeout_seconds = configuration_widget.HttpTimeout; proxy_url = configuration_widget.ProxyUrl; use_proxy = configuration_widget.UseProxy; HttpTimeoutEntry.Set(http_timeout_seconds.ToString()); ProxyUrlEntry.Set(proxy_url); UseProxyEntry.Set(use_proxy.ToString()); }
/// <summary> /// Constructor -- invokes the base constructor with has_login=true for handling user credentials. /// Sets configured Properties /// </summary> public Live365Plugin() : base(true) { use_proxy = UseProxyEntry.Get().Equals("True") ? true : false; use_credentials = UseCredentialsEntry.Get().Equals("True") ? true : false; if (!Int32.TryParse(HttpTimeoutEntry.Get(), out http_timeout_seconds)) { http_timeout_seconds = 20; } credentials_username = HttpUsernameEntry.Get(); credentials_password = HttpPasswordEntry.Get(); proxy_url = ProxyUrlEntry.Get(); SetWebIcon("http://www.live365.com/favicon.ico"); }
/// <summary> /// Saves the configuration for this plugin /// </summary> public override void SaveConfiguration() { if (configuration_widget == null) { return; } http_timeout_seconds = configuration_widget.HttpTimeout; credentials_password = configuration_widget.HttpPassword; credentials_username = configuration_widget.HttpUsername; proxy_url = configuration_widget.ProxyUrl; use_credentials = configuration_widget.UseCredentials; use_proxy = configuration_widget.UseProxy; HttpTimeoutEntry.Set(http_timeout_seconds.ToString()); HttpPasswordEntry.Set(credentials_password); HttpUsernameEntry.Set(credentials_username); ProxyUrlEntry.Set(proxy_url); UseCredentialsEntry.Set(use_credentials.ToString()); UseProxyEntry.Set(use_proxy.ToString()); }