com.dt.iTunesController
Class ITOperationStatus
java.lang.Object
com.dt.iTunesController.ITOperationStatus
public class ITOperationStatus
- extends java.lang.Object
Represents the status of an asynchronous add or convert operation.
When a track is added using TLibraryPlaylist.addFile(),
ITLibraryPlaylist.AddFiles(), IITUserPlaylist.addFile(), or
ITUserPlaylist.addFiles(), the add may not complete immediately if iTunes
needs to make a copy of the file.
Similarly, when converting or importing a file or track using
iTunes.convertFile(), iTunes.convertFiles(),
iTunes.convertTrack() or iTunes.convertTracks(),
the conversion will never complete immediately.
These methods return an ITOperationStatus object, which can be
polled todetermine when the operation is done. This object will also return
the collection of newly added or converted tracks.
As of version 1.1 of the iTunes type library, you should use
iTunes.convertFile2(), iTunes.convertFiles2(),
iTunes.convertTrack2() or iTunes.convertTracks2()
instead of the original convert methods. These new methods return an
ITConvertOperationStatus object to allow clients to retrieve
additional conversion progress information.
|
Field Summary |
protected com.jacob.com.Dispatch |
object
|
|
Method Summary |
boolean |
getInProgress()
Returns true if the operation is still in progress. |
ITTrackCollection |
getTracks()
Returns a collection containing the tracks that were generated by the
operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
object
protected com.jacob.com.Dispatch object
ITOperationStatus
public ITOperationStatus(com.jacob.com.Dispatch d)
getInProgress
public boolean getInProgress()
- Returns true if the operation is still in progress.
You cannot retrieve the
ITOperationStatus.getTracks()
property until the operation completes.
- Returns:
- Returns true if the operation is still in progress.
getTracks
public ITTrackCollection getTracks()
- Returns a collection containing the tracks that were generated by the
operation.
You cannot retrieve this property until
ITOperationStatus.getInProgress() returns false
- Returns:
- Returns a collection containing the tracks that were generated by
the operation.