18#ifndef LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PERMISSION_MANAGER_H_
19#define LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PERMISSION_MANAGER_H_
54 typedef std::shared_ptr<PermissionManager>
Ptr;
The PermissionManager class is an interface to check whether an application is allowed to access the ...
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.
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...
std::shared_ptr< PermissionManager > Ptr
virtual ~PermissionManager()=default
PermissionManager(const PermissionManager &)=delete
PermissionManager & operator=(const PermissionManager &)=delete
Summarizes criteria of a client session with respect to functionality and accuracy for position,...
Credentials of a remote session.
std::string profile
The AppArmor profile of the remote peer.
uid_t uid
The user id the remote peer runs under.
pid_t pid
The process id of the remote peer.