foobar2000 SDK  2015-08-03
Public Member Functions
advconfig_checkbox_factory_t< p_is_radio, prefFlags >

#include <advconfig.h>

+ Inheritance diagram for advconfig_checkbox_factory_t< p_is_radio, prefFlags >:

Public Member Functions

 advconfig_checkbox_factory_t (const char *p_name, const GUID &p_guid, const GUID &p_parent, double p_priority, bool p_initialstate)
 
bool get () const
 
 operator bool () const
 
bool operator= (bool val)
 
void set (bool val)
 
- Public Member Functions inherited from service_factory_single_t< advconfig_entry_checkbox_impl< p_is_radio, prefFlags > >
advconfig_entry_checkbox_impl< p_is_radio, prefFlags > & get_static_instance ()
 
const advconfig_entry_checkbox_impl< p_is_radio, prefFlags > & get_static_instance () const
 
 TEMPLATE_CONSTRUCTOR_FORWARD_FLOOD (service_factory_single_t, g_instance) void instance_create(service_ptr_t< service_base > &p_out)
 
- Public Member Functions inherited from service_factory_base_t< advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::t_interface_entrypoint >
 service_factory_base_t ()
 
- Public Member Functions inherited from service_factory_base
const GUIDget_class_guid () const
 
virtual void instance_create (service_ptr_t< service_base > &p_out)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from service_factory_base
static bool enum_create (service_ptr_t< service_base > &p_out, service_class_ref p_class, t_size p_index)
 
static service_class_ref enum_find_class (const GUID &p_guid)
 
static t_size enum_get_count (service_class_ref p_class)
 
static bool is_service_present (const GUID &g)
 
- Data Fields inherited from service_factory_base
service_factory_base__internal__next
 
- Static Public Attributes inherited from service_factory_base
static service_factory_base__internal__list = NULL
 
- Protected Member Functions inherited from service_factory_base
 service_factory_base (const GUID &p_guid, service_factory_base *&factoryList)
 
 ~service_factory_base ()
 

Detailed Description

template<bool p_is_radio, uint32_t prefFlags = 0>
class advconfig_checkbox_factory_t< p_is_radio, prefFlags >

Service factory helper around standard advconfig_entry_checkbox implementation. Use this class to register your own Advanced Preferences checkbox/radiocheckbox entries.
Usage: static advconfig_entry_checkbox<isRadioBox> mybox(name, itemID, parentID, priority, initialstate);.

Definition at line 140 of file advconfig.h.

Constructor & Destructor Documentation

template<bool p_is_radio, uint32_t prefFlags = 0>
advconfig_checkbox_factory_t< p_is_radio, prefFlags >::advconfig_checkbox_factory_t ( const char *  p_name,
const GUID p_guid,
const GUID p_parent,
double  p_priority,
bool  p_initialstate 
)
inline

Definition at line 142 of file advconfig.h.

143  : service_factory_single_t<advconfig_entry_checkbox_impl<p_is_radio, prefFlags> >(p_name,p_guid,p_parent,p_priority,p_initialstate) {}

Member Function Documentation

template<bool p_is_radio, uint32_t prefFlags = 0>
bool advconfig_checkbox_factory_t< p_is_radio, prefFlags >::get ( ) const
inline

Definition at line 145 of file advconfig.h.

145 {return this->get_static_instance().get_state_();}
advconfig_entry_checkbox_impl< p_is_radio, prefFlags > & get_static_instance()
Definition: service.h:629
template<bool p_is_radio, uint32_t prefFlags = 0>
advconfig_checkbox_factory_t< p_is_radio, prefFlags >::operator bool ( ) const
inline

Definition at line 147 of file advconfig.h.

147 {return get();}
template<bool p_is_radio, uint32_t prefFlags = 0>
bool advconfig_checkbox_factory_t< p_is_radio, prefFlags >::operator= ( bool  val)
inline

Definition at line 148 of file advconfig.h.

148 {set(val); return val;}
template<bool p_is_radio, uint32_t prefFlags = 0>
void advconfig_checkbox_factory_t< p_is_radio, prefFlags >::set ( bool  val)
inline

Definition at line 146 of file advconfig.h.

146 {this->get_static_instance().set_state(val);}
advconfig_entry_checkbox_impl< p_is_radio, prefFlags > & get_static_instance()
Definition: service.h:629

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