VlcMediaList Class Reference

Media list item. More...

#include <VLCQtCore/MediaList.h>

Signals

void itemAdded (libvlc_media_t *item, int index)
 Signal sent on item added. More...
 
void willAddItem (libvlc_media_t *item, int index)
 Signal sent when item will be added. More...
 
void itemDeleted (libvlc_media_t *item, int index)
 Signal sent on item deleted. More...
 
void willDeleteItem (libvlc_media_t *item, int index)
 Signal sent when item will be deleted. More...
 

Public Member Functions

 VlcMediaList (VlcInstance *instance)
 VlcMediaList constructor. More...
 
 ~VlcMediaList ()
 VlcMediaList destructor.
 
libvlc_media_list_t * core ()
 libvlc media list item More...
 
void addMedia (VlcMedia *media)
 Add media item to the list. More...
 
VlcMediaat (int index)
 Get media item at selected index. More...
 
int count ()
 libvlc media list item More...
 
int indexOf (VlcMedia *media)
 Index of media item. More...
 
int indexOf (libvlc_media_t *media)
 Index of media item (core) More...
 
void insertMedia (VlcMedia *media, int index)
 Insert media item at the specific position of the list. More...
 
void removeMedia (int index)
 Remove media item from the specific position of the list. More...
 

Detailed Description

VlcMediaList holds multiple VlcMedia items to play in sequence.

Constructor & Destructor Documentation

VlcMediaList::VlcMediaList ( VlcInstance instance)
explicit

This constructor creates a new media list instance.

Parameters
instancemain libvlc instance

Member Function Documentation

void VlcMediaList::addMedia ( VlcMedia media)
Parameters
mediamedia item
VlcMedia * VlcMediaList::at ( int  index)
Parameters
indexitem position
Returns
media item (VlcMedia)
libvlc_media_list_t * VlcMediaList::core ( )
Returns
libvlc media list item (libvlc_media_list_t *)
int VlcMediaList::count ( )
Returns
items count (int)
int VlcMediaList::indexOf ( VlcMedia media)
Parameters
mediamedia item
Returns
media item index (int)
int VlcMediaList::indexOf ( libvlc_media_t *  media)
Parameters
mediamedia item
Returns
media item index (int)
void VlcMediaList::insertMedia ( VlcMedia media,
int  index 
)
Parameters
mediamedia item
indexitem position
void VlcMediaList::itemAdded ( libvlc_media_t *  item,
int  index 
)
signal
Parameters
itemitem that was added
indexindex of item
void VlcMediaList::itemDeleted ( libvlc_media_t *  item,
int  index 
)
signal
Parameters
itemitem that was added
indexindex of item
void VlcMediaList::removeMedia ( int  index)
Parameters
indexitem position
void VlcMediaList::willAddItem ( libvlc_media_t *  item,
int  index 
)
signal
Parameters
itemitem that will be added
indexindex of item
void VlcMediaList::willDeleteItem ( libvlc_media_t *  item,
int  index 
)
signal
Parameters
itemitem that will be deleted
indexindex of item

The documentation for this class was generated from the following files: