foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions | Static Public Attributes
advconfig_entryabstract

#include <advconfig.h>

+ Inheritance diagram for advconfig_entry:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (advconfig_entry)
 
virtual GUID get_guid ()=0
 
virtual void get_name (pfc::string_base &p_out)=0
 
virtual GUID get_parent ()=0
 
t_uint32 get_preferences_flags_ ()
 
virtual double get_sort_priority ()=0
 
virtual void reset ()=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_find (service_ptr_t< advconfig_entry > &out, const GUID &id)
 
template<typename outptr >
static bool g_find_t (outptr &out, const GUID &id)
 

Static Public Attributes

static const GUID guid_branch_decoding = { 0x904c272b, 0x2317, 0x4c3c, { 0xb2, 0xff, 0xc5, 0xa0, 0x12, 0x5e, 0x2c, 0xc2 } }
 
static const GUID guid_branch_display = { 0x6c4bc1c8, 0xbaf4, 0x40c3, { 0x9d, 0xb1, 0x9, 0x50, 0x7f, 0xc, 0xc, 0xb9 } }
 
static const GUID guid_branch_playback = { 0xc48d430d, 0x112, 0x4922, { 0x97, 0x23, 0x28, 0x38, 0xc7, 0xd9, 0x7d, 0xd7 } }
 
static const GUID guid_branch_tagging = { 0xe8fe273f, 0xdd00, 0x476e, { 0xa7, 0x90, 0xe5, 0x9d, 0xf6, 0xb8, 0xf8, 0xd4 } }
 
static const GUID guid_branch_tools = { 0x35365484, 0xcc58, 0x4926, { 0x97, 0xe1, 0x5e, 0x63, 0xf3, 0xab, 0xb9, 0xe2 } }
 
static const GUID guid_root = { 0x34949f34, 0xe655, 0x4f09, { 0xba, 0x50, 0xfa, 0xeb, 0x4d, 0x9b, 0x77, 0x69 } }
 

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

Entrypoint class for adding items to Advanced Preferences page.
Implementations must derive from one of subclasses: advconfig_branch, advconfig_entry_checkbox, advconfig_entry_string.
Implementations are typically registered using static service_factory_single_t<myclass>, or using provided helper classes in case of standard implementations declared in this header.

Definition at line 4 of file advconfig.h.

Member Function Documentation

advconfig_entry::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( advconfig_entry  )
static bool advconfig_entry::g_find ( service_ptr_t< advconfig_entry > &  out,
const GUID id 
)
inlinestatic

Definition at line 14 of file advconfig.h.

14  {
15  service_enum_t<advconfig_entry> e; service_ptr_t<advconfig_entry> ptr; while(e.next(ptr)) { if (ptr->get_guid() == id) {out = ptr; return true;} } return false;
16  }
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
template<typename outptr >
static bool advconfig_entry::g_find_t ( outptr &  out,
const GUID id 
)
inlinestatic

Definition at line 18 of file advconfig.h.

18  {
20  if (!g_find(temp, id)) return false;
21  return temp->service_query_t(out);
22  }
static bool g_find(service_ptr_t< advconfig_entry > &out, const GUID &id)
Definition: advconfig.h:14
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
virtual GUID advconfig_entry::get_guid ( )
pure virtual
virtual void advconfig_entry::get_name ( pfc::string_base p_out)
pure virtual
virtual GUID advconfig_entry::get_parent ( )
pure virtual
t_uint32 advconfig_entry::get_preferences_flags_ ( )

Definition at line 4 of file advconfig.cpp.

4  {
5  {
6  advconfig_entry_string_v2::ptr ex;
7  if (service_query_t(ex)) return ex->get_preferences_flags();
8  }
9  {
10  advconfig_entry_checkbox_v2::ptr ex;
11  if (service_query_t(ex)) return ex->get_preferences_flags();
12  }
13  return 0;
14 }
bool service_query_t(service_ptr_t< T > &p_out)
Queries whether the object supports specific interface and retrieves a pointer to that interface...
Definition: service.h:350
virtual double advconfig_entry::get_sort_priority ( )
pure virtual
virtual void advconfig_entry::reset ( )
pure virtual

Field Documentation

FOOGUIDDECL const GUID advconfig_entry::guid_branch_decoding = { 0x904c272b, 0x2317, 0x4c3c, { 0xb2, 0xff, 0xc5, 0xa0, 0x12, 0x5e, 0x2c, 0xc2 } }
static

Definition at line 25 of file advconfig.h.

FOOGUIDDECL const GUID advconfig_entry::guid_branch_display = { 0x6c4bc1c8, 0xbaf4, 0x40c3, { 0x9d, 0xb1, 0x9, 0x50, 0x7f, 0xc, 0xc, 0xb9 } }
static

Definition at line 25 of file advconfig.h.

FOOGUIDDECL const GUID advconfig_entry::guid_branch_playback = { 0xc48d430d, 0x112, 0x4922, { 0x97, 0x23, 0x28, 0x38, 0xc7, 0xd9, 0x7d, 0xd7 } }
static

Definition at line 25 of file advconfig.h.

FOOGUIDDECL const GUID advconfig_entry::guid_branch_tagging = { 0xe8fe273f, 0xdd00, 0x476e, { 0xa7, 0x90, 0xe5, 0x9d, 0xf6, 0xb8, 0xf8, 0xd4 } }
static

Definition at line 25 of file advconfig.h.

FOOGUIDDECL const GUID advconfig_entry::guid_branch_tools = { 0x35365484, 0xcc58, 0x4926, { 0x97, 0xe1, 0x5e, 0x63, 0xf3, 0xab, 0xb9, 0xe2 } }
static

Definition at line 25 of file advconfig.h.

FOOGUIDDECL const GUID advconfig_entry::guid_root = { 0x34949f34, 0xe655, 0x4f09, { 0xba, 0x50, 0xfa, 0xeb, 0x4d, 0x9b, 0x77, 0x69 } }
static

Definition at line 24 of file advconfig.h.


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