lomiri-location-service
..
An aggregating location service providing positioning and geocoding capabilities to applications.
|
Go to the documentation of this file.
18 #ifndef LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PERMISSION_MANAGER_H_
19 #define LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PERMISSION_MANAGER_H_
22 #include <sys/types.h>
50 typedef std::shared_ptr<PermissionManager>
Ptr;
82 #endif // LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PERMISSION_MANAGER_H_
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...
Credentials of a remote session.
virtual ~PermissionManager()=default
std::shared_ptr< PermissionManager > Ptr
@ rejected
The app is not allowed to access the location service.
pid_t pid
The process id of the remote peer.
@ granted
The app is allowed to access the location service.
PermissionManager & operator=(const PermissionManager &)=delete
The PermissionManager class is an interface to check whether an application is allowed to access the ...
Summarizes criteria of a client session with respect to functionality and accuracy for position,...
Result
The Result enum summarizes the results of a query for permissions.
PermissionManager()=default
uid_t uid
The user id the remote peer runs under.