Class
MalcontentUserManager
unstable since: 0.14.0
Description [src]
final class Malcontent.UserManager : GObject.Object
{
/* No available fields */
}
Gives access to the system user database.
Before it can be used, the user data needs to be loaded by calling
mct_user_manager_load_async(). After then, changes to the user
database are signalled using MctUserManager::user-added and
MctUserManager::user-removed. Changes to the properties of
individual users are signalled using GObject::notify on the
user objects.
As well as exposing the (non-system) users in the database, the user manager can describe family relationships between the users. Currently, there is only one family supported on the system, containing all the normal and administrator user accounts. In the future, this may extend to supporting more families, with more roles for members within a family.
Available since: 0.14.0
Instance methods
mct_user_manager_get_all_users_async
Get all the non-system users on the system.
unstable since: 0.14.0
mct_user_manager_get_all_users_finish
Finish an asynchronous query operation started with
mct_user_manager_get_all_users_async().
unstable since: 0.14.0
mct_user_manager_get_family_members_for_user_async
Get the members of the family containing user.
unstable since: 0.14.0
mct_user_manager_get_family_members_for_user_finish
Finish an asynchronous query operation started with
mct_user_manager_get_family_members_for_user_async().
unstable since: 0.14.0
mct_user_manager_get_user_by_uid_finish
Finish an asynchronous query operation started with
mct_user_manager_get_user_by_uid_async().
unstable since: 0.14.0
mct_user_manager_get_user_by_username_async
Get the user with the given username.
unstable since: 0.14.0
mct_user_manager_get_user_by_username_finish
Finish an asynchronous query operation started with
mct_user_manager_get_user_by_username_async().
unstable since: 0.14.0
mct_user_manager_load_finish
Finish an asynchronous load operation started with
mct_user_manager_load_async().
unstable since: 0.14.0
Properties
Malcontent.UserManager:connection
A connection to the system bus, where accounts-service runs.
unstable since: 0.14.0
Malcontent.UserManager:is-loaded
Whether the user manager has finished loading yet.
unstable since: 0.14.0
Signals
Malcontent.UserManager::user-added
Emitted when a new user is added on the system.
unstable since: 0.14.0
Malcontent.UserManager::user-removed
Emitted when a user is removed from the system.
unstable since: 0.14.0
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.