foobar2000 SDK
2015-08-03
|
#include <info_lookup_handler.h>
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 () | |
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.
anonymous enum |
info_lookup_handler::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | info_lookup_handler | ) |
|
pure virtual |
Returns one or more of flag_track_lookup, and flag_album_lookup.
|
pure virtual |
|
pure virtual |
Retrieves human-readable name of the lookup handler to display in user interface.
|
pure virtual |
Performs a lookup. Creates a modeless dialog and returns immediately.
p_items | Items to look up. |
p_notify | Callback 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_parent | Parent window for the lookup dialog. Caller will typically disable the window while lookup is in progress and enable it back when completion is signaled. |