Polkit-Qt-1
0.95.0
|
This class represents PolicyKit temporary authorization. More...
#include <TemporaryAuthorization>
Public Types | |
typedef QList< TemporaryAuthorization > | List |
Public Member Functions | |
TemporaryAuthorization (PolkitTemporaryAuthorization *pkTemporaryAuthorization) | |
TemporaryAuthorization (const TemporaryAuthorization &other) | |
TemporaryAuthorization & | operator= (const TemporaryAuthorization &other) |
QString | id () const |
Gets the identifier for the authorization. More... | |
QString | actionId () const |
Gets the identifier of the action that authorization is for. More... | |
Subject | subject () const |
Gets the subject that authorization is for. More... | |
QDateTime | obtainedAt () const |
Gets the time when authorization was obtained. More... | |
QDateTime | expirationTime () const |
Gets the time when authorizaton will expire. More... | |
bool | revoke () |
Revoke temporary authorization. More... | |
This class represents PolicyKit temporary authorization.
This class encapsulates the PolkitTemporaryAuthorization interface.
|
explicit |
Creates TemporaryAuthorization object from PolkitTemporaryAuthorization
pkTemporaryAuthorization | PolkitTemporaryAuthorization object |
parent |
QString PolkitQt1::TemporaryAuthorization::actionId | ( | ) | const |
Gets the identifier of the action that authorization is for.
QDateTime PolkitQt1::TemporaryAuthorization::expirationTime | ( | ) | const |
Gets the time when authorizaton will expire.
QString PolkitQt1::TemporaryAuthorization::id | ( | ) | const |
Gets the identifier for the authorization.
This identifier can be user by the revokeTemporaryAuthorization function
QDateTime PolkitQt1::TemporaryAuthorization::obtainedAt | ( | ) | const |
Gets the time when authorization was obtained.
bool PolkitQt1::TemporaryAuthorization::revoke | ( | ) |
Revoke temporary authorization.
true
Authorization has been revoked false
Revoking authorization failed Subject PolkitQt1::TemporaryAuthorization::subject | ( | ) | const |
Gets the subject that authorization is for.