KUserGroup Class Reference
Represents a group on your system. More...
#include <kuser.h>
Public Member Functions | |
KUserGroup (KUser::UIDMode mode=KUser::UseEffectiveUID) | |
KUserGroup (long gid) | |
KUserGroup (const QString &name) | |
KUserGroup (const char *name) | |
KUserGroup (struct group *g) | |
KUserGroup (const KUserGroup &group) | |
KUserGroup & | operator= (const KUserGroup &group) |
bool | operator== (const KUserGroup &group) const |
bool | operator!= (const KUserGroup &group) const |
bool | isValid () const |
long | gid () const |
QString | name () const |
const QValueList< KUser > & | users () const |
QStringList | userNames () const |
~KUserGroup () | |
Static Public Member Functions | |
QValueList< KUserGroup > | allGroups () |
QStringList | allGroupNames () |
Detailed Description
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>
- Since:
- 3.3
Definition at line 253 of file kuser.h.
Constructor & Destructor Documentation
|
Create an object from the group of the current user.
References KUser::gid(). Referenced by allGroups(). |
|
Create an object from a group id. If the group does not exist, isValid() will return false.
|
|
Create an object from a group name. If the group does not exist, isValid() will return false.
|
|
Create an object from a group name. If the group does not exist, isValid() will return false.
|
|
Creates an object from a group structure. If the pointer is null, isValid() will return false.
|
|
Creates a new KUserGroup instance from another KUserGroup object.
|
|
Destructor. |
Member Function Documentation
|
Copies a group.
|
|
Two KUserGroup objects are equal if isValid() is true and gid() are identical.
References gid(), and isValid(). Referenced by operator!=(). |
|
Two KUserGroup objects are not equal if either isValid() is not true or gid() are not identical.
References operator==(). |
|
Returns wether the group is valid. A KUserGroup object can be invalid if it is created with a non-existing gid or name.
Referenced by operator==(). |
|
Returns the group id of the group.
Referenced by operator==(). |
|
The name of the group.
|
|
Returns a list of all users of the group.
|
|
Returns a list of all user login names of the group.
|
|
Returns a list of all groups on this system. Definition at line 396 of file kuser.cpp. References KUserGroup(). Referenced by KUser::groupNames(), and KUser::groups(). |
|
Returns a list of all group names on this system. |
The documentation for this class was generated from the following files: