Struct itunes_com::wrappers::UserPlaylist
source · 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(&self, filePaths: &VARIANT) -> Result<OperationStatus>
pub fn AddFiles(&self, filePaths: &VARIANT) -> 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(&self, iTrackToAdd: &VARIANT) -> Result<Track>
pub fn AddTrack(&self, iTrackToAdd: &VARIANT) -> 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(&mut self, iParentPlayList: &VARIANT) -> Result<()>
pub fn set_Parent(&mut self, iParentPlayList: &VARIANT) -> 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.
source§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 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(&mut self, Shuffle: bool) -> Result<()>
fn set_Shuffle(&mut 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(&mut self, value: ITPlaylistRepeatMode) -> Result<()>
fn set_SongRepeat(&mut 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.
Auto Trait Implementations§
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