#include <kuser.h>

Inheritance diagram for KGroupId:

Public Member Functions

 KGroupId ()
 KGroupId (const KGroupId &other)
 KGroupId (K_GID gid)
- Public Member Functions inherited from KUserOrGroupId< K_GID >
bool isValid () const
bool isValid () const
NativeType nativeId () const
void * nativeId () const
bool operator!= (const KUserOrGroupId &other) const
bool operator!= (const KUserOrGroupId< void * > &other) const
bool operator== (const KUserOrGroupId &other) const
bool operator== (const KUserOrGroupId< void * > &other) const
QString toString () const
QString toString () const

Static Public Member Functions

static KGroupId currentEffectiveGroupId ()
static KGroupId currentGroupId ()
static KGroupId fromName (const QString &name)

Additional Inherited Members

- Public Types inherited from KUserOrGroupId< K_GID >
typedef K_GID NativeType
- Protected Member Functions inherited from KUserOrGroupId< K_GID >
 KUserOrGroupId ()
 KUserOrGroupId (const KUserOrGroupId< K_GID > &other)
 KUserOrGroupId (const KUserOrGroupId< void * > &other)
 KUserOrGroupId (NativeType nativeId)
 KUserOrGroupId (void *nativeId)
KUserOrGroupIdoperator= (const KUserOrGroupId< K_GID > &other)
KUserOrGroupId< void * > & operator= (const KUserOrGroupId< void * > &other)

Detailed Description

A platform independent group ID.

See also
Alex Richardson arich[email protected]ards[email protected]on.kd[email protected][email protected][email protected]ail.c[email protected]om

Definition at line 168 of file kuser.h.

Constructor & Destructor Documentation

◆ KGroupId() [1/2]

KGroupId::KGroupId ( )

Creates an invalid KGroupId.

Definition at line 170 of file kuser.h.

◆ KGroupId() [2/2]

KGroupId::KGroupId ( K_GID  gid)

Creates an KGroupId from the native group ID type.

Definition at line 174 of file kuser.h.

Member Function Documentation

◆ currentEffectiveGroupId()

KGroupId KGroupId::currentEffectiveGroupId ( )
a KGroupId for the current effective user. This is like ::getegid() on UNIX.
Windows does not have setuid binaries, so on Windows this will always be the same as KGroupId::currentGroupId()

Definition at line 630 of file kuser_unix.cpp.

◆ currentGroupId()

KGroupId KGroupId::currentGroupId ( )
a KGroupId for the current user. This is like ::getgid() on UNIX.

Definition at line 625 of file kuser_unix.cpp.

◆ fromName()

KGroupId KGroupId::fromName ( const QString name)
A KGroupId for the user with name name, or an invalid KGroupId if no user with this name was found on the system

Definition at line 601 of file kuser_unix.cpp.

The documentation for this struct was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Dec 4 2022 04:08:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.