foobar2000 SDK  2015-08-03
Private Member Functions
autoplaylist_clientabstract

#include <autoplaylist.h>

+ Inheritance diagram for autoplaylist_client:

Private Member Functions

virtual FB2K_MAKE_SERVICE_INTERFACE(autoplaylist_client, service_base) public void filter (metadb_handle_list_cref data, bool *out)=0
 
virtual void get_configuration (stream_writer *p_stream, abort_callback &p_abort)=0
 
template<typename t_array >
void get_configuration (t_array &p_out)
 
virtual void show_ui (t_size p_source_playlist)=0
 
virtual bool sort (metadb_handle_list_cref p_items, t_size *p_orderbuffer)=0
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Main class controlling autoplaylist behaviors. Implemented by autoplaylist client in scenarios where simple query/sort strings are not enough (core provides a standard implementation for simple queries).

Definition at line 14 of file autoplaylist.h.

Member Function Documentation

virtual FB2K_MAKE_SERVICE_INTERFACE (autoplaylist_client,service_base) public void autoplaylist_client::filter ( metadb_handle_list_cref  data,
bool *  out 
)
privatepure virtual

Provides a boolean mask of which items from the specified list should appear in this autoplaylist.

virtual void autoplaylist_client::get_configuration ( stream_writer p_stream,
abort_callback p_abort 
)
privatepure virtual

Retrieves your configuration data to be used later when re-instantiating your autoplaylist_client after a restart.

template<typename t_array >
void autoplaylist_client::get_configuration ( t_array &  p_out)
inlineprivate

Helper.

Definition at line 28 of file autoplaylist.h.

28  {
29  PFC_STATIC_ASSERT( sizeof(p_out[0]) == 1 );
30  typedef pfc::array_t<t_uint8,pfc::alloc_fast_aggressive> t_temp; t_temp temp;
32  p_out = temp;
33  }
abort_callback_impl abort_callback_dummy
virtual void get_configuration(stream_writer *p_stream, abort_callback &p_abort)=0
Retrieves your configuration data to be used later when re-instantiating your autoplaylist_client aft...
virtual void autoplaylist_client::show_ui ( t_size  p_source_playlist)
privatepure virtual
virtual bool autoplaylist_client::sort ( metadb_handle_list_cref  p_items,
t_size p_orderbuffer 
)
privatepure virtual

Return true when you have filled p_orderbuffer with a permutation to apply to p_items, false when you don't support sorting (core's own sort scheme will be applied).


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