Rename the class Json to avoid symbol conflicts with Jsoncpp
[platform/core/context/context-provider.git] / src / app-stats / DbInit.cpp
index 652950b..de7e5c7 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <sstream>
-#include <Json.h>
+#include <CtxJson1.h>
 #include <Types.h>
 #include "AppStatisticsTypes.h"
 #include "DbInit.h"
@@ -77,7 +77,7 @@ bool ctx::AppDbInitializer::__packageInfoCb(package_info_h packageInfo, void *us
 
 bool ctx::AppDbInitializer::__appInfoCb(package_info_app_component_type_e compType, const char *appId, void *userData)
 {
-       Json data;
+       CtxJson1 data;
        DatabaseManager dbManager;
 
        data.set(NULL, KEY_APP_ID, appId);
@@ -92,7 +92,7 @@ void ctx::AppDbInitializer::onInserted(unsigned int queryId, int error, int64_t
 {
 }
 
-void ctx::AppDbInitializer::onExecuted(unsigned int queryId, int error, std::vector<Json>& records)
+void ctx::AppDbInitializer::onExecuted(unsigned int queryId, int error, std::vector<CtxJson1>& records)
 {
        if (queryId != EMPTY_CHECKER_QID) {
                _E("Unknown Query ID: %d", queryId);