foobar2000 SDK  2015-08-03
Public Member Functions
playlist_callback_impl_base

#include <playlist.h>

+ Inheritance diagram for playlist_callback_impl_base:

Public Member Functions

 playlist_callback_impl_base (t_uint32 p_flags=0)
 
 ~playlist_callback_impl_base ()
 
void on_default_format_changed ()
 
void on_item_ensure_visible (t_size p_playlist, t_size p_idx)
 
void on_item_focus_change (t_size p_playlist, t_size p_from, t_size p_to)
 
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)
 
void on_items_modified (t_size p_playlist, const bit_array &p_mask)
 
void on_items_modified_fromplayback (t_size p_playlist, const bit_array &p_mask, play_control::t_display_level p_level)
 
void on_items_removed (t_size p_playlist, const bit_array &p_mask, t_size p_old_count, t_size p_new_count)
 
void on_items_removing (t_size p_playlist, const bit_array &p_mask, t_size p_old_count, t_size p_new_count)
 
void on_items_reordered (t_size p_playlist, const t_size *p_order, t_size p_count)
 
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)
 
void on_items_selection_change (t_size p_playlist, const bit_array &p_affected, const bit_array &p_state)
 
void on_playback_order_changed (t_size p_new_index)
 
void on_playlist_activate (t_size p_old, t_size p_new)
 
void on_playlist_created (t_size p_index, const char *p_name, t_size p_name_len)
 
void on_playlist_locked (t_size p_playlist, bool p_locked)
 
void on_playlist_renamed (t_size p_index, const char *p_new_name, t_size p_new_name_len)
 
void on_playlists_removed (const bit_array &p_mask, t_size p_old_count, t_size p_new_count)
 
void on_playlists_removing (const bit_array &p_mask, t_size p_old_count, t_size p_new_count)
 
void on_playlists_reorder (const t_size *p_order, t_size p_count)
 
void set_callback_flags (t_uint32 p_flags)
 

Additional Inherited Members

- Public Types inherited from playlist_callback
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
}
 
- Protected Member Functions inherited from playlist_callback
 playlist_callback ()
 
 ~playlist_callback ()
 

Detailed Description

playlist_callback implementation helper - registers itself on creation / unregisters on destruction. Must not be instantiated statically!

Definition at line 628 of file playlist.h.

Constructor & Destructor Documentation

playlist_callback_impl_base::playlist_callback_impl_base ( t_uint32  p_flags = 0)
inline

Definition at line 630 of file playlist.h.

630  {
631  static_api_ptr_t<playlist_manager>()->register_callback(this,p_flags);
632  }
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533
playlist_callback_impl_base::~playlist_callback_impl_base ( )
inline

Definition at line 633 of file playlist.h.

633  {
634  static_api_ptr_t<playlist_manager>()->unregister_callback(this);
635  }
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533

Member Function Documentation

void playlist_callback_impl_base::on_default_format_changed ( )
inlinevirtual

Implements playlist_callback.

Definition at line 661 of file playlist.h.

661 {}
void playlist_callback_impl_base::on_item_ensure_visible ( t_size  p_playlist,
t_size  p_idx 
)
inlinevirtual

Implements playlist_callback.

Definition at line 652 of file playlist.h.

652 {}
void playlist_callback_impl_base::on_item_focus_change ( t_size  p_playlist,
t_size  p_from,
t_size  p_to 
)
inlinevirtual

Implements playlist_callback.

Definition at line 645 of file playlist.h.

645 {}
void playlist_callback_impl_base::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 
)
inlinevirtual

Implements playlist_callback.

Definition at line 640 of file playlist.h.

640 {}
void playlist_callback_impl_base::on_items_modified ( t_size  p_playlist,
const bit_array p_mask 
)
inlinevirtual

Implements playlist_callback.

Definition at line 647 of file playlist.h.

647 {}
void playlist_callback_impl_base::on_items_modified_fromplayback ( t_size  p_playlist,
const bit_array p_mask,
play_control::t_display_level  p_level 
)
inlinevirtual

Implements playlist_callback.

Definition at line 648 of file playlist.h.

648 {}
void playlist_callback_impl_base::on_items_removed ( t_size  p_playlist,
const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
inlinevirtual

Implements playlist_callback.

Definition at line 643 of file playlist.h.

643 {}
void playlist_callback_impl_base::on_items_removing ( t_size  p_playlist,
const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
inlinevirtual

Implements playlist_callback.

Definition at line 642 of file playlist.h.

642 {}
void playlist_callback_impl_base::on_items_reordered ( t_size  p_playlist,
const t_size p_order,
t_size  p_count 
)
inlinevirtual

Implements playlist_callback.

Definition at line 641 of file playlist.h.

641 {}
void playlist_callback_impl_base::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 
)
inlinevirtual

Implements playlist_callback.

Definition at line 650 of file playlist.h.

650 {}
void playlist_callback_impl_base::on_items_selection_change ( t_size  p_playlist,
const bit_array p_affected,
const bit_array p_state 
)
inlinevirtual

Implements playlist_callback.

Definition at line 644 of file playlist.h.

644 {}
void playlist_callback_impl_base::on_playback_order_changed ( t_size  p_new_index)
inlinevirtual

Implements playlist_callback.

Definition at line 662 of file playlist.h.

662 {}
void playlist_callback_impl_base::on_playlist_activate ( t_size  p_old,
t_size  p_new 
)
inlinevirtual

Implements playlist_callback.

Definition at line 654 of file playlist.h.

654 {}
void playlist_callback_impl_base::on_playlist_created ( t_size  p_index,
const char *  p_name,
t_size  p_name_len 
)
inlinevirtual

Implements playlist_callback.

Definition at line 655 of file playlist.h.

655 {}
void playlist_callback_impl_base::on_playlist_locked ( t_size  p_playlist,
bool  p_locked 
)
inlinevirtual

Implements playlist_callback.

Definition at line 663 of file playlist.h.

663 {}
void playlist_callback_impl_base::on_playlist_renamed ( t_size  p_index,
const char *  p_new_name,
t_size  p_new_name_len 
)
inlinevirtual

Implements playlist_callback.

Definition at line 659 of file playlist.h.

659 {}
void playlist_callback_impl_base::on_playlists_removed ( const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
inlinevirtual

Implements playlist_callback.

Definition at line 658 of file playlist.h.

658 {}
void playlist_callback_impl_base::on_playlists_removing ( const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
inlinevirtual

Implements playlist_callback.

Definition at line 657 of file playlist.h.

657 {}
void playlist_callback_impl_base::on_playlists_reorder ( const t_size p_order,
t_size  p_count 
)
inlinevirtual

Implements playlist_callback.

Definition at line 656 of file playlist.h.

656 {}
void playlist_callback_impl_base::set_callback_flags ( t_uint32  p_flags)
inline

Definition at line 636 of file playlist.h.

636  {
637  static_api_ptr_t<playlist_manager>()->modify_callback(this,p_flags);
638  }
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533

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