Struct itunes_com::wrappers::LibraryPlaylist
source · pub struct LibraryPlaylist { /* private fields */ }Expand description
Safe wrapper over a IITLibraryPlaylist
Implementations§
source§impl LibraryPlaylist
impl LibraryPlaylist
sourcepub fn AddFile(&self, filePath: &str) -> Result<OperationStatus>
pub fn AddFile(&self, filePath: &str) -> Result<OperationStatus>
Add the specified file path to the library.
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 library. 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.
Trait Implementations§
source§impl IITPlaylistWrapper for LibraryPlaylist
impl IITPlaylistWrapper for LibraryPlaylist
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.