foobar2000 SDK  2015-08-03
Public Member Functions
icon_remappingabstract

#include <icon_remap.h>

+ Inheritance diagram for icon_remapping:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (icon_remapping)
 
virtual bool query (const char *p_extension, pfc::string_base &p_iconname)=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

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

Detailed Description

New in 0.9.5; allows your file format to use another icon than <extension>.ico when registering the file type with Windows shell.
Implementation: use icon_remapping_impl, or simply: static service_factory_single_t<icon_remapping_impl> myicon("ext","iconname.ico");.

Definition at line 3 of file icon_remap.h.

Member Function Documentation

icon_remapping::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( icon_remapping  )
virtual bool icon_remapping::query ( const char *  p_extension,
pfc::string_base p_iconname 
)
pure virtual
Parameters
p_extensionFile type extension being queried.
p_iconnameReceives the icon name to use, including the .ico extension.
Returns
True when p_iconname has been set, false if we don't recognize the specified extension.

Implemented in icon_remapping_impl, and icon_remapping_wildcard_impl.


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