18 #ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_PERMISSION_MANAGER_H_
19 #define LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_PERMISSION_MANAGER_H_
49 typedef std::shared_ptr<PermissionManager>
Ptr;
81 #endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_PERMISSION_MANAGER_H_
Result
The Result enum summarizes the results of a query for permissions.
PermissionManager()=default
std::shared_ptr< PermissionManager > Ptr
virtual ~PermissionManager()=default
pid_t pid
The process id of the remote peer.
PermissionManager & operator=(const PermissionManager &)=delete
The PermissionManager class is an interface to check whether an application is allowed to access the ...
The app is allowed to access the location service.
Credentials of a remote session.
The app is not 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...
uid_t uid
The user id the remote peer runs under.
Summarizes criteria of a client session with respect to functionality and accuracy for position...