Top | ![]() |
![]() |
![]() |
![]() |
gpointer | (*BtSettingsFactory) () |
gchar * | bt_settings_determine_audiosink_name () |
BtSettings * | bt_settings_make () |
void | bt_settings_set_factory () |
gchar * | audiosink | Read / Write |
guint | channels | Read / Write |
gboolean | coherence-upnp-active | Read / Write |
guint | coherence-upnp-port | Read / Write |
gchar * | grid-density | Read / Write |
gchar * | missing-machines | Read / Write |
guint | news-seen | Read / Write |
gchar * | presented-tips | Read / Write |
gchar * | record-folder | Read / Write |
gchar * | sample-folder | Read / Write |
guint | sample-rate | Read / Write |
gboolean | show-tips | Read / Write |
gchar * | song-folder | Read / Write |
gboolean | statusbar-hide | Read / Write |
gchar * | system-audiosink | Read |
gboolean | tabs-hide | Read / Write |
gboolean | toolbar-hide | Read / Write |
gchar * | toolbar-style | Read |
gint | window-height | Read / Write |
gint | window-width | Read / Write |
gint | window-xpos | Read / Write |
gint | window-ypos | Read / Write |
Under the gnome platform GConf is a locical choice for settings managment.
Unfortunately there currently is no port of GConf for other platforms.
This class wraps the settings management. Depending on what settings managment
capabillities the configure
script find on the system one of the
subclasses (BtGConfSettings,BtPlainfileSettings) will be used.
In any case it is always sufficient to talk to this class instance. Single
settings are accessed via normat g_object_get()
and g_object_set()
calls. If
the backends supports it changes in the settings will be notified to the
application by the GObject::notify signal.
gpointer
(*BtSettingsFactory) (void
);
Factory method that creates a new settings instance.
gchar *
bt_settings_determine_audiosink_name (const BtSettings * const self
);
Check the settings for the configured audio sink. Pick a fallback if none has been chosen. Verify that the sink works.
BtSettings *
bt_settings_make (void
);
Create a new instance. The type of the settings depends on the subsystem found during configuration run.
Settings are implemented as a singleton. Thus the first invocation will create the object and further calls will just give back a reference.
void
bt_settings_set_factory (BtSettingsFactory factory
);
Set a factory method that creates a new settings instance. This is currently only used by the unit tests to exercise the applications under various conditions. Normal applications should NOT use it.
“audiosink”
property “audiosink” gchar *
audio output gstreamer element.
Flags: Read / Write
Default value: "autoaudiosink"
“channels”
property “channels” guint
number of audio output channels.
Flags: Read / Write
Allowed values: [1,2]
Default value: 2
“coherence-upnp-active”
property “coherence-upnp-active” gboolean
activate Coherence UPnP based playback controller.
Flags: Read / Write
Default value: FALSE
“coherence-upnp-port”
property “coherence-upnp-port” guint
the port number for the communication with the coherence backend.
Flags: Read / Write
Default value: 7654
“grid-density”
property “grid-density” gchar *
machine view grid detail level.
Flags: Read / Write
Default value: "low"
“missing-machines”
property “missing-machines” gchar *
list of tip-numbers that were shown already.
Flags: Read / Write
Default value: NULL
“news-seen”
property “news-seen” guint
version number for that the user has seen the news.
Flags: Read / Write
Default value: 0
“presented-tips”
property “presented-tips” gchar *
list of missing machines to ignore.
Flags: Read / Write
Default value: NULL
“record-folder”
property “record-folder” gchar *
default directory for recordings.
Flags: Read / Write
Default value: "/home/buildd"
“sample-folder”
property “sample-folder” gchar *
default directory for sample-waveforms.
Flags: Read / Write
Default value: "/home/buildd"
“sample-rate”
property “sample-rate” guint
audio output sample-rate.
Flags: Read / Write
Allowed values: [1,96000]
Default value: 44100
“show-tips”
property “show-tips” gboolean
show tips on startup.
Flags: Read / Write
Default value: TRUE
“song-folder”
property “song-folder” gchar *
default directory for songs.
Flags: Read / Write
Default value: "/home/buildd"
“statusbar-hide”
property “statusbar-hide” gboolean
hide bottom statusbar.
Flags: Read / Write
Default value: FALSE
“system-audiosink”
property “system-audiosink” gchar *
system audio output gstreamer element.
Flags: Read
Default value: "autoaudiosink"
“tabs-hide”
property “tabs-hide” gboolean
hide main page tabs.
Flags: Read / Write
Default value: FALSE
“toolbar-hide”
property “toolbar-hide” gboolean
hide main toolbar.
Flags: Read / Write
Default value: FALSE
“toolbar-style”
property “toolbar-style” gchar *
system tolbar style.
Flags: Read
Default value: "both"
“window-height”
property “window-height” gint
last application window height.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“window-width”
property “window-width” gint
last application window width.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“window-xpos”
property “window-xpos” gint
last application window x-position.
Flags: Read / Write
Default value: 0