UserManager
Object Hierarchy:
Description:
[
CCode ( type_id =
"act_user_manager_get_type ()" ) ]
public class UserManager :
Object
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public bool activate_user_session (User user)
Activate the session for a given user.
- public User cache_user (string username) throws Error
Caches a user account so it shows up via
list_users.
- public async User cache_user_async (string username, Cancellable? cancellable) throws Error
Asynchronously caches a user account so it shows up via
list_users.
- public bool can_switch ()
Check whether the user can switch to another session.
- public User create_user (string username, string fullname, UserAccountType accounttype) throws Error
Creates a user account on the system.
- public async User create_user_async (string username, string fullname, UserAccountType accounttype, Cancellable? cancellable) throws Error
Asynchronously creates a user account on the system.
- public bool delete_user (User user, bool remove_files) throws Error
Deletes a user account on the system.
- public async bool delete_user_async (User user, bool remove_files, Cancellable? cancellable) throws Error
Asynchronously deletes a user account from the system.
- public unowned User get_user (string username)
Retrieves a pointer to the User
object for the login username from this.
- public unowned User get_user_by_id (uid_t id)
Retrieves a pointer to the User
object for the user with the given uid from this.
- public bool goto_login_session ()
Switch the display to the login manager.
- public SList<unowned User> list_users ()
Get a list of system user accounts
- public bool no_service ()
Check whether or not the accounts service is running.
- public bool uncache_user (string username) throws Error
Releases all metadata about a user account, including icon, language
and session.
- public async bool uncache_user_async (string username, Cancellable? cancellable) throws Error
Signals:
- public virtual signal void user_added (User user)
Emitted when a user is added to the user manager.
- public virtual signal void user_changed (User user)
One of the users has changed
- public virtual signal void user_is_logged_in_changed (User user)
One of the users has logged in or out.
- public virtual signal void user_removed (User user)
Emitted when a user is removed from the user manager.
Inherited Members:
All known members inherited from class GLib.Object