Mapper  0.9.0
API documentation
Namespaces | Enumerations | Functions
app_permissions.h File Reference

(7341d2e on 8 Oct 2019)

#include <QtGlobal>
Include dependency graph for app_permissions.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 AppPermissions
 A generic utility for requesting app permissions from the user.
 

Enumerations

enum  AppPermissions::AppPermission { AppPermissions::LocationAccess, AppPermissions::StorageAccess }
 Permissions which are required for certain features of the application. More...
 
enum  AppPermissions::PermissionResult { AppPermissions::Denied, AppPermissions::Granted }
 Possible results of requesting a permission. More...
 

Functions

PermissionResult AppPermissions::checkPermission (AppPermission permission)
 Checks if the permission was granted or not. More...
 
template<class T >
void AppPermissions::requestPermission (AppPermission permission, T *object, void(T::*function)())
 Asynchronously requests a new permission to be granted. More...
 
PermissionResult AppPermissions::requestPermissionSync (AppPermission permission)
 Requests a permissions to be granted to the application. More...