![]() |
SLProject
4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <SENSGps.h>
Classes | |
| struct | Location |
Public Member Functions | |
| virtual | ~SENSGps () |
| virtual bool | start ()=0 |
| virtual void | stop ()=0 |
| Location | getLocation () const |
| bool | isRunning () |
| bool | permissionGranted () const |
| void | registerListener (SENSGpsListener *listener) |
| void | unregisterListener (SENSGpsListener *listener) |
| void | registerPermissionListener (std::function< void(void)> listener) |
| void | updatePermission (bool granted) |
Protected Member Functions | |
| void | setLocation (SENSGps::Location location) |
| void | informPermissionListeners () |
Protected Attributes | |
| bool | _running = false |
| std::atomic_bool | _permissionGranted {false} |
Private Attributes | |
| SENSTimePt | _timePt |
| Location | _location |
| std::mutex | _llaMutex |
| std::vector< SENSGpsListener * > | _listeners |
| std::mutex | _listenerMutex |
| std::mutex | _permissionListenerMutex |
| std::vector< std::function< void(void)> > | _permissionListeners |
| SENSGps::Location SENSGps::getLocation | ( | ) | const |
Definition at line 5 of file SENSGps.cpp.
|
protected |
Definition at line 64 of file SENSGps.cpp.
| bool SENSGps::permissionGranted | ( | ) | const |
Definition at line 49 of file SENSGps.cpp.
| void SENSGps::registerListener | ( | SENSGpsListener * | listener | ) |
Definition at line 29 of file SENSGps.cpp.
Definition at line 54 of file SENSGps.cpp.
|
protected |
Definition at line 11 of file SENSGps.cpp.
|
pure virtual |
Implemented in SENSSimulatedGps, SENSDummyGps, SENSiOSGps, and SENSAndroidGps.
|
pure virtual |
Implemented in SENSSimulatedGps, SENSDummyGps, SENSiOSGps, and SENSAndroidGps.
| void SENSGps::unregisterListener | ( | SENSGpsListener * | listener | ) |
Definition at line 36 of file SENSGps.cpp.
| void SENSGps::updatePermission | ( | bool | granted | ) |
Definition at line 71 of file SENSGps.cpp.
|
private |
|
protected |
|
mutableprivate |
|
private |