pub struct FileOrCDTrack { /* private fields */ }Expand description
Safe wrapper over a IITFileOrCDTrack
Implementations§
Source§impl FileOrCDTrack
impl FileOrCDTrack
Sourcepub fn UpdateInfoFromFile(&self) -> Result<()>
pub fn UpdateInfoFromFile(&self) -> Result<()>
Update this track’s information with the information stored in its file.
Sourcepub fn is_Podcast(&self) -> Result<bool>
pub fn is_Podcast(&self) -> Result<bool>
True if this is a podcast track.
Sourcepub fn UpdatePodcastFeed(&self) -> Result<()>
pub fn UpdatePodcastFeed(&self) -> Result<()>
Update the podcast feed for this track.
Sourcepub fn is_RememberBookmark(&self) -> Result<bool>
pub fn is_RememberBookmark(&self) -> Result<bool>
True if playback position is remembered.
Sourcepub fn set_RememberBookmark(&self, RememberBookmark: bool) -> Result<()>
pub fn set_RememberBookmark(&self, RememberBookmark: bool) -> Result<()>
True if playback position is remembered.
Sourcepub fn is_ExcludeFromShuffle(&self) -> Result<bool>
pub fn is_ExcludeFromShuffle(&self) -> Result<bool>
True if track is skipped when shuffling.
Sourcepub fn set_ExcludeFromShuffle(&self, ExcludeFromShuffle: bool) -> Result<()>
pub fn set_ExcludeFromShuffle(&self, ExcludeFromShuffle: bool) -> Result<()>
True if track is skipped when shuffling.
Sourcepub fn set_Lyrics(&self, Lyrics: &str) -> Result<()>
pub fn set_Lyrics(&self, Lyrics: &str) -> Result<()>
Lyrics for the track.
Sourcepub fn set_Category(&self, Category: &str) -> Result<()>
pub fn set_Category(&self, Category: &str) -> Result<()>
Category for the track.
Sourcepub fn Description(&self) -> Result<String>
pub fn Description(&self) -> Result<String>
Description for the track.
Sourcepub fn set_Description(&self, Description: &str) -> Result<()>
pub fn set_Description(&self, Description: &str) -> Result<()>
Description for the track.
Sourcepub fn LongDescription(&self) -> Result<String>
pub fn LongDescription(&self) -> Result<String>
Long description for the track.
Sourcepub fn set_LongDescription(&self, LongDescription: &str) -> Result<()>
pub fn set_LongDescription(&self, LongDescription: &str) -> Result<()>
Long description for the track.
Sourcepub fn BookmarkTime(&self) -> Result<i32>
pub fn BookmarkTime(&self) -> Result<i32>
The bookmark time of the track (in seconds).
Sourcepub fn set_BookmarkTime(&self, BookmarkTime: i32) -> Result<()>
pub fn set_BookmarkTime(&self, BookmarkTime: i32) -> Result<()>
The bookmark time of the track (in seconds).
Sourcepub fn VideoKind(&self) -> Result<ITVideoKind>
pub fn VideoKind(&self) -> Result<ITVideoKind>
The video track kind.
Sourcepub fn set_VideoKind(&self, value: ITVideoKind) -> Result<()>
pub fn set_VideoKind(&self, value: ITVideoKind) -> Result<()>
The video track kind.
Sourcepub fn SkippedCount(&self) -> Result<i32>
pub fn SkippedCount(&self) -> Result<i32>
The number of times the track has been skipped.
Sourcepub fn set_SkippedCount(&self, SkippedCount: i32) -> Result<()>
pub fn set_SkippedCount(&self, SkippedCount: i32) -> Result<()>
The number of times the track has been skipped.
Sourcepub fn SkippedDate(&self) -> Result<f64>
pub fn SkippedDate(&self) -> Result<f64>
The date and time the track was last skipped. A value of zero means no skipped date.
Sourcepub fn set_SkippedDate(&self, SkippedDate: f64) -> Result<()>
pub fn set_SkippedDate(&self, SkippedDate: f64) -> Result<()>
The date and time the track was last skipped. A value of zero means no skipped date.
Sourcepub fn is_PartOfGaplessAlbum(&self) -> Result<bool>
pub fn is_PartOfGaplessAlbum(&self) -> Result<bool>
True if track is part of a gapless album.
Sourcepub fn set_PartOfGaplessAlbum(&self, PartOfGaplessAlbum: bool) -> Result<()>
pub fn set_PartOfGaplessAlbum(&self, PartOfGaplessAlbum: bool) -> Result<()>
True if track is part of a gapless album.
Sourcepub fn AlbumArtist(&self) -> Result<String>
pub fn AlbumArtist(&self) -> Result<String>
The album artist of the track.
Sourcepub fn set_AlbumArtist(&self, AlbumArtist: &str) -> Result<()>
pub fn set_AlbumArtist(&self, AlbumArtist: &str) -> Result<()>
The album artist of the track.
Sourcepub fn SeasonNumber(&self) -> Result<i32>
pub fn SeasonNumber(&self) -> Result<i32>
The season number of the track.
Sourcepub fn set_SeasonNumber(&self, SeasonNumber: i32) -> Result<()>
pub fn set_SeasonNumber(&self, SeasonNumber: i32) -> Result<()>
The season number of the track.
Sourcepub fn set_EpisodeID(&self, EpisodeID: &str) -> Result<()>
pub fn set_EpisodeID(&self, EpisodeID: &str) -> Result<()>
The episode ID of the track.
Sourcepub fn EpisodeNumber(&self) -> Result<i32>
pub fn EpisodeNumber(&self) -> Result<i32>
The episode number of the track.
Sourcepub fn set_EpisodeNumber(&self, EpisodeNumber: i32) -> Result<()>
pub fn set_EpisodeNumber(&self, EpisodeNumber: i32) -> Result<()>
The episode number of the track.
Sourcepub fn is_Unplayed(&self) -> Result<bool>
pub fn is_Unplayed(&self) -> Result<bool>
True if track has not been played.
Sourcepub fn set_Unplayed(&self, Unplayed: bool) -> Result<()>
pub fn set_Unplayed(&self, Unplayed: bool) -> Result<()>
True if track has not been played.
Sourcepub fn set_SortAlbum(&self, SortAlbum: &str) -> Result<()>
pub fn set_SortAlbum(&self, SortAlbum: &str) -> Result<()>
The album used for sorting.
Sourcepub fn SortAlbumArtist(&self) -> Result<String>
pub fn SortAlbumArtist(&self) -> Result<String>
The album artist used for sorting.
Sourcepub fn set_SortAlbumArtist(&self, SortAlbumArtist: &str) -> Result<()>
pub fn set_SortAlbumArtist(&self, SortAlbumArtist: &str) -> Result<()>
The album artist used for sorting.
Sourcepub fn SortArtist(&self) -> Result<String>
pub fn SortArtist(&self) -> Result<String>
The artist used for sorting.
Sourcepub fn set_SortArtist(&self, SortArtist: &str) -> Result<()>
pub fn set_SortArtist(&self, SortArtist: &str) -> Result<()>
The artist used for sorting.
Sourcepub fn SortComposer(&self) -> Result<String>
pub fn SortComposer(&self) -> Result<String>
The composer used for sorting.
Sourcepub fn set_SortComposer(&self, SortComposer: &str) -> Result<()>
pub fn set_SortComposer(&self, SortComposer: &str) -> Result<()>
The composer used for sorting.
Sourcepub fn set_SortName(&self, SortName: &str) -> Result<()>
pub fn set_SortName(&self, SortName: &str) -> Result<()>
The track name used for sorting.
Sourcepub fn set_SortShow(&self, SortShow: &str) -> Result<()>
pub fn set_SortShow(&self, SortShow: &str) -> Result<()>
The show name used for sorting.
Sourcepub fn AlbumRating(&self) -> Result<Rating>
pub fn AlbumRating(&self) -> Result<Rating>
The user or computed rating of the album that this track belongs to.
Sourcepub fn set_AlbumRating(&self, AlbumRating: Rating) -> Result<()>
pub fn set_AlbumRating(&self, AlbumRating: Rating) -> Result<()>
The user or computed rating of the album that this track belongs to.
Sourcepub fn AlbumRatingKind(&self) -> Result<ITRatingKind>
pub fn AlbumRatingKind(&self) -> Result<ITRatingKind>
The album rating kind.
Sourcepub fn ratingKind(&self) -> Result<ITRatingKind>
pub fn ratingKind(&self) -> Result<ITRatingKind>
The track rating kind.
Sourcepub fn Playlists(&self) -> Result<PlaylistCollection>
pub fn Playlists(&self) -> Result<PlaylistCollection>
Returns a collection of playlists that contain the song that this track represents.
Sourcepub fn set_Location(&self, Location: &str) -> Result<()>
pub fn set_Location(&self, Location: &str) -> Result<()>
The full path to the file represented by this track.
Sourcepub fn ReleaseDate(&self) -> Result<f64>
pub fn ReleaseDate(&self) -> Result<f64>
The release date of the track. A value of zero means no release date.
Trait Implementations§
Source§impl IITObjectWrapper for FileOrCDTrack
impl IITObjectWrapper for FileOrCDTrack
Source§fn GetITObjectIDs(&self) -> Result<ObjectIDs>
fn GetITObjectIDs(&self) -> Result<ObjectIDs>
Source§fn as_variant(&self) -> Variant<'_, Self::WrappedType>
fn as_variant(&self) -> Variant<'_, Self::WrappedType>
VARIANT pointing to this objectSource§fn persistent_id(&self) -> Result<PersistentId>
fn persistent_id(&self) -> Result<PersistentId>
iTunes::GetITObjectPersistentID