foobar2000 SDK  2015-08-03
Protected Member Functions
playlist_callback_single_impl_base

#include <playlist.h>

+ Inheritance diagram for playlist_callback_single_impl_base:

Protected Member Functions

 playlist_callback_single_impl_base (t_uint32 p_flags=0)
 
 ~playlist_callback_single_impl_base ()
 
void on_default_format_changed ()
 
void on_item_ensure_visible (t_size p_idx)
 
void on_item_focus_change (t_size p_from, t_size p_to)
 
void on_items_added (t_size p_base, const pfc::list_base_const_t< metadb_handle_ptr > &p_data, const bit_array &p_selection)
 
void on_items_modified (const bit_array &p_mask)
 
void on_items_modified_fromplayback (const bit_array &p_mask, play_control::t_display_level p_level)
 
void on_items_removed (const bit_array &p_mask, t_size p_old_count, t_size p_new_count)
 
void on_items_removing (const bit_array &p_mask, t_size p_old_count, t_size p_new_count)
 
void on_items_reordered (const t_size *p_order, t_size p_count)
 
void on_items_replaced (const bit_array &p_mask, const pfc::list_base_const_t< playlist_callback::t_on_items_replaced_entry > &p_data)
 
void on_items_selection_change (const bit_array &p_affected, const bit_array &p_state)
 
void on_playback_order_changed (t_size p_new_index)
 
void on_playlist_locked (bool p_locked)
 
void on_playlist_renamed (const char *p_new_name, t_size p_new_name_len)
 
void on_playlist_switch ()
 
 PFC_CLASS_NOT_COPYABLE (playlist_callback_single_impl_base, playlist_callback_single_impl_base)
 
void set_callback_flags (t_uint32 p_flags)
 
- Protected Member Functions inherited from playlist_callback_single
 playlist_callback_single ()
 
 ~playlist_callback_single ()
 

Additional Inherited Members

- Public Types inherited from playlist_callback_single
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_switch = 1 << 10, flag_on_playlist_renamed = 1 << 11,
  flag_on_playlist_locked = 1 << 12, flag_on_default_format_changed = 1 << 13, flag_on_playback_order_changed = 1 << 14, flag_all = ~0
}
 

Detailed Description

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

Definition at line 667 of file playlist.h.

Constructor & Destructor Documentation

playlist_callback_single_impl_base::playlist_callback_single_impl_base ( t_uint32  p_flags = 0)
inlineprotected

Definition at line 669 of file playlist.h.

669  {
670  static_api_ptr_t<playlist_manager>()->register_callback(this,p_flags);
671  }
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533
playlist_callback_single_impl_base::~playlist_callback_single_impl_base ( )
inlineprotected

Definition at line 675 of file playlist.h.

675  {
676  static_api_ptr_t<playlist_manager>()->unregister_callback(this);
677  }
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_single_impl_base::on_default_format_changed ( )
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 695 of file playlist.h.

695 {}
void playlist_callback_single_impl_base::on_item_ensure_visible ( t_size  p_idx)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 689 of file playlist.h.

689 {}
void playlist_callback_single_impl_base::on_item_focus_change ( t_size  p_from,
t_size  p_to 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 685 of file playlist.h.

685 {}
void playlist_callback_single_impl_base::on_items_added ( t_size  p_base,
const pfc::list_base_const_t< metadb_handle_ptr > &  p_data,
const bit_array p_selection 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 680 of file playlist.h.

680 {}
void playlist_callback_single_impl_base::on_items_modified ( const bit_array p_mask)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 686 of file playlist.h.

686 {}
void playlist_callback_single_impl_base::on_items_modified_fromplayback ( const bit_array p_mask,
play_control::t_display_level  p_level 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 687 of file playlist.h.

687 {}
void playlist_callback_single_impl_base::on_items_removed ( const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 683 of file playlist.h.

683 {}
void playlist_callback_single_impl_base::on_items_removing ( const bit_array p_mask,
t_size  p_old_count,
t_size  p_new_count 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 682 of file playlist.h.

682 {}
void playlist_callback_single_impl_base::on_items_reordered ( const t_size p_order,
t_size  p_count 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 681 of file playlist.h.

681 {}
void playlist_callback_single_impl_base::on_items_replaced ( const bit_array p_mask,
const pfc::list_base_const_t< playlist_callback::t_on_items_replaced_entry > &  p_data 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 688 of file playlist.h.

688 {}
void playlist_callback_single_impl_base::on_items_selection_change ( const bit_array p_affected,
const bit_array p_state 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 684 of file playlist.h.

684 {}
void playlist_callback_single_impl_base::on_playback_order_changed ( t_size  p_new_index)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 696 of file playlist.h.

696 {}
void playlist_callback_single_impl_base::on_playlist_locked ( bool  p_locked)
inlineprotectedvirtual

Implements playlist_callback_single.

Reimplemented in playlist_lock_change_notify.

Definition at line 693 of file playlist.h.

693 {}
void playlist_callback_single_impl_base::on_playlist_renamed ( const char *  p_new_name,
t_size  p_new_name_len 
)
inlineprotectedvirtual

Implements playlist_callback_single.

Definition at line 692 of file playlist.h.

692 {}
void playlist_callback_single_impl_base::on_playlist_switch ( )
inlineprotectedvirtual

Implements playlist_callback_single.

Reimplemented in playlist_lock_change_notify.

Definition at line 691 of file playlist.h.

691 {}
playlist_callback_single_impl_base::PFC_CLASS_NOT_COPYABLE ( playlist_callback_single_impl_base  ,
playlist_callback_single_impl_base   
)
protected
void playlist_callback_single_impl_base::set_callback_flags ( t_uint32  p_flags)
inlineprotected

Definition at line 672 of file playlist.h.

672  {
673  static_api_ptr_t<playlist_manager>()->modify_callback(this,p_flags);
674  }
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: