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

#include <componentversion.h>

+ Inheritance diagram for component_installation_validator_filename:

Public Member Functions

 component_installation_validator_filename (const char *dllName)
 
bool is_installed_correctly ()
 
- 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

const char *const m_dllName
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Static Public Member Functions inherited from component_installation_validator
static bool have_other_file (const char *fn)
 
static bool test_my_name (const char *fn)
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Simple implementation of component_installation_validator that makes sure that our component DLL has not been renamed around by idiot users.

Definition at line 82 of file componentversion.h.

Constructor & Destructor Documentation

component_installation_validator_filename::component_installation_validator_filename ( const char *  dllName)
inline

Definition at line 84 of file componentversion.h.

84 : m_dllName(dllName) {}

Member Function Documentation

bool component_installation_validator_filename::is_installed_correctly ( )
inlinevirtual

Implements component_installation_validator.

Definition at line 85 of file componentversion.h.

85  {
86  return test_my_name(m_dllName);
87  }
static bool test_my_name(const char *fn)

Field Documentation

const char* const component_installation_validator_filename::m_dllName
private

Definition at line 89 of file componentversion.h.


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