net.sourceforge.atunes.kernel.executors.processes
Class ExportFilesProcess

java.lang.Object
  extended by net.sourceforge.atunes.kernel.executors.processes.ExportFilesProcess
All Implemented Interfaces:
java.lang.Runnable

public class ExportFilesProcess
extends java.lang.Object
implements java.lang.Runnable

Exports (song) files to a partition/device and checks if filename is valid.


Field Summary
static int ALL_EXPORT
          The Constant ALL_EXPORT.
static int ARTIST_STRUCTURE
          The Constant ARTIST_STRUCTURE.
static int FAVORITES_EXPORT
          The Constant FAVORITES_EXPORT.
static int FLAT_STRUCTURE
          The Constant FLAT_STRUCTURE.
static int FULL_STRUCTURE
          The Constant FULL_STRUCTURE.
static int SELECTION_EXPORT
          The Constant SELECTION_EXPORT.
 
Constructor Summary
ExportFilesProcess(java.util.List<AudioFile> songs, int structure, java.lang.String filePattern, java.lang.String path, boolean isMp3Device)
          Exports songs from the repository to an external path, call via BackgroundExecutor.java .
 
Method Summary
 void addFinishListener(DeviceCopyFinishListener listener)
          Adds the finish listener.
 void notifyCancel()
          Notify cancel.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_EXPORT

public static final int ALL_EXPORT
The Constant ALL_EXPORT.

See Also:
Constant Field Values

SELECTION_EXPORT

public static final int SELECTION_EXPORT
The Constant SELECTION_EXPORT.

See Also:
Constant Field Values

FAVORITES_EXPORT

public static final int FAVORITES_EXPORT
The Constant FAVORITES_EXPORT.

See Also:
Constant Field Values

FLAT_STRUCTURE

public static final int FLAT_STRUCTURE
The Constant FLAT_STRUCTURE.

See Also:
Constant Field Values

ARTIST_STRUCTURE

public static final int ARTIST_STRUCTURE
The Constant ARTIST_STRUCTURE.

See Also:
Constant Field Values

FULL_STRUCTURE

public static final int FULL_STRUCTURE
The Constant FULL_STRUCTURE.

See Also:
Constant Field Values
Constructor Detail

ExportFilesProcess

public ExportFilesProcess(java.util.List<AudioFile> songs,
                          int structure,
                          java.lang.String filePattern,
                          java.lang.String path,
                          boolean isMp3Device)
Exports songs from the repository to an external path, call via BackgroundExecutor.java . Sets the values

Parameters:
songs - List with songs to export
structure - Folder structure, either 1, 2 or 3
filePattern - Filename pattern
path - Path to where the files should be exported
isMp3Device - Set true if writting to a device/partition with Windows OS filename limitations
Method Detail

addFinishListener

public void addFinishListener(DeviceCopyFinishListener listener)
Adds the finish listener.

Parameters:
listener - the listener

notifyCancel

public void notifyCancel()
Notify cancel.


run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.