LightDM.UserList¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Number of login users |
||
d/r |
Number of login users |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class LightDM.UserList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
LightDM.UserList
is an opaque data structure and can only be accessed using the provided functions.- classmethod get_instance()¶
- Returns:
the
LightDM.UserList
- Return type:
Get the user list.
- get_user_by_name(username)¶
- Parameters:
username (
str
) – Name of user to get.- Returns:
A
LightDM.User
entry for the given user.- Return type:
Get information about a given user or
None
if this user doesn’t exist.
- get_users()¶
- Returns:
A list of
LightDM.User
that should be presented to the user.- Return type:
Get a list of users to present to the user. This list may be a subset of the available users and may be empty depending on the server configuration.
- do_user_added(user) virtual¶
- Parameters:
user (
LightDM.User
) –
- do_user_changed(user) virtual¶
- Parameters:
user (
LightDM.User
) –
- do_user_removed(user) virtual¶
- Parameters:
user (
LightDM.User
) –
Signal Details¶
- LightDM.UserList.signals.user_added(user_list, user)¶
- Signal Name:
user-added
- Flags:
- Parameters:
user_list (
LightDM.UserList
) – The object which received the signaluser (
LightDM.User
) – TheLightDM.User
that has been added.
The
::user-added
signal gets emitted when a user account is created.
- LightDM.UserList.signals.user_changed(user_list, user)¶
- Signal Name:
user-changed
- Flags:
- Parameters:
user_list (
LightDM.UserList
) – The object which received the signaluser (
LightDM.User
) – TheLightDM.User
that has been changed.
The
::user-changed
signal gets emitted when a user account is modified.
- LightDM.UserList.signals.user_removed(user_list, user)¶
- Signal Name:
user-removed
- Flags:
- Parameters:
user_list (
LightDM.UserList
) – The object which received the signaluser (
LightDM.User
) – TheLightDM.User
that has been removed.
The
::user-removed
signal gets emitted when a user account is removed.
Property Details¶
- LightDM.UserList.props.length¶
-
Number of login users
- LightDM.UserList.props.num_users¶
- Name:
num-users
- Type:
- Default Value:
0
- Flags:
Number of login users
Deprecated since version ???.