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 (uint 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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref