foobar2000 SDK
2015-08-03
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
foobar2000
SDK
advconfig.cpp
Go to the documentation of this file.
1
#include "
foobar2000.h
"
2
3
4
t_uint32
advconfig_entry::get_preferences_flags_
() {
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
}
15
16
bool
advconfig_entry_checkbox::get_default_state_
() {
17
{
18
advconfig_entry_checkbox_v2::ptr ex;
19
if
(
service_query_t
(ex))
return
ex->get_default_state();
20
}
21
22
bool
backup = get_state();
23
reset
();
24
bool
rv = get_state();
25
set_state(backup);
26
return
rv;
27
}
28
29
void
advconfig_entry_string::get_default_state_
(
pfc::string_base
& out) {
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
}
pfc::string_base
Definition:
string_base.h:193
advconfig_entry::get_preferences_flags_
t_uint32 get_preferences_flags_()
Definition:
advconfig.cpp:4
advconfig_entry_checkbox::get_default_state_
bool get_default_state_()
Definition:
advconfig.cpp:16
pfc::string8_t< pfc::alloc_standard >
advconfig_entry::reset
virtual void reset()=0
foobar2000.h
service_base::service_query_t
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
advconfig_entry_string::get_default_state_
void get_default_state_(pfc::string_base &out)
Definition:
advconfig.cpp:29
t_uint32
uint32_t t_uint32
Definition:
int_types.h:5
Generated by
1.8.11