18 #ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_PERMISSION_MANAGER_H_
19 #define LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_PERMISSION_MANAGER_H_
22 #include <sys/types.h>
50 typedef std::shared_ptr<PermissionManager>
Ptr;
The PermissionManager class is an interface to check whether an application is allowed to access the ...
PermissionManager()=default
std::shared_ptr< PermissionManager > Ptr
PermissionManager(const PermissionManager &)=delete
PermissionManager & operator=(const PermissionManager &)=delete
virtual Result check_permission_for_credentials(const Criteria &criteria, const Credentials &credentials)=0
Checks whether the app with the given credentials is allowed to access the service for the given crit...
virtual ~PermissionManager()=default
Result
The Result enum summarizes the results of a query for permissions.
@ rejected
The app is not allowed to access the location service.
@ granted
The app is allowed to access the location service.
Summarizes criteria of a client session with respect to functionality and accuracy for position,...
Credentials of a remote session.
uid_t uid
The user id the remote peer runs under.
pid_t pid
The process id of the remote peer.