com.virtuosotechnologies.asaph.maingui
Interface ListUpdateManager


public interface ListUpdateManager

The list update manager API exported by the maingui plugin.

This API is not thread-safe, and should only be called from the AWT/Swing thread.


Method Summary
 void reportSongAdded(SongID songID)
          Notify the main gui that a song has been added by this plugin.
 void reportSongChanged(SongID songID)
          Notify the main gui that a song has been changed by this plugin.
 void reportSongRemoved(SongID songID)
          Notify the main gui that a song has been removed by this plugin.
 

Method Detail

reportSongAdded

public void reportSongAdded(SongID songID)
Notify the main gui that a song has been added by this plugin. This causes the main gui to update its song list appropriately. It isn't strictly necessary to use this callback, but failure to do so may cause the main gui to get out of sync with the database contents until the user explicitly refreshes the index.

Parameters:
songID - SongID of the added song.

reportSongRemoved

public void reportSongRemoved(SongID songID)
Notify the main gui that a song has been removed by this plugin. This causes the main gui to update its song list appropriately. It isn't strictly necessary to use this callback, but failure to do so may cause the main gui to get out of sync with the database contents until the user explicitly refreshes the index.

Parameters:
songID - SongID of the removed song.

reportSongChanged

public void reportSongChanged(SongID songID)
Notify the main gui that a song has been changed by this plugin. This causes the main gui to update its song list appropriately. It isn't strictly necessary to use this callback, but failure to do so may cause the main gui to get out of sync with the database contents until the user explicitly refreshes the index.

Parameters:
songID - SongID of the changed song.