Inheritance diagram for IITOperationStatus:
When a track is added using IITLibraryPlaylist::AddFile(), IITLibraryPlaylist::AddFiles(), IITUserPlaylist::AddFile(), or IITUserPlaylist::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 IiTunes::ConvertFile(), IiTunes::ConvertFiles(), IiTunes::ConvertTrack() or IiTunes::ConvertTracks(), the conversion will never complete immediately.
These methods return an IITOperationStatus object, which can be polled to determine 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 IiTunes::ConvertFile2(), IiTunes::ConvertFiles2(), IiTunes::ConvertTrack2() or IiTunes::ConvertTracks2() instead of the original convert methods. These new methods return an IITConvertOperationStatus object to allow clients to retrieve additional conversion progress information.
Public Member Functions | |
Properties | |
HRESULT | InProgress ([out, retval] VARIANT_BOOL *isInProgress) |
Returns true if the operation is still in progress. | |
HRESULT | Tracks ([out, retval] IITTrackCollection **iTrackCollection) |
Returns a collection containing the tracks that were generated by the operation. |
|
Returns true if the operation is still in progress. You cannot retrieve the IITOperationStatus::Tracks() property until the operation completes.
|
|
Returns a collection containing the tracks that were generated by the operation. You cannot retrieve this property until IITOperationStatus::InProgress() returns false
|