From 02ced053be23e20766aa52de7e6d64cb0a6f6643 Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Thu, 21 Jan 2016 10:08:29 +0900 Subject: [PATCH] Update enum names of contacts-service, which are modified Change-Id: Ic286d91f4a46e35cf8ccd1b0c94a3f3eeeee5b3d Signed-off-by: Mu-Woong Lee --- src/statistics/social/db_handle.cpp | 4 ++-- src/statistics/social/log_aggregator.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/statistics/social/db_handle.cpp b/src/statistics/social/db_handle.cpp index ccdb1c2..e6a1a01 100644 --- a/src/statistics/social/db_handle.cpp +++ b/src/statistics/social/db_handle.cpp @@ -62,12 +62,12 @@ std::string ctx::social_db_handle::create_where_clause(ctx::json filter) switch(comm_type) { case SOCIAL_COMMUNICATION_TYPE_CALL: where_clause << - " AND " SOCIAL_PHONE_LOG_TYPE " >= " << CONTACTS_PLOG_TYPE_VOICE_INCOMMING << + " AND " SOCIAL_PHONE_LOG_TYPE " >= " << CONTACTS_PLOG_TYPE_VOICE_INCOMING << " AND " SOCIAL_PHONE_LOG_TYPE " <= " << CONTACTS_PLOG_TYPE_VIDEO_BLOCKED; break; case SOCIAL_COMMUNICATION_TYPE_MESSAGE: where_clause << - " AND " SOCIAL_PHONE_LOG_TYPE " >= " << CONTACTS_PLOG_TYPE_MMS_INCOMMING << + " AND " SOCIAL_PHONE_LOG_TYPE " >= " << CONTACTS_PLOG_TYPE_MMS_INCOMING << " AND " SOCIAL_PHONE_LOG_TYPE " <= " << CONTACTS_PLOG_TYPE_MMS_BLOCKED; break; default: diff --git a/src/statistics/social/log_aggregator.cpp b/src/statistics/social/log_aggregator.cpp index c04e918..2c4af98 100644 --- a/src/statistics/social/log_aggregator.cpp +++ b/src/statistics/social/log_aggregator.cpp @@ -91,7 +91,7 @@ void ctx::contact_log_aggregator::get_updated_contact_log_list(int last_time, co err = contacts_filter_create(_contacts_phone_log._uri, &filter); IF_FAIL_CATCH_TAG(err == CONTACTS_ERROR_NONE, _E, "contacts_filter_create() failed"); - contacts_filter_add_int(filter, _contacts_phone_log.log_type, CONTACTS_MATCH_GREATER_THAN_OR_EQUAL, CONTACTS_PLOG_TYPE_VOICE_INCOMMING); + contacts_filter_add_int(filter, _contacts_phone_log.log_type, CONTACTS_MATCH_GREATER_THAN_OR_EQUAL, CONTACTS_PLOG_TYPE_VOICE_INCOMING); contacts_filter_add_operator(filter, CONTACTS_FILTER_OPERATOR_AND); contacts_filter_add_int(filter, _contacts_phone_log.log_type, CONTACTS_MATCH_LESS_THAN_OR_EQUAL, CONTACTS_PLOG_TYPE_MMS_BLOCKED); contacts_filter_add_operator(filter, CONTACTS_FILTER_OPERATOR_AND); -- 2.34.1