Interface LibraryBatchAction.EachSongProcessor
-
- Enclosing class:
- LibraryBatchAction
public static interface LibraryBatchAction.EachSongProcessor
Processor that is notified of start, each song and finish of the batch process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finishProcessing()
Called once all songs were processed.String
getProgressDialogMessage(AudioSong song)
Message to be shown in progress dialog.String
getProgressDialogTitle()
Title for progress dialog.void
process(AudioSong song, int index)
Called for each song.void
startProcessing(int count)
Called once before processing starts.
-
-
-
Method Detail
-
startProcessing
void startProcessing(int count)
Called once before processing starts.- Parameters:
count
- number of songs in the library
-
process
void process(AudioSong song, int index) throws Exception
Called for each song.- Parameters:
song
- songindex
- index- Throws:
Exception
- exception
-
finishProcessing
void finishProcessing() throws Exception
Called once all songs were processed.- Throws:
Exception
- exception
-
getProgressDialogMessage
String getProgressDialogMessage(AudioSong song)
Message to be shown in progress dialog.- Parameters:
song
- current song- Returns:
- message
-
getProgressDialogTitle
String getProgressDialogTitle()
Title for progress dialog.- Returns:
- title
-
-