PolkitQt-1
            
 
    8#ifndef POLKITQT1_IDENTITY_H 
    9#define POLKITQT1_IDENTITY_H 
   11#include "polkitqt1-core-export.h" 
   18typedef struct _PolkitIdentity PolkitIdentity;
 
   19typedef struct _PolkitUnixUser PolkitUnixUser;
 
   20typedef struct _PolkitUnixGroup PolkitUnixGroup;
 
   46class POLKITQT1_CORE_EXPORT Identity
 
   52    explicit Identity(PolkitIdentity *polkitIdentity);
 
   53    Identity(
const Identity &other);
 
   57    Identity &operator=(
const Identity &other);
 
   89    void setIdentity(PolkitIdentity *
identity);
 
 
  104class POLKITQT1_CORE_EXPORT UnixUserIdentity : 
public Identity
 
  113    explicit UnixUserIdentity(uid_t 
uid);
 
  120    explicit UnixUserIdentity(
const QString &name);
 
  129    explicit UnixUserIdentity(PolkitUnixUser *pkUnixUser);
 
 
  154class POLKITQT1_CORE_EXPORT UnixGroupIdentity : 
public Identity
 
  163    explicit UnixGroupIdentity(gid_t 
gid);
 
  170    explicit UnixGroupIdentity(
const QString &name);
 
  179    explicit UnixGroupIdentity(PolkitUnixGroup *pkUnixGroup);
 
 
PolkitIdentity * identity() const
Gets PolkitIdentity object.
 
static Identity fromString(const QString &string)
Creates the Identity object from string representation.
 
QString toString() const
Serialization of object to the string.
 
An object representing a group identity on a UNIX system.
 
gid_t gid() const
Gets a group id.
 
void setGid(gid_t gid)
Sets the id of group.
 
An object representing a user identity on a UNIX system.
 
uid_t uid() const
Gets an user id.
 
void setUid(uid_t uid)
Sets the id of user.
 
  
 
  This file is part of the KDE documentation.
  Documentation copyright © 1996-2025 The KDE developers.
  Generated on Fri May 2 2025 11:58:04 by
  
doxygen 1.13.2 written
  by 
Dimitri van Heesch, © 1997-2006
  
  KDE's Doxygen guidelines are available online.