Rename the class Json to avoid symbol conflicts with Jsoncpp
[platform/core/context/context-provider.git] / src / call / Call.cpp
index 24c1f0c..721a1d7 100644 (file)
@@ -36,7 +36,7 @@ static telephony_noti_e __callNotiIds[] =
    TELEPHONY_NOTI_VIDEO_CALL_STATUS_ALERTING,
    TELEPHONY_NOTI_VIDEO_CALL_STATUS_INCOMING,
 };
-static Json __latest;
+static CtxJson1 __latest;
 
 CallStateProvider::CallStateProvider() :
        BasicProvider(SUBJ_STATE_CALL)
@@ -67,7 +67,7 @@ void CallStateProvider::__updateCb(telephony_h handle, telephony_noti_e notiId,
 
 void CallStateProvider::__handleUpdate(telephony_h handle, telephony_noti_e notiId, void* id)
 {
-       Json data;
+       CtxJson1 data;
        unsigned int count;
        telephony_call_h *callList;
 
@@ -302,7 +302,7 @@ int CallStateProvider::unsubscribe()
        return ERR_NONE;
 }
 
-bool CallStateProvider::__readCurrentStatus(telephony_h& handle, Json* data)
+bool CallStateProvider::__readCurrentStatus(telephony_h& handle, CtxJson1* data)
 {
        unsigned int count = 0;
        telephony_call_h *callList = NULL;
@@ -353,7 +353,7 @@ int CallStateProvider::read()
        }
 
        bool ret = true;
-       Json data;
+       CtxJson1 data;
        data.set(NULL, KEY_STATE, VAL_IDLE);
 
        for (unsigned int i = 0; i < __handleList.count; i++) {