KCoreAddons

#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
KUserOrGroupId
Since
5.0
Author
Alex Richardson arich.nosp@m.ards.nosp@m.on.kd.nosp@m.e@gm.nosp@m.ail.c.nosp@m.om

Definition at line 168 of file kuser.h.

Constructor & Destructor Documentation

◆ KGroupId() [1/3]

KGroupId::KGroupId ( )
inline

Creates an invalid KGroupId.

Definition at line 170 of file kuser.h.

◆ KGroupId() [2/3]

KGroupId::KGroupId ( K_GID gid)
inlineexplicit

Creates an KGroupId from the native group ID type.

Definition at line 174 of file kuser.h.

◆ KGroupId() [3/3]

KGroupId::KGroupId ( const KGroupId & other)
inline

Definition at line 178 of file kuser.h.

◆ ~KGroupId()

KGroupId::~KGroupId ( )
inline

Definition at line 182 of file kuser.h.

Member Function Documentation

◆ currentEffectiveGroupId()

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 630 of file kuser_unix.cpp.

◆ currentGroupId()

KGroupId KGroupId::currentGroupId ( )
static
Returns
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)
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 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-2024 The KDE developers.
Generated on Fri May 3 2024 11:44:15 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.