

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. | |
| Playtree::Playtree | ( | intf_thread_t * | pIntf | ) |
References i_items_to_append, intf_sys_t::p_playlist, and intf_thread_t::p_sys.
| Playtree::~Playtree | ( | ) | [virtual] |
| void Playtree::delSelected | ( | ) | [virtual] |
Remove the selected elements from the list.
Reimplemented from VarTree.
References VarTree::begin(), VarTree::end(), SkinObject::getIntf(), VarTree::getNextSibling(), VarTree::getNextVisibleItem(), playlist_item_t::i_children, tree_update::i_type, Subject< VarTree, tree_update >::notify(), playlist_item_t::p_input, p_item, p_sys, pl_Locked, playlist_DeleteFromInput(), playlist_Lock(), playlist_NodeDelete(), and playlist_Unlock().
| void Playtree::action | ( | VarTree * | pItem | ) | [virtual] |
Execute the action associated to this item.
Reimplemented from VarTree.
References VarTree::m_pData, p_item, playlist_item_t::p_parent, playlist_t::p_root_category, pl_Locked, playlist_Control(), playlist_Lock(), playlist_Unlock(), and PLAYLIST_VIEWPLAY.
| 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 | ) |
Function called to notify playlist item update.
References tree_update::b_active_item, VarTree::end(), VarTree::findById(), SkinObject::getIntf(), tree_update::i_type, msg_Warn, Subject< VarTree, tree_update >::notify(), playlist_item_t::p_input, and input_item_t::psz_name.
Referenced by CmdPlaytreeUpdate::execute().
| void Playtree::onUpdateCurrent | ( | bool | b_active | ) |
Function called to notify about current playing item.
References tree_update::b_active_item, VarTree::findById(), playlist_item_t::i_id, tree_update::i_type, Subject< VarTree, tree_update >::notify(), playlist_CurrentPlayingItem(), playlist_Lock(), and playlist_Unlock().
Referenced by VlcProc::on_item_current_changed().
| void Playtree::onAppend | ( | playlist_add_t * | p_add | ) |
Function called to notify playlist item append.
< Write-enabled ?
References tree_update::b_visible, VarTree::end(), VarTree::findById(), SkinObject::getIntf(), playlist_item_t::i_flags, tree_update::i_id, playlist_add_t::i_item, i_items_to_append, playlist_add_t::i_node, tree_update::i_parent, tree_update::i_type, Subject< VarTree, tree_update >::notify(), playlist_item_t::p_input, p_item, playlist_ItemGetById(), playlist_Lock(), PLAYLIST_RO_FLAG, playlist_Unlock(), and input_item_t::psz_name.
Referenced by CmdPlaytreeAppend::execute().
| void Playtree::onDelete | ( | int | i_id | ) |
Function called to notify playlist item delete.
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().
1.5.6