# class KUserGroup

###

Module | kdecore
Namespace |
Class | KUserGroup
Inherits |

### methods

- KUserGroup (name)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  name | QString |

  Create an object from a group name. If the group does not exist, isValid() will return false.

  name - the name of the group

- KUserGroup (name)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  name | char |

  Create an object from a group name. If the group does not exist, isValid() will return false.

  name - the name of the group

- KUserGroup (mode)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  mode | KUser.UIDMode | KUser.UseEffectiveUID

  Create an object from the group of the current user.

  mode - if #KUser.UseEffectiveUID is passed the effective user will be used. If #KUser.UseRealUserID is passed the real user will be used. The real UID will be different than the effective UID in setuid programs; in such a case use the effective UID for checking permissions, and the real UID for displaying information about the group associated with the user.

- KUserGroup (gid)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  gid | K_GID |

  Create an object from a group id. If the group does not exist, isValid() will return false.

  gid - the group id

- KUserGroup (g)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  g | group |

  Creates an object from a group structure. If the pointer is null, isValid() will return false.

  g - the group structure to create the group from.

- KUserGroup (group)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  group | KUserGroup |

  Creates a new KUserGroup instance from another KUserGroup object

  group - the KUserGroup to copy

- KUserGroup (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- KUserGroup (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | char |

- KUserGroup (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KUser.UIDMode | KUser.UseEffectiveUID

- KUserGroup (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | K_GID |

- KUserGroup (a0)

  returns ctor
  Not implemented
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | group |

- allGroupNames ( )

  returns QStringList
  static

  Returns a list of all group names on this system

- allGroups ( )

  returns QList<KUserGroup>
  static

  Returns a list of all groups on this system

- gid ( )

  returns K_GID

  Returns the group id of the group. Returns the group id of the group or -1 if the group is invalid

- isValid ( )

  returns bool

  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

- name ( )

  returns QString

  The name of the group. Returns the name of the group

- operator != (group)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  group | KUserGroup |

  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

- operator == (group)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  group | KUserGroup |

  Two KUserGroup objects are equal if their gid()s are identical. Invalid groups never compare equal. Returns true if the groups are identical

- userNames ( )

  returns QStringList

  Returns a list of all user login names of the group. Returns a list of all user login names of the group

- users ( )

  returns QList<KUser>

  Returns a list of all users of the group. Returns a list of all users of the group