IITTrack_Impl

Trait IITTrack_Impl 

Source
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§

Source

unsafe fn Delete(&self) -> HRESULT

Delete this track.

Source

unsafe fn Play(&self) -> HRESULT

Start playing this track.

Source

unsafe fn AddArtworkFromFile( &self, filePath: BSTR, iArtwork: *mut Option<IITArtwork>, ) -> HRESULT

Add artwork from an image file to this track.

Source

unsafe fn Kind(&self, Kind: *mut ITTrackKind) -> HRESULT

The track kind.

Source

unsafe fn Playlist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT

The playlist that contains this track.

Source

unsafe fn Album(&self, Album: *mut BSTR) -> HRESULT

The album containing the track.

Source

unsafe fn set_Album(&self, Album: BSTR) -> HRESULT

The album containing the track.

Source

unsafe fn Artist(&self, Artist: *mut BSTR) -> HRESULT

The artist/source of the track.

Source

unsafe fn set_Artist(&self, Artist: BSTR) -> HRESULT

The artist/source of the track.

Source

unsafe fn BitRate(&self, BitRate: *mut i32) -> HRESULT

The bit rate of the track (in kbps).

Source

unsafe fn BPM(&self, beatsPerMinute: *mut i32) -> HRESULT

The tempo of the track (in beats per minute).

Source

unsafe fn set_BPM(&self, beatsPerMinute: i32) -> HRESULT

The tempo of the track (in beats per minute).

Source

unsafe fn Comment(&self, Comment: *mut BSTR) -> HRESULT

Freeform notes about the track.

Source

unsafe fn set_Comment(&self, Comment: BSTR) -> HRESULT

Freeform notes about the track.

Source

unsafe fn Compilation(&self, isCompilation: *mut VARIANT_BOOL) -> HRESULT

True if this track is from a compilation album.

Source

unsafe fn set_Compilation(&self, isCompilation: VARIANT_BOOL) -> HRESULT

True if this track is from a compilation album.

Source

unsafe fn Composer(&self, Composer: *mut BSTR) -> HRESULT

The composer of the track.

Source

unsafe fn set_Composer(&self, Composer: BSTR) -> HRESULT

The composer of the track.

Source

unsafe fn DateAdded(&self, DateAdded: *mut f64) -> HRESULT

The date the track was added to the playlist.

Source

unsafe fn DiscCount(&self, DiscCount: *mut i32) -> HRESULT

The total number of discs in the source album.

Source

unsafe fn set_DiscCount(&self, DiscCount: i32) -> HRESULT

The total number of discs in the source album.

Source

unsafe fn DiscNumber(&self, DiscNumber: *mut i32) -> HRESULT

The index of the disc containing the track on the source album.

Source

unsafe fn set_DiscNumber(&self, DiscNumber: i32) -> HRESULT

The index of the disc containing the track on the source album.

Source

unsafe fn Duration(&self, Duration: *mut i32) -> HRESULT

The length of the track (in seconds).

Source

unsafe fn Enabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT

True if the track is checked for playback.

Source

unsafe fn set_Enabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT

True if the track is checked for playback.

Source

unsafe fn EQ(&self, EQ: *mut BSTR) -> HRESULT

The name of the EQ preset of the track.

Source

unsafe fn set_EQ(&self, EQ: BSTR) -> HRESULT

The name of the EQ preset of the track.

Source

unsafe fn set_Finish(&self, Finish: i32) -> HRESULT

The stop time of the track (in seconds).

Source

unsafe fn Finish(&self, Finish: *mut i32) -> HRESULT

The stop time of the track (in seconds).

Source

unsafe fn Genre(&self, Genre: *mut BSTR) -> HRESULT

The music/audio genre (category) of the track.

Source

unsafe fn set_Genre(&self, Genre: BSTR) -> HRESULT

The music/audio genre (category) of the track.

Source

unsafe fn Grouping(&self, Grouping: *mut BSTR) -> HRESULT

The grouping (piece) of the track. Generally used to denote movements within classical work.

Source

unsafe fn set_Grouping(&self, Grouping: BSTR) -> HRESULT

The grouping (piece) of the track. Generally used to denote movements within classical work.

Source

unsafe fn KindAsString(&self, Kind: *mut BSTR) -> HRESULT

A text description of the track.

Source

unsafe fn ModificationDate(&self, dateModified: *mut f64) -> HRESULT

The modification date of the content of the track.

Source

unsafe fn PlayedCount(&self, PlayedCount: *mut i32) -> HRESULT

The number of times the track has been played.

Source

unsafe fn set_PlayedCount(&self, PlayedCount: i32) -> HRESULT

The number of times the track has been played.

Source

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.

Source

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.

Source

unsafe fn PlayOrderIndex(&self, Index: *mut i32) -> HRESULT

The play order index of the track in the owner playlist (1-based).

Source

unsafe fn Rating(&self, Rating: *mut i32) -> HRESULT

The rating of the track (0 to 100).

Source

unsafe fn set_Rating(&self, Rating: i32) -> HRESULT

The rating of the track (0 to 100).

Source

unsafe fn SampleRate(&self, SampleRate: *mut i32) -> HRESULT

The sample rate of the track (in Hz).

Source

unsafe fn Size(&self, Size: *mut i32) -> HRESULT

The size of the track (in bytes).

Source

unsafe fn Start(&self, Start: *mut i32) -> HRESULT

The start time of the track (in seconds).

Source

unsafe fn set_Start(&self, Start: i32) -> HRESULT

The start time of the track (in seconds).

Source

unsafe fn Time(&self, Time: *mut BSTR) -> HRESULT

The length of the track (in MM:SS format).

Source

unsafe fn TrackCount(&self, TrackCount: *mut i32) -> HRESULT

The total number of tracks on the source album.

Source

unsafe fn set_TrackCount(&self, TrackCount: i32) -> HRESULT

The total number of tracks on the source album.

Source

unsafe fn TrackNumber(&self, TrackNumber: *mut i32) -> HRESULT

The index of the track on the source album.

Source

unsafe fn set_TrackNumber(&self, TrackNumber: i32) -> HRESULT

The index of the track on the source album.

Source

unsafe fn VolumeAdjustment(&self, VolumeAdjustment: *mut i32) -> HRESULT

The relative volume adjustment of the track (-100% to 100%).

Source

unsafe fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> HRESULT

The relative volume adjustment of the track (-100% to 100%).

Source

unsafe fn Year(&self, Year: *mut i32) -> HRESULT

The year the track was recorded/released.

Source

unsafe fn set_Year(&self, Year: i32) -> HRESULT

The year the track was recorded/released.

Source

unsafe fn Artwork( &self, iArtworkCollection: *mut Option<IITArtworkCollection>, ) -> HRESULT

Returns a collection of artwork.

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.

Implementors§