|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcore.ItunesMediator
public class ItunesMediator
Handles sending completed downloads into iTunes. The code has been slightly modified from the Limewire Project, but the majority of it is Limewire open source code.
| Field Summary | |
|---|---|
static java.lang.String |
ITUNES_ACTIVEX_NAME
The name of the iTunes application used for Jacob. |
| Constructor Summary | |
|---|---|
ItunesMediator()
Provides methods for interacting with iTunes. |
|
| Method Summary | |
|---|---|
void |
addToWindowsITunes(java.io.File fileToAdd)
Creates a new thread and submits it to an executor that will add the given file to iTunes. |
void |
forceWriteITunesXMLFile()
Deletes the iTunes XML File and forces iTunes to create a new one. |
java.util.concurrent.ExecutorService |
getExecutor()
Returns the executor responsible for executing all the add new track threads. |
static void |
main(java.lang.String[] args)
|
static void |
removeOrphanedFiles(java.awt.Component c)
Creates a new Swing Worker task that identifies and removes orphaned tracks from iTunes automatically. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ITUNES_ACTIVEX_NAME
| Constructor Detail |
|---|
public ItunesMediator()
| Method Detail |
|---|
public static void removeOrphanedFiles(java.awt.Component c)
c - The parent component to display the ProgressMonitor object to.public void addToWindowsITunes(java.io.File fileToAdd)
fileToAdd - The file to add to iTunes.public void forceWriteITunesXMLFile()
public java.util.concurrent.ExecutorService getExecutor()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||