pub trait IITTrack_Impl: Sized + IITObject_Impl {
Show 57 methods
// Required methods
unsafe fn Delete(&self) -> HRESULT;
unsafe fn Play(&self) -> HRESULT;
unsafe fn AddArtworkFromFile(
&self,
filePath: BSTR,
iArtwork: *mut Option<IITArtwork>,
) -> HRESULT;
unsafe fn Kind(&self, Kind: *mut ITTrackKind) -> HRESULT;
unsafe fn Playlist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
unsafe fn Album(&self, Album: *mut BSTR) -> HRESULT;
unsafe fn set_Album(&self, Album: BSTR) -> HRESULT;
unsafe fn Artist(&self, Artist: *mut BSTR) -> HRESULT;
unsafe fn set_Artist(&self, Artist: BSTR) -> HRESULT;
unsafe fn BitRate(&self, BitRate: *mut i32) -> HRESULT;
unsafe fn BPM(&self, beatsPerMinute: *mut i32) -> HRESULT;
unsafe fn set_BPM(&self, beatsPerMinute: i32) -> HRESULT;
unsafe fn Comment(&self, Comment: *mut BSTR) -> HRESULT;
unsafe fn set_Comment(&self, Comment: BSTR) -> HRESULT;
unsafe fn Compilation(&self, isCompilation: *mut VARIANT_BOOL) -> HRESULT;
unsafe fn set_Compilation(&self, isCompilation: VARIANT_BOOL) -> HRESULT;
unsafe fn Composer(&self, Composer: *mut BSTR) -> HRESULT;
unsafe fn set_Composer(&self, Composer: BSTR) -> HRESULT;
unsafe fn DateAdded(&self, DateAdded: *mut f64) -> HRESULT;
unsafe fn DiscCount(&self, DiscCount: *mut i32) -> HRESULT;
unsafe fn set_DiscCount(&self, DiscCount: i32) -> HRESULT;
unsafe fn DiscNumber(&self, DiscNumber: *mut i32) -> HRESULT;
unsafe fn set_DiscNumber(&self, DiscNumber: i32) -> HRESULT;
unsafe fn Duration(&self, Duration: *mut i32) -> HRESULT;
unsafe fn Enabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT;
unsafe fn set_Enabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT;
unsafe fn EQ(&self, EQ: *mut BSTR) -> HRESULT;
unsafe fn set_EQ(&self, EQ: BSTR) -> HRESULT;
unsafe fn set_Finish(&self, Finish: i32) -> HRESULT;
unsafe fn Finish(&self, Finish: *mut i32) -> HRESULT;
unsafe fn Genre(&self, Genre: *mut BSTR) -> HRESULT;
unsafe fn set_Genre(&self, Genre: BSTR) -> HRESULT;
unsafe fn Grouping(&self, Grouping: *mut BSTR) -> HRESULT;
unsafe fn set_Grouping(&self, Grouping: BSTR) -> HRESULT;
unsafe fn KindAsString(&self, Kind: *mut BSTR) -> HRESULT;
unsafe fn ModificationDate(&self, dateModified: *mut f64) -> HRESULT;
unsafe fn PlayedCount(&self, PlayedCount: *mut i32) -> HRESULT;
unsafe fn set_PlayedCount(&self, PlayedCount: i32) -> HRESULT;
unsafe fn PlayedDate(&self, PlayedDate: *mut f64) -> HRESULT;
unsafe fn set_PlayedDate(&self, PlayedDate: f64) -> HRESULT;
unsafe fn PlayOrderIndex(&self, Index: *mut i32) -> HRESULT;
unsafe fn Rating(&self, Rating: *mut i32) -> HRESULT;
unsafe fn set_Rating(&self, Rating: i32) -> HRESULT;
unsafe fn SampleRate(&self, SampleRate: *mut i32) -> HRESULT;
unsafe fn Size(&self, Size: *mut i32) -> HRESULT;
unsafe fn Start(&self, Start: *mut i32) -> HRESULT;
unsafe fn set_Start(&self, Start: i32) -> HRESULT;
unsafe fn Time(&self, Time: *mut BSTR) -> HRESULT;
unsafe fn TrackCount(&self, TrackCount: *mut i32) -> HRESULT;
unsafe fn set_TrackCount(&self, TrackCount: i32) -> HRESULT;
unsafe fn TrackNumber(&self, TrackNumber: *mut i32) -> HRESULT;
unsafe fn set_TrackNumber(&self, TrackNumber: i32) -> HRESULT;
unsafe fn VolumeAdjustment(&self, VolumeAdjustment: *mut i32) -> HRESULT;
unsafe fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> HRESULT;
unsafe fn Year(&self, Year: *mut i32) -> HRESULT;
unsafe fn set_Year(&self, Year: i32) -> HRESULT;
unsafe fn Artwork(
&self,
iArtworkCollection: *mut Option<IITArtworkCollection>,
) -> HRESULT;
}Required Methods§
Sourceunsafe fn AddArtworkFromFile(
&self,
filePath: BSTR,
iArtwork: *mut Option<IITArtwork>,
) -> HRESULT
unsafe fn AddArtworkFromFile( &self, filePath: BSTR, iArtwork: *mut Option<IITArtwork>, ) -> HRESULT
Add artwork from an image file to this track.
Sourceunsafe fn Kind(&self, Kind: *mut ITTrackKind) -> HRESULT
unsafe fn Kind(&self, Kind: *mut ITTrackKind) -> HRESULT
The track kind.
Sourceunsafe fn Playlist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT
unsafe fn Playlist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT
The playlist that contains this track.
Sourceunsafe fn set_Artist(&self, Artist: BSTR) -> HRESULT
unsafe fn set_Artist(&self, Artist: BSTR) -> HRESULT
The artist/source of the track.
Sourceunsafe fn BPM(&self, beatsPerMinute: *mut i32) -> HRESULT
unsafe fn BPM(&self, beatsPerMinute: *mut i32) -> HRESULT
The tempo of the track (in beats per minute).
Sourceunsafe fn set_BPM(&self, beatsPerMinute: i32) -> HRESULT
unsafe fn set_BPM(&self, beatsPerMinute: i32) -> HRESULT
The tempo of the track (in beats per minute).
Sourceunsafe fn set_Comment(&self, Comment: BSTR) -> HRESULT
unsafe fn set_Comment(&self, Comment: BSTR) -> HRESULT
Freeform notes about the track.
Sourceunsafe fn Compilation(&self, isCompilation: *mut VARIANT_BOOL) -> HRESULT
unsafe fn Compilation(&self, isCompilation: *mut VARIANT_BOOL) -> HRESULT
True if this track is from a compilation album.
Sourceunsafe fn set_Compilation(&self, isCompilation: VARIANT_BOOL) -> HRESULT
unsafe fn set_Compilation(&self, isCompilation: VARIANT_BOOL) -> HRESULT
True if this track is from a compilation album.
Sourceunsafe fn set_Composer(&self, Composer: BSTR) -> HRESULT
unsafe fn set_Composer(&self, Composer: BSTR) -> HRESULT
The composer of the track.
Sourceunsafe fn DateAdded(&self, DateAdded: *mut f64) -> HRESULT
unsafe fn DateAdded(&self, DateAdded: *mut f64) -> HRESULT
The date the track was added to the playlist.
Sourceunsafe fn DiscCount(&self, DiscCount: *mut i32) -> HRESULT
unsafe fn DiscCount(&self, DiscCount: *mut i32) -> HRESULT
The total number of discs in the source album.
Sourceunsafe fn set_DiscCount(&self, DiscCount: i32) -> HRESULT
unsafe fn set_DiscCount(&self, DiscCount: i32) -> HRESULT
The total number of discs in the source album.
Sourceunsafe fn DiscNumber(&self, DiscNumber: *mut i32) -> HRESULT
unsafe fn DiscNumber(&self, DiscNumber: *mut i32) -> HRESULT
The index of the disc containing the track on the source album.
Sourceunsafe fn set_DiscNumber(&self, DiscNumber: i32) -> HRESULT
unsafe fn set_DiscNumber(&self, DiscNumber: i32) -> HRESULT
The index of the disc containing the track on the source album.
Sourceunsafe fn Enabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT
unsafe fn Enabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT
True if the track is checked for playback.
Sourceunsafe fn set_Enabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT
unsafe fn set_Enabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT
True if the track is checked for playback.
Sourceunsafe fn set_Finish(&self, Finish: i32) -> HRESULT
unsafe fn set_Finish(&self, Finish: i32) -> HRESULT
The stop time of the track (in seconds).
Sourceunsafe fn Genre(&self, Genre: *mut BSTR) -> HRESULT
unsafe fn Genre(&self, Genre: *mut BSTR) -> HRESULT
The music/audio genre (category) of the track.
Sourceunsafe fn set_Genre(&self, Genre: BSTR) -> HRESULT
unsafe fn set_Genre(&self, Genre: BSTR) -> HRESULT
The music/audio genre (category) of the track.
Sourceunsafe fn Grouping(&self, Grouping: *mut BSTR) -> HRESULT
unsafe fn Grouping(&self, Grouping: *mut BSTR) -> HRESULT
The grouping (piece) of the track. Generally used to denote movements within classical work.
Sourceunsafe fn set_Grouping(&self, Grouping: BSTR) -> HRESULT
unsafe fn set_Grouping(&self, Grouping: BSTR) -> HRESULT
The grouping (piece) of the track. Generally used to denote movements within classical work.
Sourceunsafe fn KindAsString(&self, Kind: *mut BSTR) -> HRESULT
unsafe fn KindAsString(&self, Kind: *mut BSTR) -> HRESULT
A text description of the track.
Sourceunsafe fn ModificationDate(&self, dateModified: *mut f64) -> HRESULT
unsafe fn ModificationDate(&self, dateModified: *mut f64) -> HRESULT
The modification date of the content of the track.
Sourceunsafe fn PlayedCount(&self, PlayedCount: *mut i32) -> HRESULT
unsafe fn PlayedCount(&self, PlayedCount: *mut i32) -> HRESULT
The number of times the track has been played.
Sourceunsafe fn set_PlayedCount(&self, PlayedCount: i32) -> HRESULT
unsafe fn set_PlayedCount(&self, PlayedCount: i32) -> HRESULT
The number of times the track has been played.
Sourceunsafe fn PlayedDate(&self, PlayedDate: *mut f64) -> HRESULT
unsafe fn PlayedDate(&self, PlayedDate: *mut f64) -> HRESULT
The date and time the track was last played. A value of zero means no played date.
Sourceunsafe fn set_PlayedDate(&self, PlayedDate: f64) -> HRESULT
unsafe fn set_PlayedDate(&self, PlayedDate: f64) -> HRESULT
The date and time the track was last played. A value of zero means no played date.
Sourceunsafe fn PlayOrderIndex(&self, Index: *mut i32) -> HRESULT
unsafe fn PlayOrderIndex(&self, Index: *mut i32) -> HRESULT
The play order index of the track in the owner playlist (1-based).
Sourceunsafe fn set_Rating(&self, Rating: i32) -> HRESULT
unsafe fn set_Rating(&self, Rating: i32) -> HRESULT
The rating of the track (0 to 100).
Sourceunsafe fn SampleRate(&self, SampleRate: *mut i32) -> HRESULT
unsafe fn SampleRate(&self, SampleRate: *mut i32) -> HRESULT
The sample rate of the track (in Hz).
Sourceunsafe fn TrackCount(&self, TrackCount: *mut i32) -> HRESULT
unsafe fn TrackCount(&self, TrackCount: *mut i32) -> HRESULT
The total number of tracks on the source album.
Sourceunsafe fn set_TrackCount(&self, TrackCount: i32) -> HRESULT
unsafe fn set_TrackCount(&self, TrackCount: i32) -> HRESULT
The total number of tracks on the source album.
Sourceunsafe fn TrackNumber(&self, TrackNumber: *mut i32) -> HRESULT
unsafe fn TrackNumber(&self, TrackNumber: *mut i32) -> HRESULT
The index of the track on the source album.
Sourceunsafe fn set_TrackNumber(&self, TrackNumber: i32) -> HRESULT
unsafe fn set_TrackNumber(&self, TrackNumber: i32) -> HRESULT
The index of the track on the source album.
Sourceunsafe fn VolumeAdjustment(&self, VolumeAdjustment: *mut i32) -> HRESULT
unsafe fn VolumeAdjustment(&self, VolumeAdjustment: *mut i32) -> HRESULT
The relative volume adjustment of the track (-100% to 100%).
Sourceunsafe fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> HRESULT
unsafe fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> HRESULT
The relative volume adjustment of the track (-100% to 100%).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.