From: Marcin Masternak Date: Thu, 4 Aug 2016 09:06:20 +0000 (+0200) Subject: [my-place] UserPlaces facade refactoring to static methods. X-Git-Tag: accepted/tizen/common/20160907.154907^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=559218bce17247c3b40cedddcaff3966f99b78b2;p=platform%2Fcore%2Fcontext%2Fcontext-provider.git [my-place] UserPlaces facade refactoring to static methods. Change-Id: Ie0e3edd970cf4e9cb2d6de424a8c776d811ac103 Signed-off-by: Marcin Masternak --- diff --git a/src/my-place/facade/UserPlaces.h b/src/my-place/facade/UserPlaces.h index 179fc93..05757b1 100644 --- a/src/my-place/facade/UserPlaces.h +++ b/src/my-place/facade/UserPlaces.h @@ -35,19 +35,19 @@ namespace ctx { VisitDetector *__visitDetector; int __timerId; TimerManager __timerManager; - std::vector __dbGetPlaces(); - std::map __dbGetWifiAPsMap(); - std::shared_ptr __placeFromJson(Json &row, std::map __dbGetPlaces(); + static std::map __dbGetWifiAPsMap(); + static std::shared_ptr __placeFromJson(Json &row, std::map &wifiAPsMap); - void __placeCategoryFromJson(Json &row, ctx::Place &place); - void __placeLocationFromJson(Json &row, ctx::Place &place); - void __placeWifiAPsFromJson(Json &row, std::map &wifiAPsMap, ctx::Place &place); - void __placeCreateDateFromJson(Json &row, ctx::Place &place); - std::vector> __placesFromJsons( + static void __placeCreateDateFromJson(Json &row, ctx::Place &place); + static std::vector> __placesFromJsons( std::vector& records, std::map &wifiAPsMap); - std::vector> __getPlaces(); + static std::vector> __getPlaces(); static Json __composeJson(std::vector> places); bool onTimerExpired(int timerId); @@ -57,7 +57,7 @@ namespace ctx { ~UserPlaces(); void setMode(PlaceRecogMode energyMode); - ctx::Json getPlaces(); + static ctx::Json getPlaces(); }; /* class UserPlaces */