sk.baka.ambient.library
Class MagnatuneScanner

java.lang.Object
  extended by sk.baka.ambient.library.MagnatuneScanner
All Implemented Interfaces:
Runnable, IFileScanner

public class MagnatuneScanner
extends Object
implements IFileScanner

Scans the Magnatune store.

Author:
Martin Vysny

Constructor Summary
MagnatuneScanner()
           
 
Method Summary
 TrackOriginEnum getOrigin()
          Returns the storage type.
 void init(Library library, GenreCache genreCache)
          Initializes the scanner.
 boolean isUserNotified()
          Invoked when the scan finishes.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagnatuneScanner

public MagnatuneScanner()
Method Detail

init

public void init(Library library,
                 GenreCache genreCache)
Description copied from interface: IFileScanner
Initializes the scanner.

Specified by:
init in interface IFileScanner
Parameters:
library - the library instance.
genreCache - the genre cache.

run

public void run()
Specified by:
run in interface Runnable

getOrigin

public TrackOriginEnum getOrigin()
Description copied from interface: IFileScanner
Returns the storage type.

Specified by:
getOrigin in interface IFileScanner
Returns:
storage type, must not be null.

isUserNotified

public boolean isUserNotified()
Description copied from interface: IFileScanner
Invoked when the scan finishes. Checks if the scanner already provided the user with some kind of notification.

Specified by:
isUserNotified in interface IFileScanner
Returns:
true if user was notified about the scan being finished, false otherwise.


Copyright © 2007-2008. All Rights Reserved.