foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
advconfig_entry_checkbox_impl< p_is_radio, prefFlags >

#include <advconfig.h>

+ Inheritance diagram for advconfig_entry_checkbox_impl< p_is_radio, prefFlags >:

Public Member Functions

 advconfig_entry_checkbox_impl (const char *p_name, const GUID &p_guid, const GUID &p_parent, double p_priority, bool p_initialstate)
 
bool get_default_state ()
 
bool get_default_state_ () const
 
GUID get_guid ()
 
void get_name (pfc::string_base &p_out)
 
GUID get_parent ()
 
t_uint32 get_preferences_flags ()
 
double get_sort_priority ()
 
bool get_state ()
 
bool get_state_ () const
 
bool is_radio ()
 
void reset ()
 
void set_state (bool p_state)
 
- Public Member Functions inherited from advconfig_entry_checkbox
 FB2K_MAKE_SERVICE_INTERFACE (advconfig_entry_checkbox, advconfig_entry)
 
bool get_default_state_ ()
 
- Public Member Functions inherited from advconfig_entry
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (advconfig_entry)
 
t_uint32 get_preferences_flags_ ()
 
- 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 bool m_initialstate
 
pfc::string8 m_name
 
GUID m_parent
 
const double m_priority
 
cfg_bool m_state
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Static Public Member Functions inherited from advconfig_entry
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 inherited from advconfig_entry
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 } }
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

template<bool p_is_radio = false, uint32_t prefFlags = 0>
class advconfig_entry_checkbox_impl< p_is_radio, prefFlags >

Standard implementation of advconfig_entry_checkbox.
p_is_radio parameter controls whether we're implementing a checkbox or a radiocheckbox (see advconfig_entry_checkbox description for more details).

Definition at line 104 of file advconfig.h.

Constructor & Destructor Documentation

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

Definition at line 106 of file advconfig.h.

107  : m_name(p_name), m_initialstate(p_initialstate), m_state(p_guid,p_initialstate), m_parent(p_parent), m_priority(p_priority) {}
GUID m_parent
Definition: advconfig.h:125
const bool m_initialstate
Definition: advconfig.h:123
pfc::string8 m_name
Definition: advconfig.h:122
cfg_bool m_state
Definition: advconfig.h:124
const double m_priority
Definition: advconfig.h:126

Member Function Documentation

template<bool p_is_radio = false, uint32_t prefFlags = 0>
bool advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_default_state ( )
inline

Definition at line 118 of file advconfig.h.

118 {return m_initialstate;}
const bool m_initialstate
Definition: advconfig.h:123
template<bool p_is_radio = false, uint32_t prefFlags = 0>
bool advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_default_state_ ( ) const
inline

Definition at line 119 of file advconfig.h.

119 {return m_initialstate;}
const bool m_initialstate
Definition: advconfig.h:123
template<bool p_is_radio = false, uint32_t prefFlags = 0>
GUID advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_guid ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 110 of file advconfig.h.

110 {return m_state.get_guid();}
GUID get_guid() const
Definition: cfg_var.h:59
cfg_bool m_state
Definition: advconfig.h:124
template<bool p_is_radio = false, uint32_t prefFlags = 0>
void advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_name ( pfc::string_base p_out)
inlinevirtual

Implements advconfig_entry.

Definition at line 109 of file advconfig.h.

109 {p_out = m_name;}
pfc::string8 m_name
Definition: advconfig.h:122
template<bool p_is_radio = false, uint32_t prefFlags = 0>
GUID advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_parent ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 111 of file advconfig.h.

111 {return m_parent;}
GUID m_parent
Definition: advconfig.h:125
template<bool p_is_radio = false, uint32_t prefFlags = 0>
t_uint32 advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_preferences_flags ( )
inlinevirtual

Reimplemented from advconfig_entry_checkbox_v2.

Definition at line 120 of file advconfig.h.

120 {return prefFlags;}
template<bool p_is_radio = false, uint32_t prefFlags = 0>
double advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_sort_priority ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 116 of file advconfig.h.

116 {return m_priority;}
const double m_priority
Definition: advconfig.h:126
template<bool p_is_radio = false, uint32_t prefFlags = 0>
bool advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_state ( )
inlinevirtual

Implements advconfig_entry_checkbox.

Definition at line 113 of file advconfig.h.

113 {return m_state;}
cfg_bool m_state
Definition: advconfig.h:124
template<bool p_is_radio = false, uint32_t prefFlags = 0>
bool advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::get_state_ ( ) const
inline

Definition at line 117 of file advconfig.h.

117 {return m_state;}
cfg_bool m_state
Definition: advconfig.h:124
template<bool p_is_radio = false, uint32_t prefFlags = 0>
bool advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::is_radio ( )
inlinevirtual

Implements advconfig_entry_checkbox.

Definition at line 115 of file advconfig.h.

115 {return p_is_radio;}
template<bool p_is_radio = false, uint32_t prefFlags = 0>
void advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::reset ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 112 of file advconfig.h.

template<bool p_is_radio = false, uint32_t prefFlags = 0>
void advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::set_state ( bool  p_state)
inlinevirtual

Implements advconfig_entry_checkbox.

Definition at line 114 of file advconfig.h.

114 {m_state = p_state;}
cfg_bool m_state
Definition: advconfig.h:124

Field Documentation

template<bool p_is_radio = false, uint32_t prefFlags = 0>
const bool advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::m_initialstate
private

Definition at line 123 of file advconfig.h.

template<bool p_is_radio = false, uint32_t prefFlags = 0>
pfc::string8 advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::m_name
private

Definition at line 122 of file advconfig.h.

template<bool p_is_radio = false, uint32_t prefFlags = 0>
GUID advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::m_parent
private

Definition at line 125 of file advconfig.h.

template<bool p_is_radio = false, uint32_t prefFlags = 0>
const double advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::m_priority
private

Definition at line 126 of file advconfig.h.

template<bool p_is_radio = false, uint32_t prefFlags = 0>
cfg_bool advconfig_entry_checkbox_impl< p_is_radio, prefFlags >::m_state
private

Definition at line 124 of file advconfig.h.


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