foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions
dsp_entryabstract

#include <dsp.h>

+ Inheritance diagram for dsp_entry:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (dsp_entry)
 
virtual bool get_default_preset (dsp_preset &p_out)=0
 
virtual GUID get_guid ()=0
 
virtual void get_name (pfc::string_base &p_out)=0
 
virtual bool have_config_popup ()=0
 
virtual bool instantiate (service_ptr_t< dsp > &p_out, const dsp_preset &p_preset)=0
 
virtual bool show_config_popup (dsp_preset &p_data, HWND p_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 ()
 

Static Public Member Functions

static bool g_dsp_exists (const GUID &p_guid)
 
static bool g_get_default_preset (dsp_preset &p_out, const GUID &p_guid)
 
static bool g_get_interface (service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
 
static bool g_have_config_popup (const GUID &p_guid)
 
static bool g_have_config_popup (const dsp_preset &p_preset)
 
static bool g_instantiate (service_ptr_t< dsp > &p_out, const dsp_preset &p_preset)
 
static bool g_instantiate_default (service_ptr_t< dsp > &p_out, const GUID &p_guid)
 
static bool g_name_from_guid (pfc::string_base &p_out, const GUID &p_guid)
 
static bool g_show_config_popup (dsp_preset &p_preset, HWND p_parent)
 
static void g_show_config_popup_v2 (const dsp_preset &p_preset, HWND p_parent, dsp_preset_edit_callback &p_callback)
 

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

Definition at line 284 of file dsp.h.

Member Function Documentation

dsp_entry::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( dsp_entry  )
bool dsp_entry::g_dsp_exists ( const GUID p_guid)
static

Definition at line 103 of file dsp.cpp.

104 {
106  return g_get_interface(blah,p_guid);
107 }
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool dsp_entry::g_get_default_preset ( dsp_preset p_out,
const GUID p_guid 
)
static

Definition at line 109 of file dsp.cpp.

110 {
112  if (!g_get_interface(ptr,p_guid)) return false;
113  return ptr->get_default_preset(p_out);
114 }
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool dsp_entry::g_get_interface ( service_ptr_t< dsp_entry > &  p_out,
const GUID p_guid 
)
static

Definition at line 290 of file dsp.cpp.

291 {
294  e.reset();
295  while(e.next(ptr))
296  {
297  if (ptr->get_guid() == p_guid)
298  {
299  p_out = ptr;
300  return true;
301  }
302  }
303  return false;
304 }
void reset()
Definition: service.h:578
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool next(service_ptr_t< t_query > &p_out)
Definition: service.h:587
bool dsp_entry::g_have_config_popup ( const GUID p_guid)
static

Definition at line 258 of file dsp.cpp.

259 {
261  if (!g_get_interface(entry,p_guid)) return false;
262  return entry->have_config_popup();
263 }
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool dsp_entry::g_have_config_popup ( const dsp_preset p_preset)
static

Definition at line 265 of file dsp.cpp.

266 {
267  return g_have_config_popup(p_preset.get_owner());
268 }
static bool g_have_config_popup(const GUID &p_guid)
Definition: dsp.cpp:258
virtual GUID get_owner() const =0
bool dsp_entry::g_instantiate ( service_ptr_t< dsp > &  p_out,
const dsp_preset p_preset 
)
static

Definition at line 79 of file dsp.cpp.

80 {
82  if (!g_get_interface(ptr,p_preset.get_owner())) return false;
83  return ptr->instantiate(p_out,p_preset);
84 }
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
virtual GUID get_owner() const =0
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool dsp_entry::g_instantiate_default ( service_ptr_t< dsp > &  p_out,
const GUID p_guid 
)
static

Definition at line 86 of file dsp.cpp.

87 {
89  if (!g_get_interface(ptr,p_guid)) return false;
90  dsp_preset_impl preset;
91  if (!ptr->get_default_preset(preset)) return false;
92  return ptr->instantiate(p_out,preset);
93 }
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool dsp_entry::g_name_from_guid ( pfc::string_base p_out,
const GUID p_guid 
)
static

Definition at line 95 of file dsp.cpp.

96 {
98  if (!g_get_interface(ptr,p_guid)) return false;
99  ptr->get_name(p_out);
100  return true;
101 }
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool dsp_entry::g_show_config_popup ( dsp_preset p_preset,
HWND  p_parent 
)
static

Definition at line 270 of file dsp.cpp.

271 {
273  if (!g_get_interface(entry,p_preset.get_owner())) return false;
274  return entry->show_config_popup(p_preset,p_parent);
275 }
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
virtual GUID get_owner() const =0
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
void dsp_entry::g_show_config_popup_v2 ( const dsp_preset p_preset,
HWND  p_parent,
dsp_preset_edit_callback p_callback 
)
static

Definition at line 277 of file dsp.cpp.

277  {
279  if (g_get_interface(entry,p_preset.get_owner())) {
281  if (entry->service_query_t(entry_v2)) {
282  entry_v2->show_config_popup_v2(p_preset,p_parent,p_callback);
283  } else {
284  dsp_preset_impl temp(p_preset);
285  if (entry->show_config_popup(temp,p_parent)) p_callback.on_preset_changed(temp);
286  }
287  }
288 }
virtual void on_preset_changed(const dsp_preset &)=0
static bool g_get_interface(service_ptr_t< dsp_entry > &p_out, const GUID &p_guid)
Definition: dsp.cpp:290
virtual GUID get_owner() const =0
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
virtual bool dsp_entry::get_default_preset ( dsp_preset p_out)
pure virtual
virtual GUID dsp_entry::get_guid ( )
pure virtual
virtual void dsp_entry::get_name ( pfc::string_base p_out)
pure virtual
virtual bool dsp_entry::have_config_popup ( )
pure virtual
virtual bool dsp_entry::instantiate ( service_ptr_t< dsp > &  p_out,
const dsp_preset p_preset 
)
pure virtual
virtual bool dsp_entry::show_config_popup ( dsp_preset p_data,
HWND  p_parent 
)
pure virtual

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