pub struct UserPlaylist { /* private fields */ }Expand description
Safe wrapper over a IITUserPlaylist
Implementations§
Source§impl UserPlaylist
impl UserPlaylist
Sourcepub fn AddFile(&self, filePath: &str) -> Result<OperationStatus>
pub fn AddFile(&self, filePath: &str) -> Result<OperationStatus>
Add the specified file path to the user playlist.
Sourcepub fn AddFiles<T>(&self, filePaths: &Variant<'_, T>) -> Result<OperationStatus>
pub fn AddFiles<T>(&self, filePaths: &Variant<'_, T>) -> Result<OperationStatus>
Add the specified array of file paths to the user playlist. filePaths can be of type VT_ARRAY|VT_VARIANT, where each entry is a VT_BSTR, or VT_ARRAY|VT_BSTR. You can also pass a JScript Array object.
Sourcepub fn AddURL(&self, URL: &str) -> Result<URLTrack>
pub fn AddURL(&self, URL: &str) -> Result<URLTrack>
Add the specified streaming audio URL to the user playlist.
Sourcepub fn AddTrack<T>(&self, iTrackToAdd: &Variant<'_, T>) -> Result<Track>
pub fn AddTrack<T>(&self, iTrackToAdd: &Variant<'_, T>) -> Result<Track>
Add the specified track to the user playlist. iTrackToAdd is a VARIANT of type VT_DISPATCH that points to an IITTrack.
True if the user playlist is being shared.
True if the user playlist is being shared.
Sourcepub fn SpecialKind(&self) -> Result<ITUserPlaylistSpecialKind>
pub fn SpecialKind(&self) -> Result<ITUserPlaylistSpecialKind>
The playlist special kind.
Sourcepub fn Parent(&self) -> Result<UserPlaylist>
pub fn Parent(&self) -> Result<UserPlaylist>
The parent of this playlist.
Sourcepub fn CreatePlaylist(&self, playlistName: &str) -> Result<Playlist>
pub fn CreatePlaylist(&self, playlistName: &str) -> Result<Playlist>
Creates a new playlist in a folder playlist.
Sourcepub fn CreateFolder(&self, folderName: &str) -> Result<Playlist>
pub fn CreateFolder(&self, folderName: &str) -> Result<Playlist>
Creates a new folder in a folder playlist.
Sourcepub fn set_Parent(&self, iParentPlayList: &Playlist) -> Result<()>
pub fn set_Parent(&self, iParentPlayList: &Playlist) -> Result<()>
The parent of this playlist.
Trait Implementations§
Source§impl IITObjectWrapper for UserPlaylist
impl IITObjectWrapper for UserPlaylist
Source§fn GetITObjectIDs(&self) -> Result<ObjectIDs>
fn GetITObjectIDs(&self) -> Result<ObjectIDs>
Returns the four IDs that uniquely identify this object. Read more
Source§fn as_variant(&self) -> Variant<'_, Self::WrappedType>
fn as_variant(&self) -> Variant<'_, Self::WrappedType>
Get a COM
VARIANT pointing to this objectSource§fn persistent_id(&self) -> Result<PersistentId>
fn persistent_id(&self) -> Result<PersistentId>
Convenience function around
iTunes::GetITObjectPersistentIDSource§fn Index(&self) -> Result<i32>
fn Index(&self) -> Result<i32>
The index of the object in internal application order (1-based).
Source§fn playlistID(&self) -> Result<i32>
fn playlistID(&self) -> Result<i32>
The playlist ID of the object.
Source§fn TrackDatabaseID(&self) -> Result<i32>
fn TrackDatabaseID(&self) -> Result<i32>
The track database ID of the object.
Source§impl IITPlaylistWrapper for UserPlaylist
impl IITPlaylistWrapper for UserPlaylist
Source§fn as_user_playlist(&self) -> Option<UserPlaylist>
fn as_user_playlist(&self) -> Option<UserPlaylist>
Cast this playlist to a
UserPlaylist in case this is valid to do soSource§fn PlayFirstTrack(&self) -> Result<()>
fn PlayFirstTrack(&self) -> Result<()>
Start playing the first track in this playlist.
Source§fn Print(
&self,
showPrintDialog: bool,
printKind: ITPlaylistPrintKind,
theme: String,
) -> Result<()>
fn Print( &self, showPrintDialog: bool, printKind: ITPlaylistPrintKind, theme: String, ) -> Result<()>
Print this playlist.
Source§fn Search(
&self,
searchText: String,
searchFields: ITPlaylistSearchField,
) -> Result<TrackCollection>
fn Search( &self, searchText: String, searchFields: ITPlaylistSearchField, ) -> Result<TrackCollection>
Search tracks in this playlist for the specified string.
Source§fn Kind(&self) -> Result<ITPlaylistKind>
fn Kind(&self) -> Result<ITPlaylistKind>
The playlist kind.
Source§fn is_Shuffle(&self) -> Result<bool>
fn is_Shuffle(&self) -> Result<bool>
True if songs in the playlist are played in random order.
Source§fn set_Shuffle(&self, Shuffle: bool) -> Result<()>
fn set_Shuffle(&self, Shuffle: bool) -> Result<()>
True if songs in the playlist are played in random order.
Source§fn SongRepeat(&self) -> Result<ITPlaylistRepeatMode>
fn SongRepeat(&self) -> Result<ITPlaylistRepeatMode>
The playback repeat mode.
Source§fn set_SongRepeat(&self, value: ITPlaylistRepeatMode) -> Result<()>
fn set_SongRepeat(&self, value: ITPlaylistRepeatMode) -> Result<()>
The playback repeat mode.
Source§fn Time(&self) -> Result<String>
fn Time(&self) -> Result<String>
The total length of all songs in the playlist (in MM:SS format).
Source§fn is_Visible(&self) -> Result<bool>
fn is_Visible(&self) -> Result<bool>
True if the playlist is visible in the Source list.
Source§fn Tracks(&self) -> Result<TrackCollection>
fn Tracks(&self) -> Result<TrackCollection>
Returns a collection of tracks in this playlist.
Source§impl ITunesRelatedObject for UserPlaylist
impl ITunesRelatedObject for UserPlaylist
Source§fn iTunes_instance(&self) -> Arc<iTunes>
fn iTunes_instance(&self) -> Arc<iTunes>
Return the related iTunes instance this object is related to
Auto Trait Implementations§
impl Freeze for UserPlaylist
impl RefUnwindSafe for UserPlaylist
impl !Send for UserPlaylist
impl !Sync for UserPlaylist
impl Unpin for UserPlaylist
impl UnwindSafe for UserPlaylist
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more