KCoreAddons
KGroupId Struct Reference
#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) | |
KUserOrGroupId & | operator= (const KUserOrGroupId< K_GID > &other) |
KUserOrGroupId< void * > & | operator= (const KUserOrGroupId< void * > &other) |
Detailed Description
Constructor & Destructor Documentation
◆ KGroupId() [1/3]
◆ KGroupId() [2/3]
|
inlineexplicit |
◆ KGroupId() [3/3]
◆ ~KGroupId()
Member Function Documentation
◆ 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()
|
static |
- Returns
- a KGroupId for the current user. This is like ::getgid() on UNIX.
Definition at line 625 of file kuser_unix.cpp.
◆ fromName()
- 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 Sat Dec 21 2024 17:04:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.