VLC-Qt 0.8.0- (Different version)
Signals | Public Member Functions
VlcMediaList Class Reference

Media list item. More...

#include <vlc-qt/Media.h>

List of all members.

Signals

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

Public Member Functions

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

Detailed Description

Media list item.

VlcMediaList holds multiple VlcMedia items to play in sequence.


Constructor & Destructor Documentation

VlcMediaList::VlcMediaList ( VlcInstance instance) [explicit]

VlcMediaList constructor.

This constructor creates a new media list instance.

Parameters:
instancemain libvlc instance

Member Function Documentation

void VlcMediaList::addMedia ( VlcMedia media)

Add media item to the list.

Parameters:
mediamedia item
VlcMedia * VlcMediaList::at ( const int &  index)

Get media item at selected index.

Parameters:
indexitem position
Returns:
media item (VlcMedia)
libvlc_media_list_t * VlcMediaList::core ( )

libvlc media list item

Returns:
libvlc media list item (libvlc_media_list_t *)

libvlc media list item

Returns:
items count (int)
int VlcMediaList::indexOf ( VlcMedia media)

Index of media item.

Parameters:
mediamedia item
Returns:
media item index (int)
int VlcMediaList::indexOf ( libvlc_media_t *  media)

Index of media item (core)

Parameters:
mediamedia item
Returns:
media item index (int)
void VlcMediaList::insertMedia ( VlcMedia media,
const int &  index 
)

Insert media item at the specific position of the list.

Parameters:
mediamedia item
indexitem position
void VlcMediaList::itemAdded ( libvlc_media_t *  _t1,
const int &  _t2 
) [signal]

Signal sent on item added.

Parameters:
libvlc_media_t* item
intindex
void VlcMediaList::itemDeleted ( libvlc_media_t *  _t1,
const int &  _t2 
) [signal]

Signal sent on item deleted.

Parameters:
libvlc_media_t* item
intindex
void VlcMediaList::removeMedia ( const int &  index)

Remove media item from the specific position of the list.

Parameters:
indexitem position
void VlcMediaList::willAddItem ( libvlc_media_t *  _t1,
const int &  _t2 
) [signal]

Signal sent when item will be added.

Parameters:
libvlc_media_t* item
intindex
void VlcMediaList::willDeleteItem ( libvlc_media_t *  _t1,
const int &  _t2 
) [signal]

Signal sent when item will be deleted.

Parameters:
libvlc_media_t* item
intindex

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Enumerations