PolkitQt1::TemporaryAuthorization

Search for usage in LXR

PolkitQt1::TemporaryAuthorization Class Reference

#include <TemporaryAuthorization>

Public Types

typedef QList< TemporaryAuthorizationList
 

Public Member Functions

 TemporaryAuthorization (const TemporaryAuthorization &other)
 
 TemporaryAuthorization (PolkitTemporaryAuthorization *pkTemporaryAuthorization)
 
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

◆ TemporaryAuthorization()

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

◆ actionId()

QString PolkitQt1::TemporaryAuthorization::actionId ( ) const

Gets the identifier of the action that authorization is for.

Returns
String that identifies the action

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

◆ expirationTime()

QDateTime PolkitQt1::TemporaryAuthorization::expirationTime ( ) const

Gets the time when authorizaton will expire.

Returns
Time of expiration

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

◆ id()

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 71 of file polkitqt1-temporaryauthorization.cpp.

◆ obtainedAt()

QDateTime PolkitQt1::TemporaryAuthorization::obtainedAt ( ) const

Gets the time when authorization was obtained.

Returns
Time of obtaining the authorization

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

◆ revoke()

bool PolkitQt1::TemporaryAuthorization::revoke ( )

Revoke temporary authorization.

Returns
true Authorization has been revoked false Revoking authorization failed

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

◆ subject()

Subject PolkitQt1::TemporaryAuthorization::subject ( ) const

Gets the subject that authorization is for.

Returns
A Subject.

Definition at line 81 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-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:02:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.