PolkitQt1::TemporaryAuthorization
#include <TemporaryAuthorization>
Public Types | |
| typedef QList< TemporaryAuthorization > | List | 
Public Member Functions | |
| TemporaryAuthorization (const TemporaryAuthorization &other) | |
| TemporaryAuthorization (PolkitTemporaryAuthorization *pkTemporaryAuthorization) | |
| QString | actionId () const | 
| QDateTime | expirationTime () const | 
| QString | id () const | 
| QDateTime | obtainedAt () const | 
| TemporaryAuthorization & | operator= (const TemporaryAuthorization &other) | 
| bool | revoke () | 
| Subject | subject () const | 
Detailed Description
This class represents PolicyKit temporary authorization.
This class encapsulates the PolkitTemporaryAuthorization interface.
Definition at line 38 of file polkitqt1-temporaryauthorization.h.
Member Typedef Documentation
◆ List
Definition at line 41 of file polkitqt1-temporaryauthorization.h.
Constructor & Destructor Documentation
◆ TemporaryAuthorization() [1/3]
| PolkitQt1::TemporaryAuthorization::TemporaryAuthorization | ( | ) | 
Definition at line 55 of file polkitqt1-temporaryauthorization.cpp.
◆ TemporaryAuthorization() [2/3]
      
  | 
  explicit | 
Creates TemporaryAuthorization object from PolkitTemporaryAuthorization.
- Warning
 - It shouldn't be used directly unless you are completely aware of what are you doing
 
- Parameters
 - 
  
pkTemporaryAuthorization PolkitTemporaryAuthorization 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
 trueAuthorization has been revokedfalseRevoking 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:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:58:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.