|
ubuntu-location-service
..
An aggregating location service providing positioning and geocoding capabilities to applications.
|
The PermissionManager class is an interface to check whether an application is allowed to access the location services. More...
#include <permission_manager.h>
Inheritance diagram for com::ubuntu::location::service::PermissionManager:
Collaboration diagram for com::ubuntu::location::service::PermissionManager:Public Types | |
| enum class | Result { granted , rejected } |
| The Result enum summarizes the results of a query for permissions. More... | |
| typedef std::shared_ptr< PermissionManager > | Ptr |
Public Member Functions | |
| virtual | ~PermissionManager ()=default |
| 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 criteria. More... | |
Protected Member Functions | |
| PermissionManager ()=default | |
The PermissionManager class is an interface to check whether an application is allowed to access the location services.
Definition at line 46 of file permission_manager.h.
| typedef std::shared_ptr<PermissionManager> com::ubuntu::location::service::PermissionManager::Ptr |
Manager pointer type.
Definition at line 50 of file permission_manager.h.
The Result enum summarizes the results of a query for permissions.
| Enumerator | |
|---|---|
| granted | The app is allowed to access the location service. |
| rejected | The app is not allowed to access the location service. |
Definition at line 55 of file permission_manager.h.
|
virtualdefault |
|
delete |
|
protecteddefault |
|
pure virtual |
Checks whether the app with the given credentials is allowed to access the service for the given criteria.
| criteria | The requirements of the remote peer. |
| credentials | The credentials identifying the remote peer. |
Implemented in com::ubuntu::location::service::DefaultPermissionManager.
|
delete |