foobar2000 SDK  2015-01-14
Public Types | Public Member Functions
info_lookup_handlerabstract

#include <info_lookup_handler.h>

+ Inheritance diagram for info_lookup_handler:

Public Types

enum  { flag_album_lookup = 1 << 0, flag_track_lookup = 1 << 1 }
 
- Public Types inherited from service_base
typedef service_base t_interface
 

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (info_lookup_handler)
 
virtual t_uint32 get_flags ()=0
 
virtual HICON get_icon (int p_width, int p_height)=0
 
virtual void get_name (pfc::string_base &p_out)=0
 
virtual void lookup (metadb_handle_list_cref items, completion_notify::ptr notify, HWND parent)=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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Service used to access various external (online) track info lookup services, such as freedb, to update file tags with info retrieved from those services.

Definition at line 2 of file info_lookup_handler.h.

Member Enumeration Documentation

anonymous enum
Enumerator
flag_album_lookup 
flag_track_lookup 

Definition at line 4 of file info_lookup_handler.h.

Member Function Documentation

info_lookup_handler::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( info_lookup_handler  )
virtual t_uint32 info_lookup_handler::get_flags ( )
pure virtual

Returns one or more of flag_track_lookup, and flag_album_lookup.

virtual HICON info_lookup_handler::get_icon ( int  p_width,
int  p_height 
)
pure virtual
virtual void info_lookup_handler::get_name ( pfc::string_base p_out)
pure virtual

Retrieves human-readable name of the lookup handler to display in user interface.

virtual void info_lookup_handler::lookup ( metadb_handle_list_cref  items,
completion_notify::ptr  notify,
HWND  parent 
)
pure virtual

Performs a lookup. Creates a modeless dialog and returns immediately.

Parameters
p_itemsItems to look up.
p_notifyCallback to notify caller when the operation has completed. Call on_completion with status code 0 to signal failure/abort, or with code 1 to signal success / new infos in metadb.
p_parentParent window for the lookup dialog. Caller will typically disable the window while lookup is in progress and enable it back when completion is signaled.

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