PolkitQt-1
polkitqt1-temporaryauthorization.cpp
38TemporaryAuthorization::TemporaryAuthorization(PolkitTemporaryAuthorization *pkTemporaryAuthorization)
42 d->actionId = QString::fromUtf8(polkit_temporary_authorization_get_action_id(pkTemporaryAuthorization));
43 d->subject = Subject::fromString(polkit_subject_to_string(polkit_temporary_authorization_get_subject(pkTemporaryAuthorization)));
44 d->timeObtained = QDateTime::fromSecsSinceEpoch(polkit_temporary_authorization_get_time_obtained(pkTemporaryAuthorization));
45 d->timeExpires = QDateTime::fromSecsSinceEpoch(polkit_temporary_authorization_get_time_expires(pkTemporaryAuthorization));
61TemporaryAuthorization& TemporaryAuthorization::operator=(const PolkitQt1::TemporaryAuthorization& other)
static Authority * instance(PolkitAuthority *authority=nullptr)
Returns the instance of Authority.
Definition polkitqt1-authority.cpp:34
void revokeTemporaryAuthorization(const QString &id)
Revokes temporary authorization by id.
Definition polkitqt1-authority.cpp:862
static Subject fromString(const QString &string)
Creates the Subject object from string reprezentation.
Definition polkitqt1-subject.cpp:94
This class represents PolicyKit temporary authorization.
Definition polkitqt1-temporaryauthorization.h:39
QDateTime obtainedAt() const
Gets the time when authorization was obtained.
Definition polkitqt1-temporaryauthorization.cpp:87
Subject subject() const
Gets the subject that authorization is for.
Definition polkitqt1-temporaryauthorization.cpp:81
QDateTime expirationTime() const
Gets the time when authorizaton will expire.
Definition polkitqt1-temporaryauthorization.cpp:92
QString actionId() const
Gets the identifier of the action that authorization is for.
Definition polkitqt1-temporaryauthorization.cpp:76
QString id() const
Gets the identifier for the authorization.
Definition polkitqt1-temporaryauthorization.cpp:71
QDateTime fromSecsSinceEpoch(qint64 secs)
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.