merge wrt-plugins-tizen_0.2.0-3
[platform/framework/web/wrt-plugins-tizen.git] / src / platform / Tizen / Call / CallHistory.cpp
index 04a09c0..3f34a74 100755 (executable)
@@ -26,6 +26,7 @@
 #include <dpl/log/log.h>
 #include <API/Filter/IFilter.h>
 #include <API/Filter/IFilterVisitor.h>
+#include <API/Call/CallDefine.h>
 #include <calllog.h>
 #include <contacts-svc.h>
 
@@ -358,14 +359,14 @@ bool CallHistory::executeQuery(std::string &query, CallHistoryEntryListPtr &call
 std::string CallHistory::convertAttrName(std::string &name)
 {
        std::string attrName("");
-       if (name.compare("remoteParty") == 0) {
-               return attrName.append("number");
-       } else if (name.compare("startTime") == 0) {
-               return attrName.append("log_time");
-       } else if (name.compare("duration") == 0) {
-               return attrName.append("data1");
-       } else if (name.compare("direction") == 0) {
-               return attrName.append("log_type");
+       if (name.compare(STR_RP_REMOTEPARTY) == 0) {
+               return attrName.append(STR_NUMBER);
+       } else if (name.compare(STR_START_TIME) == 0) {
+               return attrName.append(STR_LOG_TIME);
+       } else if (name.compare(STR_DURATION) == 0) {
+               return attrName.append(STR_DATA1);
+       } else if (name.compare(STR_DIRECTION) == 0) {
+               return attrName.append(STR_LOG_TYPE);
        } else {
                return attrName;
        }