foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
icon_remapping_impl

#include <icon_remap.h>

+ Inheritance diagram for icon_remapping_impl:

Public Member Functions

 icon_remapping_impl (const char *p_extension, const char *p_iconname)
 
bool query (const char *p_extension, pfc::string_base &p_iconname)
 
- Public Member Functions inherited from icon_remapping
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (icon_remapping)
 
- 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 ()
 

Private Attributes

pfc::string8 m_extension
 
pfc::string8 m_iconname
 

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

Standard implementation of icon_remapping.

Definition at line 14 of file icon_remap.h.

Constructor & Destructor Documentation

icon_remapping_impl::icon_remapping_impl ( const char *  p_extension,
const char *  p_iconname 
)
inline

Definition at line 16 of file icon_remap.h.

16 : m_extension(p_extension), m_iconname(p_iconname) {}
pfc::string8 m_extension
Definition: icon_remap.h:25
pfc::string8 m_iconname
Definition: icon_remap.h:25

Member Function Documentation

bool icon_remapping_impl::query ( const char *  p_extension,
pfc::string_base p_iconname 
)
inlinevirtual
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.

Implements icon_remapping.

Definition at line 17 of file icon_remap.h.

17  {
18  if (pfc::stricmp_ascii(p_extension,m_extension) == 0) {
19  p_iconname = m_iconname; return true;
20  } else {
21  return false;
22  }
23  }
pfc::string8 m_extension
Definition: icon_remap.h:25
pfc::string8 m_iconname
Definition: icon_remap.h:25
int stricmp_ascii(const char *s1, const char *s2)

Field Documentation

pfc::string8 icon_remapping_impl::m_extension
private

Definition at line 25 of file icon_remap.h.

pfc::string8 icon_remapping_impl::m_iconname
private

Definition at line 25 of file icon_remap.h.


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