foobar2000 SDK  2015-08-03
Data Structures | Public Types | Public Member Functions | Protected Member Functions
playlist_callbackabstract

#include <playlist.h>

+ Inheritance diagram for playlist_callback:

Data Structures

struct  t_on_items_replaced_entry
 

Public Types

enum  {
  flag_on_items_added = 1 << 0, flag_on_items_reordered = 1 << 1, flag_on_items_removing = 1 << 2, flag_on_items_removed = 1 << 3,
  flag_on_items_selection_change = 1 << 4, flag_on_item_focus_change = 1 << 5, flag_on_items_modified = 1 << 6, flag_on_items_modified_fromplayback = 1 << 7,
  flag_on_items_replaced = 1 << 8, flag_on_item_ensure_visible = 1 << 9, flag_on_playlist_activate = 1 << 10, flag_on_playlist_created = 1 << 11,
  flag_on_playlists_reorder = 1 << 12, flag_on_playlists_removing = 1 << 13, flag_on_playlists_removed = 1 << 14, flag_on_playlist_renamed = 1 << 15,
  flag_on_default_format_changed = 1 << 16, flag_on_playback_order_changed = 1 << 17, flag_on_playlist_locked = 1 << 18, flag_all = ~0,
  flag_item_ops = flag_on_items_added | flag_on_items_reordered | flag_on_items_removing | flag_on_items_removed | flag_on_items_selection_change | flag_on_item_focus_change | flag_on_items_modified | flag_on_items_modified_fromplayback | flag_on_items_replaced | flag_on_item_ensure_visible, flag_playlist_ops = flag_on_playlist_activate | flag_on_playlist_created | flag_on_playlists_reorder | flag_on_playlists_removing | flag_on_playlists_removed | flag_on_playlist_renamed | flag_on_playlist_locked
}
 

Public Member Functions

virtual void on_default_format_changed ()=0
 
virtual void on_item_ensure_visible (t_size p_playlist, t_size p_idx)=0
 
virtual void on_item_focus_change (t_size p_playlist, t_size p_from, t_size p_to)=0
 
virtual void on_items_added (t_size p_playlist, t_size p_start, const pfc::list_base_const_t< metadb_handle_ptr > &p_data, const bit_array &p_selection)=0
 
virtual void on_items_modified (t_size p_playlist, const bit_array &p_mask)=0
 
virtual void on_items_modified_fromplayback (t_size p_playlist, const bit_array &p_mask, play_control::t_display_level p_level)=0
 
virtual void on_items_removed (t_size p_playlist, const bit_array &p_mask, t_size p_old_count, t_size p_new_count)=0
 
virtual void on_items_removing (t_size p_playlist, const bit_array &p_mask, t_size p_old_count, t_size p_new_count)=0
 
virtual void on_items_reordered (t_size p_playlist, const t_size *p_order, t_size p_count)=0
 
virtual void on_items_replaced (t_size p_playlist, const bit_array &p_mask, const pfc::list_base_const_t< t_on_items_replaced_entry > &p_data)=0
 
virtual void on_items_selection_change (t_size p_playlist, const bit_array &p_affected, const bit_array &p_state)=0
 
virtual void on_playback_order_changed (t_size p_new_index)=0
 
virtual void on_playlist_activate (t_size p_old, t_size p_new)=0
 
virtual void on_playlist_created (t_size p_index, const char *p_name, t_size p_name_len)=0
 
virtual void on_playlist_locked (t_size p_playlist, bool p_locked)=0
 
virtual void on_playlist_renamed (t_size p_index, const char *p_new_name, t_size p_new_name_len)=0
 
virtual void on_playlists_removed (const bit_array &p_mask, t_size p_old_count, t_size p_new_count)=0
 
virtual void on_playlists_removing (const bit_array &p_mask, t_size p_old_count, t_size p_new_count)=0
 
virtual void on_playlists_reorder (const t_size *p_order, t_size p_count)=0
 

Protected Member Functions

 playlist_callback ()
 
 ~playlist_callback ()
 

Detailed Description

Definition at line 511 of file playlist.h.


Data Structure Documentation

struct playlist_callback::t_on_items_replaced_entry

Definition at line 524 of file playlist.h.

Data Fields
t_size m_index
metadb_handle_ptr m_new
metadb_handle_ptr m_old

Member Enumeration Documentation

anonymous enum
Enumerator
flag_on_items_added 
flag_on_items_reordered 
flag_on_items_removing 
flag_on_items_removed 
flag_on_items_selection_change 
flag_on_item_focus_change 
flag_on_items_modified 
flag_on_items_modified_fromplayback 
flag_on_items_replaced 
flag_on_item_ensure_visible 
flag_on_playlist_activate 
flag_on_playlist_created 
flag_on_playlists_reorder 
flag_on_playlists_removing 
flag_on_playlists_removed 
flag_on_playlist_renamed 
flag_on_default_format_changed 
flag_on_playback_order_changed 
flag_on_playlist_locked 
flag_all 
flag_item_ops 
flag_playlist_ops 

Definition at line 545 of file playlist.h.

545  {
546  flag_on_items_added = 1 << 0,
547  flag_on_items_reordered = 1 << 1,
548  flag_on_items_removing = 1 << 2,
549  flag_on_items_removed = 1 << 3,
551  flag_on_item_focus_change = 1 << 5,
552  flag_on_items_modified = 1 << 6,
554  flag_on_items_replaced = 1 << 8,
556  flag_on_playlist_activate = 1 << 10,
557  flag_on_playlist_created = 1 << 11,
558  flag_on_playlists_reorder = 1 << 12,
559  flag_on_playlists_removing = 1 << 13,
560  flag_on_playlists_removed = 1 << 14,
561  flag_on_playlist_renamed = 1 << 15,
564  flag_on_playlist_locked = 1 << 18,
565 
566  flag_all = ~0,
569  };

Constructor & Destructor Documentation

playlist_callback::playlist_callback ( )
inlineprotected

Definition at line 571 of file playlist.h.

571 {}
playlist_callback::~playlist_callback ( )
inlineprotected

Definition at line 572 of file playlist.h.

572 {}

Member Function Documentation

virtual void playlist_callback::on_default_format_changed ( )
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_item_ensure_visible ( t_size  p_playlist,
t_size  p_idx 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_item_focus_change ( t_size  p_playlist,
t_size  p_from,
t_size  p_to 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_items_added ( t_size  p_playlist,
t_size  p_start,
const pfc::list_base_const_t< metadb_handle_ptr > &  p_data,
const bit_array p_selection 
)
pure virtual
virtual void playlist_callback::on_items_modified ( t_size  p_playlist,
const bit_array p_mask 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_items_modified_fromplayback ( t_size  p_playlist,
const bit_array p_mask,
play_control::t_display_level  p_level 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_items_removed ( t_size  p_playlist,
const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
pure virtual
virtual void playlist_callback::on_items_removing ( t_size  p_playlist,
const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_items_reordered ( t_size  p_playlist,
const t_size p_order,
t_size  p_count 
)
pure virtual
virtual void playlist_callback::on_items_replaced ( t_size  p_playlist,
const bit_array p_mask,
const pfc::list_base_const_t< t_on_items_replaced_entry > &  p_data 
)
pure virtual
virtual void playlist_callback::on_items_selection_change ( t_size  p_playlist,
const bit_array p_affected,
const bit_array p_state 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_playback_order_changed ( t_size  p_new_index)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_playlist_activate ( t_size  p_old,
t_size  p_new 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_playlist_created ( t_size  p_index,
const char *  p_name,
t_size  p_name_len 
)
pure virtual
virtual void playlist_callback::on_playlist_locked ( t_size  p_playlist,
bool  p_locked 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_playlist_renamed ( t_size  p_index,
const char *  p_new_name,
t_size  p_new_name_len 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_playlists_removed ( const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
pure virtual
virtual void playlist_callback::on_playlists_removing ( const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
pure virtual

Implemented in playlist_callback_impl_base.

virtual void playlist_callback::on_playlists_reorder ( const t_size p_order,
t_size  p_count 
)
pure virtual

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