foobar2000 SDK  2015-01-14
Private Member Functions
metadb_index_managerabstract

#include <metadb.h>

+ Inheritance diagram for metadb_index_manager:

Private Member Functions

virtual void dispatch_global_refresh ()=0
 
virtual void dispatch_refresh (const GUID &index_id, const pfc::list_base_const_t< metadb_index_hash > &hashes)=0
 
void dispatch_refresh (const GUID &index_id, const metadb_index_hash &hash)
 
virtual void erase_orphaned_data (const GUID &index_id)=0
 
virtual void get_all_hashes (const GUID &index_id, pfc::list_base_t< metadb_index_hash > &out)=0
 
virtual void get_ML_handles (const GUID &index_id, const metadb_index_hash &hash, metadb_handle_list_ref out)=0
 
virtual void get_user_data (const GUID &index_id, const metadb_index_hash &hash, mem_block_container &out)=0
 
t_size get_user_data_here (const GUID &index_id, const metadb_index_hash &hash, void *out, t_size outSize)
 
template<typename t_array >
void get_user_data_t (const GUID &index_id, const metadb_index_hash &hash, t_array &out)
 
virtual bool have_orphaned_data (const GUID &index_id)=0
 
virtual FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(metadb_index_manager) public void remove (const GUID &index_id)=0
 
virtual void save_index_data (const GUID &index_id)=0
 
virtual void set_user_data (const GUID &index_id, const metadb_index_hash &hash, const void *data, t_size dataSize)=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

Since
1.1

Definition at line 346 of file metadb.h.

Member Function Documentation

virtual void metadb_index_manager::dispatch_global_refresh ( )
privatepure virtual
virtual void metadb_index_manager::dispatch_refresh ( const GUID index_id,
const pfc::list_base_const_t< metadb_index_hash > &  hashes 
)
privatepure virtual
void metadb_index_manager::dispatch_refresh ( const GUID index_id,
const metadb_index_hash hash 
)
inlineprivate

Definition at line 368 of file metadb.h.

368  {
370  dispatch_refresh(index_id, l);
371  }
virtual void dispatch_refresh(const GUID &index_id, const pfc::list_base_const_t< metadb_index_hash > &hashes)=0
virtual void metadb_index_manager::erase_orphaned_data ( const GUID index_id)
privatepure virtual

Deletes no longer needed index user data files.
For use with index IDs that are not currently registered only.

virtual void metadb_index_manager::get_all_hashes ( const GUID index_id,
pfc::list_base_t< metadb_index_hash > &  out 
)
privatepure virtual

Retrieves all known hash values for this index.

virtual void metadb_index_manager::get_ML_handles ( const GUID index_id,
const metadb_index_hash hash,
metadb_handle_list_ref  out 
)
privatepure virtual

Efficiently retrieves metadb_handles of items present in the Media Library matching the specified index value.
This can be called from the app main thread only (interfaces with the library_manager API).

virtual void metadb_index_manager::get_user_data ( const GUID index_id,
const metadb_index_hash hash,
mem_block_container out 
)
privatepure virtual
t_size metadb_index_manager::get_user_data_here ( const GUID index_id,
const metadb_index_hash hash,
void *  out,
t_size  outSize 
)
inlineprivate

Definition at line 360 of file metadb.h.

360  {
361  mem_block_container_temp_impl ref(out, outSize);
362  get_user_data(index_id, hash, ref);
363  return ref.get_size();
364  }
virtual void get_user_data(const GUID &index_id, const metadb_index_hash &hash, mem_block_container &out)=0
template<typename t_array >
void metadb_index_manager::get_user_data_t ( const GUID index_id,
const metadb_index_hash hash,
t_array &  out 
)
inlineprivate

Definition at line 355 of file metadb.h.

355  {
357  get_user_data(index_id, hash, ref);
358  }
virtual void get_user_data(const GUID &index_id, const metadb_index_hash &hash, mem_block_container &out)=0
virtual bool metadb_index_manager::have_orphaned_data ( const GUID index_id)
privatepure virtual

Determines whether a no longer needed user data file for this index exists.
For use with index IDs that are not currently registered only.

virtual FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (metadb_index_manager) public void metadb_index_manager::remove ( const GUID index_id)
privatepure virtual
virtual void metadb_index_manager::save_index_data ( const GUID index_id)
privatepure virtual

Saves index user data file now. You normally don't need to call this; it's done automatically when saving foobar2000 configuration.
This will throw exceptions in case of a failure (out of disk space etc).

virtual void metadb_index_manager::set_user_data ( const GUID index_id,
const metadb_index_hash hash,
const void *  data,
t_size  dataSize 
)
privatepure virtual

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