Ags.Config¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
build_id |
r |
||
flags |
r |
||
gobject |
r |
||
key_file |
r |
||
obj_mutex |
r |
||
version |
r |
Class Details¶
- class Ags.Config(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_instance()¶
- Returns:
the config instance
- Return type:
Get config instance.
New in version 3.0.0.
- classmethod new()¶
- Returns:
the new
Ags.Config
.- Return type:
Create a new instance of
Ags.Config
.New in version 3.0.0.
- clear()¶
Clears configuration.
New in version 3.0.0.
- get_value(group, key)¶
- Parameters:
- Returns:
the property’s value
- Return type:
Retrieve config by group and key.
New in version 3.0.0.
- load_defaults()¶
Load configuration from default values.
New in version 3.0.0.
- load_from_data(buffer, buffer_length)¶
-
Read configuration in memory.
New in version 3.0.0.
- load_from_file(filename)¶
- Parameters:
filename (
str
) – the configuration file
Load configuration from filename.
New in version 3.0.0.
- save()¶
Save configuration.
New in version 3.0.0.
- set_value(group, key, value)¶
- Parameters:
Set config by group and key, applying value.
New in version 3.0.0.
- to_data(buffer, buffer_length)¶
-
Save configuration.
New in version 3.0.0.
- do_get_value(group, key) virtual¶
- Parameters:
- Returns:
the property’s value
- Return type:
Retrieve config by group and key.
New in version 3.0.0.
- do_load_defaults() virtual¶
Load configuration from default values.
New in version 3.0.0.
Signal Details¶
- Ags.Config.signals.get_value(config, group, key)¶
- Signal Name:
get-value
- Flags:
- Parameters:
config (
Ags.Config
) – The object which received the signalgroup (
str
) – the group to retrieve fromkey (
str
) – the key to get
- Returns:
the value
- Return type:
The
::get-value
signal notifies about value been getting.New in version 3.0.0.
- Ags.Config.signals.load_defaults(config)¶
- Signal Name:
load-defaults
- Flags:
- Parameters:
config (
Ags.Config
) – The object which received the signal
The
::load-defaults
signal notifies about loading defaultsNew in version 3.0.0.
- Ags.Config.signals.set_value(config, group, key, value)¶
- Signal Name:
set-value
- Flags:
- Parameters:
config (
Ags.Config
) – The object which received the signalgroup (
str
) – the group to apply tokey (
str
) – the key to setvalue (
str
) – the value to apply
The
::set-value
signal notifies about value been setting.New in version 3.0.0.