KUserGroup Class Reference
from PyKDE4.kdecore import *
Detailed Description
\class KUserGroup kuser.h <KUserGroup>
Represents a group on your system
This class represents a group on your system. You can either get
information about the group of the current user, of fetch information about
a group on the system. Instances of this class will be explicitly shared,
so copying objects is very cheap and you can safely pass objects by value.
- Author:
- Jan Schaefer <j_schaef@informatik.uni-kl.de>
Method Documentation
__init__ |
( |
self, |
|
|
|
K_GID |
gid |
|
) |
|
|
|
Returns a list of all group names on this system
Returns a list of all groups on this system
Returns the group id of the group.
- Returns:
- the group id of the group or -1 if the group is invalid
Returns whether the group is valid.
A KUserGroup object can be invalid if it is
created with a non-existing gid or name.
- Returns:
- true if the group is valid
The name of the group.
- Returns:
- the name of the group
Two KUserGroup objects are not equal if their gid()s are not identical.
Invalid groups always compare unequal.
- Returns:
- true if the groups are not identical
Two KUserGroup objects are equal if their gid()s are identical.
Invalid groups never compare equal.
- Returns:
- true if the groups are identical
Returns a list of all user login names of the group.
- Returns:
- a list of all user login names of the group
Returns a list of all users of the group.
- Returns:
- a list of all users of the group