Top | ![]() |
![]() |
![]() |
![]() |
GHashTable * | maliit_settings_entry_get_attributes () |
const gchar * | maliit_settings_entry_get_description () |
MaliitSettingsEntryType | maliit_settings_entry_get_entry_type () |
const gchar * | maliit_settings_entry_get_key () |
GVariant * | maliit_settings_entry_get_value () |
gboolean | maliit_settings_entry_is_value_valid () |
void | maliit_settings_entry_set_value () |
gboolean | maliit_settings_entry_is_current_value_valid () |
GHashTable * | attributes | Read / Write / Construct Only |
gchar * | description | Read / Write / Construct Only |
MaliitAttributeExtension * | extension | Write / Construct Only |
gchar * | extension-key | Read / Write / Construct Only |
MaliitSettingsEntryType | type | Read / Write / Construct Only |
gboolean | valid | Read / Write / Construct Only |
GVariant * | value | Read / Write / Construct Only |
The MaliitSettingsEntry is a class holding single plugin
setting. It can be one of several available types
(MaliitSettingsEntryType). It can also have some attributes like
value domain (MALIIT_SETTING_VALUE_DOMAIN()
), default value
(MALIIT_SETTING_DEFAULT_VALUE) and value ranges
(MALIIT_SETTING_VALUE_RANGE_MIN()
and
MALIIT_SETTING_VALUE_RANGE_MAX()
).
GHashTable *
maliit_settings_entry_get_attributes (MaliitSettingsEntry *entry
);
Gets attributes of the entry. The keys of the attributes are
MALIIT_SETTING_VALUE_DOMAIN()
,
MALIIT_SETTING_VALUE_DOMAIN_DESCRIPTIONS()
,
MALIIT_SETTING_VALUE_RANGE_MIN()
, MALIIT_SETTING_VALUE_RANGE_MAX()
and MALIIT_SETTING_DEFAULT_VALUE()
. Note that these keys don't have
to exist in attributes.
const gchar *
maliit_settings_entry_get_description (MaliitSettingsEntry *entry
);
Gets description of the entry.
MaliitSettingsEntryType
maliit_settings_entry_get_entry_type (MaliitSettingsEntry *entry
);
Gets type of the entry.
const gchar *
maliit_settings_entry_get_key (MaliitSettingsEntry *entry
);
Gets key of the entry.
GVariant *
maliit_settings_entry_get_value (MaliitSettingsEntry *entry
);
Gets value of the entry. Check its validity with
maliit_settings_entry_is_current_value_valid()
before using it.
gboolean maliit_settings_entry_is_value_valid (MaliitSettingsEntry *entry
,GVariant *value
);
Checks whether the value is valid one for the entry.
void maliit_settings_entry_set_value (MaliitSettingsEntry *entry
,GVariant *value
);
Sets a new value of the entry. Before setting new value, validate
it with maliit_settings_entry_is_value_valid()
.
gboolean
maliit_settings_entry_is_current_value_valid
(MaliitSettingsEntry *entry
);
Gets whether current value of the entry is valid.
“attributes”
property “attributes” GHashTable *
Attributes of the entry.
Flags: Read / Write / Construct Only
“description”
property “description” gchar *
Description of the entry.
Flags: Read / Write / Construct Only
Default value: ""
“extension”
property“extension” MaliitAttributeExtension *
MaliitAttributeExtension used by this entry.
Flags: Write / Construct Only
“extension-key”
property “extension-key” gchar *
Key of the entry.
Flags: Read / Write / Construct Only
Default value: ""
“type”
property“type” MaliitSettingsEntryType
Type of the entry
Flags: Read / Write / Construct Only
Default value: MALIIT_STRING_TYPE
“valid”
property “valid” gboolean
Whether entry's value is valid.
Flags: Read / Write / Construct Only
Default value: FALSE
“value-changed”
signalvoid user_function (MaliitSettingsEntry *entry, gpointer user_data)
Emitted when value of the entry was changed in the plugin.
entry |
The MaliitSettingsEntry emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First