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 IITObjectWrapper for LibraryPlaylist
impl IITObjectWrapper for LibraryPlaylist
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 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.
Auto Trait Implementations§
impl RefUnwindSafe for LibraryPlaylist
impl !Send for LibraryPlaylist
impl !Sync for LibraryPlaylist
impl Unpin for LibraryPlaylist
impl UnwindSafe for LibraryPlaylist
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