Polkit-Qt-1  0.95.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
PolkitQt1::Identity Class Reference

Abstract class representing identities. More...

#include <Identity>

Inheritance diagram for PolkitQt1::Identity:
PolkitQt1::UnixGroupIdentity PolkitQt1::UnixUserIdentity

Public Types

typedef QList< IdentityList
 

Public Member Functions

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

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

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

◆ 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

◆ toString()

QString PolkitQt1::Identity::toString ( ) const

Serialization of object to the string

Returns
Serialized Identity object

The documentation for this class was generated from the following files: