PolkitQt1::Identity

Search for usage in LXR

#include <Identity>

Inheritance diagram for PolkitQt1::Identity:

Public Types

typedef QList< IdentityList
 

Public Member Functions

 Identity (const Identity &other)
 
 Identity (PolkitIdentity *polkitIdentity)
 
PolkitIdentity * identity () const
 
bool isValid () const
 
Identityoperator= (const Identity &other)
 
QString toString () const
 
UnixGroupIdentity toUnixGroupIdentity ()
 
UnixUserIdentity toUnixUserIdentity ()
 

Static Public Member Functions

static Identity fromString (const QString &string)
 

Protected Member Functions

void setIdentity (PolkitIdentity *identity)
 

Detailed Description

Abstract class representing identities.

Author
Lukas Tinkl ltink.nosp@m.l@re.nosp@m.dhat..nosp@m.com

This class encapsulates the PolkitIdentity interface.

See also
UnixGroup
UnixUser

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

Member Typedef Documentation

◆ List

Constructor & Destructor Documentation

◆ Identity() [1/3]

PolkitQt1::Identity::Identity ( )

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

◆ Identity() [2/3]

PolkitQt1::Identity::Identity ( PolkitIdentity * polkitIdentity)
explicit

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

◆ Identity() [3/3]

PolkitQt1::Identity::Identity ( const Identity & other)

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

◆ ~Identity()

PolkitQt1::Identity::~Identity ( )

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

Member Function Documentation

◆ fromString()

Identity PolkitQt1::Identity::fromString ( const QString & string)
static

Creates the Identity object from string representation.

Parameters
stringstring representation of the object
Returns
Pointer to new Identity instance

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

◆ identity()

PolkitIdentity * PolkitQt1::Identity::identity ( ) const

Gets PolkitIdentity object.

Warning
It shouldn't be used directly unless you are completely aware of what are you doing
Returns
Pointer to PolkitIdentity instance

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

◆ isValid()

bool PolkitQt1::Identity::isValid ( ) const

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

◆ operator=()

Identity & PolkitQt1::Identity::operator= ( const Identity & other)

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

◆ setIdentity()

void PolkitQt1::Identity::setIdentity ( PolkitIdentity * identity)
protected

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

◆ toString()

QString PolkitQt1::Identity::toString ( ) const

Serialization of object to the string.

Returns
Serialized Identity object

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

◆ toUnixGroupIdentity()

UnixGroupIdentity PolkitQt1::Identity::toUnixGroupIdentity ( )

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

◆ toUnixUserIdentity()

UnixUserIdentity PolkitQt1::Identity::toUnixUserIdentity ( )

Definition at line 124 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 Mon Nov 18 2024 12:13:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.