foobar2000 SDK  2015-08-03
Public Member Functions | Private Member Functions
metadb_hint_listabstract

#include <metadb.h>

+ Inheritance diagram for metadb_hint_list:

Public Member Functions

virtual void add_hint (metadb_handle_ptr const &p_location, const file_info &p_info, const t_filestats &p_stats, bool p_freshflag)=0
 
virtual void add_hint_reader (const char *p_path, service_ptr_t< input_info_reader > const &p_reader, abort_callback &p_abort)=0
 
virtual void on_done ()=0
 
- 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 ()
 

Private Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (metadb_hint_list, service_base)
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Advanced interface for passing infos read from files to metadb backend. Use metadb_io_v2::create_hint_list() to instantiate.

Definition at line 77 of file metadb.h.

Member Function Documentation

virtual void metadb_hint_list::add_hint ( metadb_handle_ptr const &  p_location,
const file_info p_info,
const t_filestats &  p_stats,
bool  p_freshflag 
)
pure virtual

Adds a hint to the list.

Parameters
p_locationLocation of the item the hint applies to.
p_infofile_info object describing the item.
p_statsInformation about the file containing item the hint applies to.
p_freshflagSet to true if the info has been directly read from the file, false if it comes from another source such as a playlist file.
virtual void metadb_hint_list::add_hint_reader ( const char *  p_path,
service_ptr_t< input_info_reader > const &  p_reader,
abort_callback p_abort 
)
pure virtual

Reads info from specified info reader instance and adds hints. May throw an exception in case info read has failed.

metadb_hint_list::FB2K_MAKE_SERVICE_INTERFACE ( metadb_hint_list  ,
service_base   
)
private
virtual void metadb_hint_list::on_done ( )
pure virtual

Call this when you're done working with this metadb_hint_list instance, to apply hints and dispatch callbacks. If you don't call this, all added hints will be ignored.


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