![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore \inheaderfile QPermissions More...
#include <qpermissions.h>
Public Member Functions | |
QPermission ()=default | |
template<typename T, if_permission< T > = true> | |
QPermission (const T &t) | |
Qt::PermissionStatus | status () const |
Returns the status of the permission. | |
QMetaType | type () const |
Returns the type of the permission. | |
template<typename T, if_permission< T > = true> | |
std::optional< T > | value () const |
Friends | |
class | QCoreApplication |
Q_CORE_EXPORT QDebug | operator<< (QDebug debug, const QPermission &permission) |
\inmodule QtCore \inheaderfile QPermissions
An opaque wrapper of a typed permission.
The QPermission class is an opaque wrapper of a \l{typed permission}, used when checking or requesting permissions. You do not need to construct this type explicitly, as the type is automatically used when checking or requesting permissions:
When requesting permissions, the given functor will be passed an instance of a QPermission, which can be used to check the result of the request:
To inspect the properties of the original, typed permission, use the \l {QPermission::}{value()} function:
\target typed permission
Definition at line 34 of file qpermissions.h.
|
explicitdefault |
|
inline |
Definition at line 45 of file qpermissions.h.
|
inline |
Returns the status of the permission.
Definition at line 47 of file qpermissions.h.
|
inline |
Returns the type of the permission.
Definition at line 49 of file qpermissions.h.
|
inline |
Definition at line 52 of file qpermissions.h.
|
friend |
Definition at line 662 of file qpermissions.cpp.
|
friend |
Definition at line 69 of file qpermissions.h.