PolkitQt1::TemporaryAuthorization

Search for usage in LXR

PolkitQt1::TemporaryAuthorization Class Reference

#include <TemporaryAuthorization>

Public Types

typedef QList< TemporaryAuthorizationList
 

Public Member Functions

 TemporaryAuthorization (PolkitTemporaryAuthorization *pkTemporaryAuthorization)
 
 TemporaryAuthorization (const TemporaryAuthorization &other)
 
QString actionId () const
 
QDateTime expirationTime () const
 
QString id () const
 
QDateTime obtainedAt () const
 
TemporaryAuthorizationoperator= (const TemporaryAuthorization &other)
 
bool revoke ()
 
Subject subject () const
 

Detailed Description

This class represents PolicyKit temporary authorization.

Author
Radek Novacek rnova[email protected][email protected][email protected]redha[email protected]t.co[email protected]m

This class encapsulates the PolkitTemporaryAuthorization interface.

Definition at line 38 of file polkitqt1-temporaryauthorization.h.

Constructor & Destructor Documentation

PolkitQt1::TemporaryAuthorization::TemporaryAuthorization ( PolkitTemporaryAuthorization *  pkTemporaryAuthorization)
explicit

Creates TemporaryAuthorization object from PolkitTemporaryAuthorization.

Warning
It shouldn't be used directly unless you are completely aware of what are you doing
Parameters
pkTemporaryAuthorizationPolkitTemporaryAuthorization object
parent

Definition at line 38 of file polkitqt1-temporaryauthorization.cpp.

Member Function Documentation

QString PolkitQt1::TemporaryAuthorization::actionId ( ) const

Gets the identifier of the action that authorization is for.

Returns
String that identifies the action

Definition at line 77 of file polkitqt1-temporaryauthorization.cpp.

QDateTime PolkitQt1::TemporaryAuthorization::expirationTime ( ) const

Gets the time when authorizaton will expire.

Returns
Time of expiration

Definition at line 93 of file polkitqt1-temporaryauthorization.cpp.

QString PolkitQt1::TemporaryAuthorization::id ( ) const

Gets the identifier for the authorization.

This identifier can be user by the revokeTemporaryAuthorization function

Returns
Unique identifier for the authorization

Definition at line 72 of file polkitqt1-temporaryauthorization.cpp.

QDateTime PolkitQt1::TemporaryAuthorization::obtainedAt ( ) const

Gets the time when authorization was obtained.

Returns
Time of obtaining the authorization

Definition at line 88 of file polkitqt1-temporaryauthorization.cpp.

bool PolkitQt1::TemporaryAuthorization::revoke ( )

Revoke temporary authorization.

Returns
true Authorization has been revoked false Revoking authorization failed

Definition at line 98 of file polkitqt1-temporaryauthorization.cpp.

Subject PolkitQt1::TemporaryAuthorization::subject ( ) const

Gets the subject that authorization is for.

Returns
A Subject.

Definition at line 82 of file polkitqt1-temporaryauthorization.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:06:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.