info_lookup_handler Class Reference

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

#include <info_lookup_handler.h>

Inheritance diagram for info_lookup_handler:

service_base

List of all members.

Public Types

enum  { flag_album_lookup = 1 << 0, flag_track_lookup = 1 << 1 }
typedef info_lookup_handler t_interface_entrypoint
typedef info_lookup_handler t_interface
typedef service_base t_interface_parent

Public Member Functions

virtual void get_name (pfc::string_base &p_out)=0
 Retrieves human-readable name of the lookup handler to display in user interface.
virtual t_uint32 get_flags ()=0
 Returns one or more of flag_track_lookup, and flag_album_lookup.
virtual HICON get_icon (int p_width, int p_height)=0
virtual void lookup (const pfc::list_base_const_t< metadb_handle_ptr > &p_items, completion_notify_ptr p_notify, HWND p_parent)=0

Static Public Attributes

static const GUID class_guid = { 0x4fcfdab7, 0x55b5, 0x47d6, { 0xb1, 0x9d, 0xa4, 0xdc, 0x9f, 0xd7, 0x69, 0x4c } }


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.

Member Typedef Documentation

Reimplemented from service_base.


Member Enumeration Documentation

anonymous enum

Enumerator:
flag_album_lookup 
flag_track_lookup 


Member Function Documentation

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 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::lookup ( const pfc::list_base_const_t< metadb_handle_ptr > &  p_items,
completion_notify_ptr  p_notify,
HWND  p_parent 
) [pure virtual]

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

Parameters:
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.


Member Data Documentation

const GUID info_lookup_handler::class_guid = { 0x4fcfdab7, 0x55b5, 0x47d6, { 0xb1, 0x9d, 0xa4, 0xdc, 0x9f, 0xd7, 0x69, 0x4c } } [static]


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

Generated on Fri Apr 18 13:56:51 2008 for foobar2000 SDK by  doxygen 1.5.5