public virtual void DescriptionChanged(Playlist pl, string @desc, object userdata) { }
public virtual void ImageChanged(Playlist pl, ImageId @image, object userdata) { }
public virtual void TracksMoved(Playlist pl, int[] @tracks, int @new_position, object userdata) { }
public virtual void TracksRemoved(Playlist pl, int[] @tracks, object userdata) { }
public virtual void SubscribersChanged(Playlist pl, object userdata) { }
void PlaylistBrowseTry() { StartingListeningForPlaylistChanges(); if (!iPlaylistBrowse.IsLoaded()) { Console.WriteLine("\tPlaylist not loaded"); return; } int tracks = iPlaylistBrowse.NumTracks(); for (int i = 0; i != tracks; ++i) { Track t = iPlaylistBrowse.Track(i); if (!t.IsLoaded()) { return; } } Console.WriteLine("\tPlaylist and metadata loaded"); for (int i = 0; i != tracks; ++i) { Track t = iPlaylistBrowse.Track(i); Console.Write(" {0,5}: ", i + 1); PrintTrack(t); } iPlaylistBrowse.RemoveCallbacks(iPlaylistListener, null); StopListeningForPlaylistChanges(); iPlaylistBrowse.Release(); iPlaylistBrowse = null; iConsoleReader.RequestInput("> "); }
public void BrowsePlaylist(Playlist aPlaylist) { iPlaylistBrowse = aPlaylist; aPlaylist.AddCallbacks(iPlaylistListener, null); PlaylistBrowseTry(); }
public virtual void PlaylistStateChanged(Playlist pl, object userdata) { }
public override void TracksMoved(Playlist pl, int[] tracks, int new_position, object userdata) { Console.WriteLine("\t{0} tracks moved", tracks.Length); }
public override void TracksRemoved(Playlist pl, int[] tracks, object userdata) { Console.WriteLine("\t{0} tracks removed", tracks.Length); }
public override void TracksAdded(Playlist pl, Track[] tracks, int position, object userdata) { Console.WriteLine("\t{0} tracks added", tracks.Length); }
public override void PlaylistStateChanged(Playlist pl, object userdata) { iBrowser.PlaylistBrowseTry(); }
public override void PlaylistRenamed(Playlist pl, object userdata) { Console.WriteLine("List name: {0}", pl.Name()); }
public virtual void PlaylistMetadataUpdated(Playlist pl, object userdata) { }
public virtual void TrackMessageChanged(Playlist pl, int @position, string @message, object userdata) { }
public virtual void PlaylistRenamed(Playlist pl, object userdata) { }
public virtual void TracksAdded(Playlist pl, Track[] @tracks, int @position, object userdata) { }
public virtual void PlaylistUpdateInProgress(Playlist pl, bool @done, object userdata) { }
public virtual void TrackSeenChanged(Playlist pl, int @position, bool @seen, object userdata) { }
public virtual void TrackCreatedChanged(Playlist pl, int @position, User @user, int @when, object userdata) { }
public virtual void PlaylistRemoved(PlaylistContainer pc, Playlist playlist, int @position, object userdata) { }