public DidlLite Search(string aSearchCriteria, string aMediaServerId, string aId, uint aStartIndex, uint aCount, out uint aUpdateId) { if (aMediaServerId == string.Empty) { DidlLite result = new DidlLite(); iMutex.WaitOne(); // we need to search across all discovered media servers aUpdateId = iUpdateId; iMutex.ReleaseMutex(); return(result); } else { ModelMediaServer server = ModelMediaServer(aMediaServerId); if (server != null) { DidlLite result; uint numberReturned, totalMatches; server.Search(aSearchCriteria, aId, aStartIndex, aCount, out result, out numberReturned, out totalMatches, out aUpdateId); return(result); } } // we get here if the media server we are querying is not in our media server list throw new LibraryNotFoundException(aMediaServerId); }
private void UpdateComboBox(DidlLite aDidlLite) { if (comboBox1.InvokeRequired) { comboBox1.BeginInvoke(new UpdateComboBoxCallback(UpdateComboBox), new object[] { aDidlLite }); } else { string selection = string.Empty; if (comboBox1.SelectedIndex > -1) { selection = comboBox1.Items[comboBox1.SelectedIndex].ToString(); } comboBox1.BeginUpdate(); comboBox1.Items.Clear(); for (int i = 0; i < aDidlLite.Count; i++) { upnpObject o = aDidlLite[i]; comboBox1.Items.Add(new ComboItem(o)); if (o.Title == selection) { comboBox1.SelectedIndex = i; } } comboBox1.EndUpdate(); } }
public void Insert(string aAfterId, DidlLite aDidlLite) { throw new NotSupportedException(); /*foreach(playlistContainer c in aDidlLite) * { * iPlaylistManager.Insert(aAfterId, c.Title, c.Description, 0); * }*/ }
public bool HandleDelete(DidlLite aDidlLite) { foreach (upnpObject o in aDidlLite) { if (o.Id == iMetadata.Id) { return(false); } } return(true); }