diff options
author | Bhavna Sharma <sbhavna@codeaurora.org> | 2017-05-02 14:29:46 -0700 |
---|---|---|
committer | Bhavna Sharma <sbhavna@codeaurora.org> | 2017-07-24 09:25:07 -0700 |
commit | 686a5c54b0fdd8a642a55f0d2085aeec99763209 (patch) | |
tree | 21f284958a175784fb0997e1f789233e6273bf01 /location/LocationAPIClientBase.h | |
parent | 2df685d3ec307cd24900b856529fe6a7fe9c7818 (diff) | |
download | gps-686a5c54b0fdd8a642a55f0d2085aeec99763209.tar.gz |
Location API for Outdoor Trip Batching
Add / Modify Location API for
Outdoor Trip Batching feature.
Introduce a batch mode to differentiate
between routine and outdoor trip mode.
CRs-Fixed: 2041674
Change-Id: Ia8b2d34457b29c4fe754ab24287a6984ab9a96f5
Diffstat (limited to 'location/LocationAPIClientBase.h')
-rw-r--r-- | location/LocationAPIClientBase.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/location/LocationAPIClientBase.h b/location/LocationAPIClientBase.h index 19d585a..dca6f1a 100644 --- a/location/LocationAPIClientBase.h +++ b/location/LocationAPIClientBase.h @@ -41,6 +41,7 @@ enum SESSION_MODE { SESSION_MODE_NONE = 0, SESSION_MODE_ON_FULL, SESSION_MODE_ON_FIX, + SESSION_MODE_ON_TRIP_COMPLETED }; enum REQUEST_TYPE { @@ -194,7 +195,7 @@ public: uint32_t locAPIStopSession(uint32_t id); uint32_t locAPIUpdateSessionOptions(uint32_t id, uint32_t sessionMode, LocationOptions& options); - void locAPIGetBatchedLocations(size_t count); + void locAPIGetBatchedLocations(uint32_t id, size_t count); uint32_t locAPIAddGeofences(size_t count, uint32_t* ids, GeofenceOption* options, GeofenceInfo* data); @@ -226,7 +227,12 @@ public: inline virtual void onGnssLocationInfoCb( GnssLocationInfoNotification /*gnssLocationInfoNotification*/) {} - inline virtual void onBatchingCb(size_t /*count*/, Location* /*location*/) {} + inline virtual void onBatchingCb(size_t /*count*/, Location* /*location*/, + BatchingOptions /*batchingOptions*/) {} + inline virtual void onBatchingStatusCb(BatchingStatusInfo /*batchingStatus*/, + std::list<uint32_t> &/*listOfCompletedTrips*/) {} + void beforeBatchingStatusCb(BatchingStatusInfo batchStatus, + std::list<uint32_t> & tripCompletedList); inline virtual void onStartBatchingCb(LocationError /*error*/) {} inline virtual void onStopBatchingCb(LocationError /*error*/) {} inline virtual void onUpdateBatchingOptionsCb(LocationError /*error*/) {} @@ -525,6 +531,7 @@ private: pthread_mutex_t mMutex; geofenceBreachCallback mGeofenceBreachCallback; + batchingStatusCallback mBatchingStatusCallback; LocationAPI* mLocationAPI; |