1 package org.musicontroller;
2
3 import org.musicontroller.core.Song;
4
5 /**
6 * A SongChangeListener is interested in changes of Song objects. Implement this
7 * listener and register it at the DAO object in order to be informed about new
8 * songs, changed songs and deleted songs.
9 * @author Varienaja
10 */
11 public interface SongChangeListener {
12
13 /**
14 * Will be called when a new Song object was created.
15 * @param song The new Song.
16 */
17 public void onSongAdded(Song song);
18
19 /**
20 * Will be called when an existing Song was deleted.
21 * @param song The deleted Song.
22 */
23 public void onSongDeleted(Song song);
24
25 /**
26 * Will be called when an existing Song was changed (edited).
27 * @param song The changed Song.
28 */
29 public void onSongChanged(Song song);
30
31 }