foobar2000 SDK  2015-01-14
Public Types | Public Member Functions
advconfig_entry_stringabstract

#include <advconfig.h>

+ Inheritance diagram for advconfig_entry_string:

Public Types

enum  { flag_is_integer = 1 << 0, flag_is_signed = 1 << 1 }
 
- Public Types inherited from service_base
typedef service_base t_interface
 

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (advconfig_entry_string, advconfig_entry)
 
void get_default_state_ (pfc::string_base &out)
 
virtual t_uint32 get_flags ()=0
 
virtual void get_state (pfc::string_base &p_out)=0
 
virtual void set_state (const char *p_string, t_size p_length=~0)=0
 
- Public Member Functions inherited from advconfig_entry
 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 ()
 

Additional Inherited Members

- 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

Creates a string/integer editbox entry in Advanced Preferences.
Implementation: see advconfig_entry_string_impl / advconfig_string_factory.

Definition at line 60 of file advconfig.h.

Member Enumeration Documentation

anonymous enum
Enumerator
flag_is_integer 
flag_is_signed 

Definition at line 68 of file advconfig.h.

Member Function Documentation

advconfig_entry_string::FB2K_MAKE_SERVICE_INTERFACE ( advconfig_entry_string  ,
advconfig_entry   
)
void advconfig_entry_string::get_default_state_ ( pfc::string_base out)

Definition at line 29 of file advconfig.cpp.

29  {
30  {
31  advconfig_entry_string_v2::ptr ex;
32  if (service_query_t(ex)) {ex->get_default_state(out); return;}
33  }
34  pfc::string8 backup;
35  get_state(backup);
36  reset();
37  get_state(out);
38  set_state(backup);
39 }
virtual void get_state(pfc::string_base &p_out)=0
virtual void reset()=0
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 void set_state(const char *p_string, t_size p_length=~0)=0
virtual t_uint32 advconfig_entry_string::get_flags ( )
pure virtual
virtual void advconfig_entry_string::get_state ( pfc::string_base p_out)
pure virtual
virtual void advconfig_entry_string::set_state ( const char *  p_string,
t_size  p_length = ~0 
)
pure virtual

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