pub struct UserPlaylist { /* private fields */ }
Expand description

Safe wrapper over a IITUserPlaylist

Implementations§

source§

impl UserPlaylist

source

pub fn AddFile(&self, filePath: &str) -> Result<OperationStatus>

Add the specified file path to the user playlist.

source

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.

source

pub fn AddURL(&self, URL: &str) -> Result<URLTrack>

Add the specified streaming audio URL to the user playlist.

source

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.

source

pub fn is_Shared(&self) -> Result<bool>

True if the user playlist is being shared.

source

pub fn set_Shared(&mut self, Shared: bool) -> Result<()>

True if the user playlist is being shared.

source

pub fn is_Smart(&self) -> Result<bool>

True if this is a smart playlist.

source

pub fn SpecialKind(&self) -> Result<ITUserPlaylistSpecialKind>

The playlist special kind.

source

pub fn Parent(&self) -> Result<UserPlaylist>

The parent of this playlist.

source

pub fn CreatePlaylist(&self, playlistName: &str) -> Result<Playlist>

Creates a new playlist in a folder playlist.

source

pub fn CreateFolder(&self, folderName: &str) -> Result<Playlist>

Creates a new folder in a folder playlist.

source

pub fn set_Parent(&mut self, iParentPlayList: &VARIANT) -> Result<()>

The parent of this playlist.

source

pub fn Reveal(&self) -> Result<()>

Reveal the user playlist in the main browser window.

Trait Implementations§

source§

impl IITPlaylistWrapper for UserPlaylist

source§

fn Delete(&self) -> Result<()>

Delete this playlist.
source§

fn PlayFirstTrack(&self) -> Result<()>

Start playing the first track in this playlist.
source§

fn Print( &self, showPrintDialog: bool, printKind: ITPlaylistPrintKind, theme: String ) -> Result<()>

Print this playlist.
source§

fn Search( &self, searchText: String, searchFields: ITPlaylistSearchField ) -> Result<TrackCollection>

Search tracks in this playlist for the specified string.
source§

fn Kind(&self) -> Result<ITPlaylistKind>

The playlist kind.
source§

fn Source(&self) -> Result<Source>

The source that contains this playlist.
source§

fn Duration(&self) -> Result<i32>

The total length of all songs in the playlist (in seconds).
source§

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<()>

True if songs in the playlist are played in random order.
source§

fn Size(&self) -> Result<f64>

The total size of all songs in the playlist (in bytes).
source§

fn SongRepeat(&self) -> Result<ITPlaylistRepeatMode>

The playback repeat mode.
source§

fn set_SongRepeat(&mut self, value: ITPlaylistRepeatMode) -> Result<()>

The playback repeat mode.
source§

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>

True if the playlist is visible in the Source list.
source§

fn Tracks(&self) -> Result<TrackCollection>

Returns a collection of tracks in this playlist.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.