net.sf.dc.processes.http
Class FreeDBAudioCDUpdate

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sf.dc.processes.http.InternetUpdateProcess
          extended bynet.sf.dc.processes.http.FreeDBAudioCDUpdate
All Implemented Interfaces:
java.lang.Runnable

public class FreeDBAudioCDUpdate
extends InternetUpdateProcess

Searches the FreeDB server by using keywords or the disc ID of an Audio CD

Author:
Robert Jan van der Waals

Field Summary
 
Fields inherited from class net.sf.dc.processes.http.InternetUpdateProcess
cancelled
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FreeDBAudioCDUpdate(ImportAudioCDDialog ui, DCModule module)
          Initializes this dialog
FreeDBAudioCDUpdate(ImportAudioCDDialog ui, DCModule module, java.lang.String keywords)
           
 
Method Summary
 java.lang.String[] getCategories()
          Returns all the categories as known by the FreeDB server
 Freedb getFreedbInstance()
          Returns an Freedb instance.
 void run()
          Starts the search thread.
 
Methods inherited from class net.sf.dc.processes.http.InternetUpdateProcess
stopSearch
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreeDBAudioCDUpdate

public FreeDBAudioCDUpdate(ImportAudioCDDialog ui,
                           DCModule module)
Initializes this dialog

Parameters:
ui - the ui to whoch messages will be send
module - the module from which this dialog is started

FreeDBAudioCDUpdate

public FreeDBAudioCDUpdate(ImportAudioCDDialog ui,
                           DCModule module,
                           java.lang.String keywords)
Method Detail

getFreedbInstance

public Freedb getFreedbInstance()
Returns an Freedb instance. Can be used to start operations not present in this class


getCategories

public java.lang.String[] getCategories()
Returns all the categories as known by the FreeDB server

Returns:
array of category names

run

public void run()
Starts the search thread. Either the keywords or the disc id is/are used