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

#include <advconfig.h>

+ Inheritance diagram for advconfig_entry_string_impl:

Public Member Functions

 advconfig_entry_string_impl (const char *p_name, const GUID &p_guid, const GUID &p_parent, double p_priority, const char *p_initialstate, t_uint32 p_prefFlags)
 
void get_default_state (pfc::string_base &out)
 
t_uint32 get_flags ()
 
GUID get_guid ()
 
void get_name (pfc::string_base &p_out)
 
GUID get_parent ()
 
t_uint32 get_preferences_flags ()
 
double get_sort_priority ()
 
void get_state (pfc::string_base &p_out)
 
void reset ()
 
void set_state (const char *p_string, t_size p_length=~0)
 
- Public Member Functions inherited from advconfig_entry_string
 FB2K_MAKE_SERVICE_INTERFACE (advconfig_entry_string, advconfig_entry)
 
void get_default_state_ (pfc::string_base &out)
 
- 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 pfc::string8 m_initialstate
 
const pfc::string8 m_name
 
const GUID m_parent
 
const t_uint32 m_prefFlags
 
const double m_priority
 
cfg_string m_state
 

Additional Inherited Members

- Public Types inherited from advconfig_entry_string
enum  { flag_is_integer = 1 << 0, flag_is_signed = 1 << 1 }
 
- 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

Standard advconfig_entry_string implementation. Use advconfig_string_factory to register your own string entries in Advanced Preferences instead of using this class directly.

Definition at line 158 of file advconfig.h.

Constructor & Destructor Documentation

advconfig_entry_string_impl::advconfig_entry_string_impl ( const char *  p_name,
const GUID p_guid,
const GUID p_parent,
double  p_priority,
const char *  p_initialstate,
t_uint32  p_prefFlags 
)
inline

Definition at line 160 of file advconfig.h.

161  : m_name(p_name), m_parent(p_parent), m_priority(p_priority), m_initialstate(p_initialstate), m_state(p_guid,p_initialstate), m_prefFlags(p_prefFlags) {}
cfg_string m_state
Definition: advconfig.h:174
const pfc::string8 m_name
Definition: advconfig.h:173
const double m_priority
Definition: advconfig.h:175
const t_uint32 m_prefFlags
Definition: advconfig.h:177
const pfc::string8 m_initialstate
Definition: advconfig.h:173
const GUID m_parent
Definition: advconfig.h:176

Member Function Documentation

void advconfig_entry_string_impl::get_default_state ( pfc::string_base out)
inline

Definition at line 170 of file advconfig.h.

170 {out = m_initialstate;}
const pfc::string8 m_initialstate
Definition: advconfig.h:173
t_uint32 advconfig_entry_string_impl::get_flags ( )
inlinevirtual

Implements advconfig_entry_string.

Definition at line 169 of file advconfig.h.

169 {return 0;}
GUID advconfig_entry_string_impl::get_guid ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 163 of file advconfig.h.

163 {return m_state.get_guid();}
cfg_string m_state
Definition: advconfig.h:174
GUID get_guid() const
Definition: cfg_var.h:59
void advconfig_entry_string_impl::get_name ( pfc::string_base p_out)
inlinevirtual

Implements advconfig_entry.

Definition at line 162 of file advconfig.h.

162 {p_out = m_name;}
const pfc::string8 m_name
Definition: advconfig.h:173
GUID advconfig_entry_string_impl::get_parent ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 164 of file advconfig.h.

164 {return m_parent;}
const GUID m_parent
Definition: advconfig.h:176
t_uint32 advconfig_entry_string_impl::get_preferences_flags ( )
inlinevirtual

Reimplemented from advconfig_entry_string_v2.

Definition at line 171 of file advconfig.h.

171 {return m_prefFlags;}
const t_uint32 m_prefFlags
Definition: advconfig.h:177
double advconfig_entry_string_impl::get_sort_priority ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 166 of file advconfig.h.

166 {return m_priority;}
const double m_priority
Definition: advconfig.h:175
void advconfig_entry_string_impl::get_state ( pfc::string_base p_out)
inlinevirtual

Implements advconfig_entry_string.

Definition at line 167 of file advconfig.h.

void ensure_main_thread()
Triggers a bug check if the calling thread is not the main app thread.
cfg_string m_state
Definition: advconfig.h:174
void advconfig_entry_string_impl::reset ( )
inlinevirtual

Implements advconfig_entry.

Definition at line 165 of file advconfig.h.

void ensure_main_thread()
Triggers a bug check if the calling thread is not the main app thread.
cfg_string m_state
Definition: advconfig.h:174
const pfc::string8 m_initialstate
Definition: advconfig.h:173
void advconfig_entry_string_impl::set_state ( const char *  p_string,
t_size  p_length = ~0 
)
inlinevirtual

Implements advconfig_entry_string.

Definition at line 168 of file advconfig.h.

168 {core_api::ensure_main_thread();m_state.set_string(p_string,p_length);}
void ensure_main_thread()
Triggers a bug check if the calling thread is not the main app thread.
void set_string(const char *p_string, t_size p_length=~0)
Definition: string8_impl.h:15
cfg_string m_state
Definition: advconfig.h:174

Field Documentation

const pfc::string8 advconfig_entry_string_impl::m_initialstate
private

Definition at line 173 of file advconfig.h.

const pfc::string8 advconfig_entry_string_impl::m_name
private

Definition at line 173 of file advconfig.h.

const GUID advconfig_entry_string_impl::m_parent
private

Definition at line 176 of file advconfig.h.

const t_uint32 advconfig_entry_string_impl::m_prefFlags
private

Definition at line 177 of file advconfig.h.

const double advconfig_entry_string_impl::m_priority
private

Definition at line 175 of file advconfig.h.

cfg_string advconfig_entry_string_impl::m_state
private

Definition at line 174 of file advconfig.h.


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