Top | ![]() |
![]() |
![]() |
![]() |
void | connected | Run First |
void | disconnected | Run First |
void | plugin-settings-received | Run First |
The MaliitSettingsManager handles requesting and receiving plugin settings from maliit-server and notifying when those settings has changed.
MaliitSettingsManager *
maliit_settings_manager_new (void
);
Creates new settings manager.
const gchar *
maliit_settings_manager_get_preferred_description_locale
(void
);
Gets the preferred locale for human-readable description.
void
maliit_settings_manager_load_plugin_settings
(MaliitSettingsManager *manager
);
Request the list of settings from maliit-server. The settings will be returned async via the MaliitServerManager::plugin-settings-received signal
void
maliit_settings_manager_set_preferred_description_locale
(const gchar *locale_name
);
Sets the preferred locale for human-readable descriptions. The setting is valid for all instances of MaliitSettingsManager in the process. Note that the server may not always be able to return info in the requested locale.
“connected”
signalvoid user_function (MaliitSettingsManager *manager, gpointer user_data)
Emitted when connection to maliit-server is established.
manager |
The MaliitSettingsManager emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“disconnected”
signalvoid user_function (MaliitSettingsManager *manager, gpointer user_data)
Emitted when connection to maliit-server is broken.
manager |
The MaliitSettingsManager emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“plugin-settings-received”
signalvoid user_function (MaliitSettingsManager *manager, gpointer settings, gpointer user_data)
Emitted after call to
maliit_settings_manager_load_plugin_settings()
and when the
plugin list changes on the server.
manager |
The MaliitSettingsManager emitting the signal. |
|
settings |
Gotten settings. |
[type GLib.List][element-type Maliit.PluginSettings] |
user_data |
user data set when the signal handler was connected. |
Flags: Run First