KCoreAddons

#include <kuser.h>

Inheritance diagram for KGroupId:

Public Member Functions

 KGroupId ()
 
 KGroupId (K_GID gid)
 
 KGroupId (const KGroupId &other)
 
- Public Member Functions inherited from KUserOrGroupId< K_GID >
bool isValid () const
 
NativeType nativeId () const
 
bool operator!= (const KUserOrGroupId &other) const
 
bool operator== (const KUserOrGroupId &other) 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 (NativeType nativeId)
 
 KUserOrGroupId (const KUserOrGroupId< K_GID > &other)
 
KUserOrGroupIdoperator= (const KUserOrGroupId< K_GID > &other)
 

Detailed Description

A platform independent group ID.

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

Definition at line 145 of file kuser.h.

Constructor & Destructor Documentation

KGroupId::KGroupId ( )
inline

Creates an invalid KGroupId.

Definition at line 147 of file kuser.h.

KGroupId::KGroupId ( K_GID  gid)
inlineexplicit

Creates an KGroupId from the native group ID type.

Definition at line 149 of file kuser.h.

Member Function Documentation

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

Definition at line 547 of file kuser_unix.cpp.

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

Definition at line 542 of file kuser_unix.cpp.

KGroupId KGroupId::fromName ( const QString name)
static
Returns
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 518 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-2020 The KDE developers.
Generated on Fri Jun 5 2020 22:52:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.