![]() |
![]() |
![]() |
Maliit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
#include <maliit/maliitsettingsmanager.h> struct MaliitSettingsManager; struct MaliitSettingsManagerClass; MaliitSettingsManager * maliit_settings_manager_new (void
); const gchar * maliit_settings_manager_get_preferred_description_locale (void
); void maliit_settings_manager_load_plugin_settings (MaliitSettingsManager *manager
); void maliit_settings_manager_set_preferred_description_locale (const gchar *locale_name
);
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.
Returns : |
The newly created MaliitSettingsManager. [transfer full] |
const gchar * maliit_settings_manager_get_preferred_description_locale
(void
);
Gets the preferred locale for human-readable description.
Returns : |
The string being a current preferred locale. Returned string should not be freed nor modified. [transfer none] |
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
|
The MaliitSettingsManager. [transfer none] |
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.
|
The new preferred locale. [transfer none] |
"connected"
signalvoid user_function (MaliitSettingsManager *manager,
gpointer user_data) : Run First
Emitted when connection to maliit-server is established.
|
The MaliitSettingsManager emitting the signal. |
|
user data set when the signal handler was connected. |
"disconnected"
signalvoid user_function (MaliitSettingsManager *manager,
gpointer user_data) : Run First
Emitted when connection to maliit-server is broken.
|
The MaliitSettingsManager emitting the signal. |
|
user data set when the signal handler was connected. |
"plugin-settings-received"
signalvoid user_function (MaliitSettingsManager *manager,
gpointer settings,
gpointer user_data) : Run First
Emitted after call to
maliit_settings_manager_load_plugin_settings()
and when the
plugin list changes on the server.
|
The MaliitSettingsManager emitting the signal. |
|
Gotten settings. [type GLib.List][element-type Maliit.PluginSettings] |
|
user data set when the signal handler was connected. |