Interface LibraryBatchAction.EachSongProcessor
-
- Enclosing class:
- LibraryBatchAction
public static interface LibraryBatchAction.EachSongProcessorProcessor 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 voidfinishProcessing()Called once all songs were processed.StringgetProgressDialogMessage(AudioSong song)Message to be shown in progress dialog.StringgetProgressDialogTitle()Title for progress dialog.voidprocess(AudioSong song, int index)Called for each song.voidstartProcessing(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 ExceptionCalled 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
-
-