Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOhosAppPermissions Namespace Reference

Typedefs

using AppPermissionResult = QOhosPermissionsHelper::PermissionRequestResult

Functions

void checkAppPermissionGrantedWithConsumer (QOhosJsState &jsState, const std::string &permissionName, QOhosConsumer< QOhosJsState &, bool > resultConsumer)
void requestAppPermissionFromUser (QOhosJsState &jsState, const std::string &permissionName, QOhosConsumer< QOhosJsState &, bool > resultConsumer)
void requestAppPermissionFromUser (QOhosJsState &jsState, QNapi::Object qAbility, const std::string &permissionName, QOhosConsumer< QOhosJsState &, bool > resultConsumer)
void requestAppPermissionsFromUserWithResult (QOhosJsState &jsState, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< AppPermissionResult > > resultConsumer)
void requestAppPermissionsFromUserWithResult (QOhosJsState &jsState, QNapi::Object qAbility, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< AppPermissionResult > > resultConsumer)
void requestAppPermissionsOnSetting (QOhosJsState &jsState, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< bool > > resultConsumer)
void requestAppPermissionsOnSetting (QOhosJsState &jsState, QNapi::Object qAbility, const std::vector< std::string > &permissionNames, QOhosConsumer< QOhosJsState &, std::vector< bool > > resultConsumer)

Typedef Documentation

◆ AppPermissionResult

Function Documentation

◆ checkAppPermissionGrantedWithConsumer()

void QOhosAppPermissions::checkAppPermissionGrantedWithConsumer ( QOhosJsState & jsState,
const std::string & permissionName,
QOhosConsumer< QOhosJsState &, bool > resultConsumer )

Definition at line 58 of file qohosapppermissions.cpp.

Referenced by QT_BEGIN_NAMESPACE::tryCaptureScreenPixelmapWithPermissionCheck().

Here is the caller graph for this function:

◆ requestAppPermissionFromUser() [1/2]

void QOhosAppPermissions::requestAppPermissionFromUser ( QOhosJsState & jsState,
const std::string & permissionName,
QOhosConsumer< QOhosJsState &, bool > resultConsumer )

Definition at line 79 of file qohosapppermissions.cpp.

◆ requestAppPermissionFromUser() [2/2]

void QOhosAppPermissions::requestAppPermissionFromUser ( QOhosJsState & jsState,
QNapi::Object qAbility,
const std::string & permissionName,
QOhosConsumer< QOhosJsState &, bool > resultConsumer )

Definition at line 95 of file qohosapppermissions.cpp.

◆ requestAppPermissionsFromUserWithResult() [1/2]

void QOhosAppPermissions::requestAppPermissionsFromUserWithResult ( QOhosJsState & jsState,
const std::vector< std::string > & permissionNames,
QOhosConsumer< QOhosJsState &, std::vector< AppPermissionResult > > resultConsumer )

Definition at line 106 of file qohosapppermissions.cpp.

◆ requestAppPermissionsFromUserWithResult() [2/2]

void QOhosAppPermissions::requestAppPermissionsFromUserWithResult ( QOhosJsState & jsState,
QNapi::Object qAbility,
const std::vector< std::string > & permissionNames,
QOhosConsumer< QOhosJsState &, std::vector< AppPermissionResult > > resultConsumer )

Definition at line 128 of file qohosapppermissions.cpp.

◆ requestAppPermissionsOnSetting() [1/2]

void QOhosAppPermissions::requestAppPermissionsOnSetting ( QOhosJsState & jsState,
const std::vector< std::string > & permissionNames,
QOhosConsumer< QOhosJsState &, std::vector< bool > > resultConsumer )

Definition at line 196 of file qohosapppermissions.cpp.

◆ requestAppPermissionsOnSetting() [2/2]

void QOhosAppPermissions::requestAppPermissionsOnSetting ( QOhosJsState & jsState,
QNapi::Object qAbility,
const std::vector< std::string > & permissionNames,
QOhosConsumer< QOhosJsState &, std::vector< bool > > resultConsumer )

Definition at line 211 of file qohosapppermissions.cpp.