Playtree Class Reference

Variable for VLC playlist (new tree format). More...

Inheritance diagram for Playtree:

Inheritance graph
[legend]
Collaboration diagram for Playtree:

Collaboration graph
[legend]

Public Member Functions

 Playtree (intf_thread_t *pIntf)
virtual ~Playtree ()
virtual void delSelected ()
 Remove the selected elements from the list.
virtual void action (VarTree *pItem)
 Execute the action associated to this item.
void onChange ()
 Function called to notify playlist changes.
void onUpdateItem (int id)
 Function called to notify playlist item update.
void onUpdateCurrent (bool b_active)
 Function called to notify about current playing item.
void onAppend (playlist_add_t *)
 Function called to notify playlist item append.
void onDelete (int)
 Function called to notify playlist item delete.

Data Fields

int i_items_to_append
 Items waiting to be appended.

Detailed Description

Variable for VLC playlist (new tree format).

Constructor & Destructor Documentation

Playtree::Playtree ( intf_thread_t pIntf  ) 

Playtree::~Playtree (  )  [virtual]


Member Function Documentation

void Playtree::delSelected (  )  [virtual]

void Playtree::action ( VarTree pItem  )  [virtual]

void Playtree::onChange (  ) 

Function called to notify playlist changes.

References tree_update::i_type, and Subject< VarTree, tree_update >::notify().

Referenced by CmdPlaytreeChanged::execute(), and CmdPlaytreeSort::execute().

void Playtree::onUpdateItem ( int  id  ) 

void Playtree::onUpdateCurrent ( bool  b_active  ) 

void Playtree::onAppend ( playlist_add_t p_add  ) 

void Playtree::onDelete ( int  i_id  ) 

Function called to notify playlist item delete.

Todo:
keep a list of "recently removed" to avoid looking up if we

References tree_update::b_visible, VarTree::end(), VarTree::findById(), tree_update::i_id, tree_update::i_type, and Subject< VarTree, tree_update >::notify().

Referenced by CmdPlaytreeDelete::execute().


Field Documentation

Items waiting to be appended.

Referenced by onAppend(), and Playtree().


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

Generated on Tue May 25 08:06:19 2010 for VLC by  doxygen 1.5.6