sk.baka.ambient.library
Interface IFileScanner

All Superinterfaces:
Runnable
All Known Implementing Classes:
MagnatuneScanner

public interface IFileScanner
extends Runnable

Scans for files in a background thread. When interrupted, it should end ASAP. The Runnable.run() may throw RuntimeException.

Author:
Martin Vysny

Method Summary
 TrackOriginEnum getOrigin()
          Returns the storage type.
 void init(Library library, GenreCache genreCache)
          Initializes the scanner.
 boolean isUserNotified()
          Invoked when the scan finishes.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

init

void init(Library library,
          GenreCache genreCache)
Initializes the scanner.

Parameters:
library - the library instance.
genreCache - the genre cache.

getOrigin

TrackOriginEnum getOrigin()
Returns the storage type.

Returns:
storage type, must not be null.

isUserNotified

boolean isUserNotified()
Invoked when the scan finishes. Checks if the scanner already provided the user with some kind of notification.

Returns:
true if user was notified about the scan being finished, false otherwise.


Copyright © 2007-2008. All Rights Reserved.