[my-place] UserPlaces facade refactoring to static methods. 23/82623/1
authorMarcin Masternak <m.masternak@samsung.com>
Thu, 4 Aug 2016 09:06:20 +0000 (11:06 +0200)
committerMarcin Masternak <m.masternak@samsung.com>
Thu, 4 Aug 2016 13:33:44 +0000 (15:33 +0200)
Change-Id: Ie0e3edd970cf4e9cb2d6de424a8c776d811ac103
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
src/my-place/facade/UserPlaces.h

index 179fc93..05757b1 100644 (file)
@@ -35,19 +35,19 @@ namespace ctx {
                VisitDetector *__visitDetector;
                int __timerId;
                TimerManager __timerManager;
-               std::vector<Json> __dbGetPlaces();
-               std::map<std::string, std::string> __dbGetWifiAPsMap();
-               std::shared_ptr<ctx::Place> __placeFromJson(Json &row, std::map<std::string,
+               static std::vector<Json> __dbGetPlaces();
+               static std::map<std::string, std::string> __dbGetWifiAPsMap();
+               static std::shared_ptr<ctx::Place> __placeFromJson(Json &row, std::map<std::string,
                                std::string> &wifiAPsMap);
-               void __placeCategoryFromJson(Json &row, ctx::Place &place);
-               void __placeLocationFromJson(Json &row, ctx::Place &place);
-               void __placeWifiAPsFromJson(Json &row, std::map<std::string,
+               static void __placeCategoryFromJson(Json &row, ctx::Place &place);
+               static void __placeLocationFromJson(Json &row, ctx::Place &place);
+               static void __placeWifiAPsFromJson(Json &row, std::map<std::string,
                                std::string> &wifiAPsMap, ctx::Place &place);
-               void __placeCreateDateFromJson(Json &row, ctx::Place &place);
-               std::vector<std::shared_ptr<Place>> __placesFromJsons(
+               static void __placeCreateDateFromJson(Json &row, ctx::Place &place);
+               static std::vector<std::shared_ptr<Place>> __placesFromJsons(
                                std::vector<Json>& records,
                                std::map<std::string, std::string> &wifiAPsMap);
-               std::vector<std::shared_ptr<Place>> __getPlaces();
+               static std::vector<std::shared_ptr<Place>> __getPlaces();
                static Json __composeJson(std::vector<std::shared_ptr<Place>> 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 */