windows::Win32::Media::MediaPlayer

Trait IWMPMediaCollection_Impl

pub trait IWMPMediaCollection_Impl: IDispatch_Impl {
    // Required methods
    fn add(&self, bstrurl: &BSTR) -> Result<IWMPMedia>;
    fn getAll(&self) -> Result<IWMPPlaylist>;
    fn getByName(&self, bstrname: &BSTR) -> Result<IWMPPlaylist>;
    fn getByGenre(&self, bstrgenre: &BSTR) -> Result<IWMPPlaylist>;
    fn getByAuthor(&self, bstrauthor: &BSTR) -> Result<IWMPPlaylist>;
    fn getByAlbum(&self, bstralbum: &BSTR) -> Result<IWMPPlaylist>;
    fn getByAttribute(
        &self,
        bstrattribute: &BSTR,
        bstrvalue: &BSTR,
    ) -> Result<IWMPPlaylist>;
    fn remove(
        &self,
        pitem: Ref<'_, IWMPMedia>,
        varfdeletefile: VARIANT_BOOL,
    ) -> Result<()>;
    fn getAttributeStringCollection(
        &self,
        bstrattribute: &BSTR,
        bstrmediatype: &BSTR,
    ) -> Result<IWMPStringCollection>;
    fn getMediaAtom(&self, bstritemname: &BSTR, platom: *mut i32) -> Result<()>;
    fn setDeleted(
        &self,
        pitem: Ref<'_, IWMPMedia>,
        varfisdeleted: VARIANT_BOOL,
    ) -> Result<()>;
    fn isDeleted(
        &self,
        pitem: Ref<'_, IWMPMedia>,
        pvarfisdeleted: *mut VARIANT_BOOL,
    ) -> Result<()>;
}

Required Methods§

fn add(&self, bstrurl: &BSTR) -> Result<IWMPMedia>

fn getAll(&self) -> Result<IWMPPlaylist>

fn getByName(&self, bstrname: &BSTR) -> Result<IWMPPlaylist>

fn getByGenre(&self, bstrgenre: &BSTR) -> Result<IWMPPlaylist>

fn getByAuthor(&self, bstrauthor: &BSTR) -> Result<IWMPPlaylist>

fn getByAlbum(&self, bstralbum: &BSTR) -> Result<IWMPPlaylist>

fn getByAttribute( &self, bstrattribute: &BSTR, bstrvalue: &BSTR, ) -> Result<IWMPPlaylist>

fn remove( &self, pitem: Ref<'_, IWMPMedia>, varfdeletefile: VARIANT_BOOL, ) -> Result<()>

fn getAttributeStringCollection( &self, bstrattribute: &BSTR, bstrmediatype: &BSTR, ) -> Result<IWMPStringCollection>

fn getMediaAtom(&self, bstritemname: &BSTR, platom: *mut i32) -> Result<()>

fn setDeleted( &self, pitem: Ref<'_, IWMPMedia>, varfisdeleted: VARIANT_BOOL, ) -> Result<()>

fn isDeleted( &self, pitem: Ref<'_, IWMPMedia>, pvarfisdeleted: *mut VARIANT_BOOL, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§