PolkitQt1::UnixUserIdentity

Search for usage in LXR

PolkitQt1::UnixUserIdentity Class Reference

#include <Identity>

Inheritance diagram for PolkitQt1::UnixUserIdentity:

Public Member Functions

 UnixUserIdentity (const QString &name)
 
 UnixUserIdentity (PolkitUnixUser *pkUnixUser)
 
 UnixUserIdentity (uid_t uid)
 
void setUid (uid_t uid)
 
uid_t uid () const
 
- Public Member Functions inherited from PolkitQt1::Identity
 Identity (const Identity &other)
 
 Identity (PolkitIdentity *polkitIdentity)
 
PolkitIdentity * identity () const
 
bool isValid () const
 
Identityoperator= (const Identity &other)
 
QString toString () const
 
UnixGroupIdentity toUnixGroupIdentity ()
 
UnixUserIdentity toUnixUserIdentity ()
 

Additional Inherited Members

- Public Types inherited from PolkitQt1::Identity
typedef QList< IdentityList
 
- Static Public Member Functions inherited from PolkitQt1::Identity
static Identity fromString (const QString &string)
 
- Protected Member Functions inherited from PolkitQt1::Identity
void setIdentity (PolkitIdentity *identity)
 

Detailed Description

An object representing a user identity on a UNIX system.

UNIX user identity

See also
Identity

Definition at line 104 of file polkitqt1-identity.h.

Constructor & Destructor Documentation

◆ UnixUserIdentity() [1/4]

PolkitQt1::UnixUserIdentity::UnixUserIdentity ( )

Definition at line 157 of file polkitqt1-identity.cpp.

◆ UnixUserIdentity() [2/4]

PolkitQt1::UnixUserIdentity::UnixUserIdentity ( uid_t uid)
explicit

Creates UnixUser object by UID of the user.

Parameters
uiduser id

Definition at line 145 of file polkitqt1-identity.cpp.

◆ UnixUserIdentity() [3/4]

PolkitQt1::UnixUserIdentity::UnixUserIdentity ( const QString & name)
explicit

Creates UnixUser object by unix name of the user.

Parameters
nameUnix name

Definition at line 134 of file polkitqt1-identity.cpp.

◆ UnixUserIdentity() [4/4]

PolkitQt1::UnixUserIdentity::UnixUserIdentity ( PolkitUnixUser * pkUnixUser)
explicit

Creates UnixUser object from PolkitUnixUser object.

Warning
Use this only if you are completely aware of what are you doing!
Parameters
pkUnixUserThe PolkitUnixUser object

Definition at line 151 of file polkitqt1-identity.cpp.

Member Function Documentation

◆ setUid()

void PolkitQt1::UnixUserIdentity::setUid ( uid_t uid)

Sets the id of user.

Parameters
uiduser id

Definition at line 168 of file polkitqt1-identity.cpp.

◆ uid()

uid_t PolkitQt1::UnixUserIdentity::uid ( ) const

Gets an user id.

Returns
user id

Definition at line 163 of file polkitqt1-identity.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 15 2024 11:56:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.