PolicyKit Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
Synopsis
PolkitBackendActionPool; PolkitBackendActionPool * polkit_backend_action_pool_new (GFile *directory); GList * polkit_backend_action_pool_get_all_actions (PolkitBackendActionPool *pool, const gchar *locale); PolkitActionDescription * polkit_backend_action_pool_get_action (PolkitBackendActionPool *pool, const gchar *action_id, const gchar *locale);
Description
The PolkitBackendActionPool class is a utility class to look up registered PolicyKit actions.
Details
polkit_backend_action_pool_new ()
PolkitBackendActionPool * polkit_backend_action_pool_new (GFile *directory);
Creates a new PolkitBackendPool that can be used for looking up PolkitActionDescription objects.
|
A GFile for the directory holding PolicyKit action description files. |
Returns : |
A PolkitBackendActionPool. Free with g_object_unref() .
|
polkit_backend_action_pool_get_all_actions ()
GList * polkit_backend_action_pool_get_all_actions (PolkitBackendActionPool *pool, const gchar *locale);
Gets all registered PolicyKit action descriptions from pool
with strings for locale
.
|
A PolkitBackendActionPool. |
|
The locale to get descriptions for or NULL for system locale.
|
Returns : |
A GList of PolkitActionDescription objects. This list
should be freed with g_list_free() after each element have
been unreffed with g_object_unref() .
|
polkit_backend_action_pool_get_action ()
PolkitActionDescription * polkit_backend_action_pool_get_action (PolkitBackendActionPool *pool, const gchar *action_id, const gchar *locale);
Gets a PolkitActionDescription object describing the action with identifier action_id
.
|
A PolkitBackendActionPool. |
|
A PolicyKit action identifier. |
|
The locale to get descriptions for or NULL for system locale.
|
Returns : |
A PolkitActionDescription (free with g_object_unref() ) or NULL
if action_id isn't registered or valid.
|
Property Details
The "directory"
property
"directory" GFile* : Read / Write / Construct Only
The directory to load action description files from.
Signal Details
The "changed"
signal
void user_function (PolkitBackendActionPool *action_pool, gpointer user_data) : Run Last
Emitted when action files in the supplied directory changes.
|
A PolkitBackendActionPool. |
|
user data set when the signal handler was connected. |