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.nosp@m.cek@.nosp@m.redha.nosp@m.t.co.nosp@m.m

This class encapsulates the PolkitTemporaryAuthorization interface.

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

Member Typedef Documentation

◆ List

Constructor & Destructor Documentation

◆ TemporaryAuthorization() [1/3]

PolkitQt1::TemporaryAuthorization::TemporaryAuthorization ( )

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

◆ TemporaryAuthorization() [2/3]

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.

◆ TemporaryAuthorization() [3/3]

PolkitQt1::TemporaryAuthorization::TemporaryAuthorization ( const TemporaryAuthorization & other)

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

◆ ~TemporaryAuthorization()

PolkitQt1::TemporaryAuthorization::~TemporaryAuthorization ( )

Definition at line 67 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.

◆ operator=()

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

Definition at line 61 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-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.