Change-Id: If4e149b8373eeb1c0b4647b5fad4661a77f6ddd1
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
CONTACTS_USAGE_STAT_TYPE_INCOMING_EMAIL,/**< Incoming email (Since 3.0) */
CONTACTS_USAGE_STAT_TYPE_MISSED_CALL, /**< Missed call (Since 3.0) */
CONTACTS_USAGE_STAT_TYPE_REJECTED_CALL, /**< Rejected call (Since 3.0) */
- CONTACTS_USAGE_STAT_TYPE_BLOCKED_CALL /**< Blocked call (Since 3.0) */
+ CONTACTS_USAGE_STAT_TYPE_BLOCKED_CALL, /**< Blocked call (Since 3.0) */
+ CONTACTS_USAGE_STAT_TYPE_BLOCKED_MSG /**< Blocked message (Since 3.0) */
}contacts_usage_type_e;
/**
case CONTACTS_PLOG_TYPE_VIDEO_BLOCKED:
type = CONTACTS_USAGE_STAT_TYPE_BLOCKED_CALL;
break;
+
+ case CONTACTS_PLOG_TYPE_SMS_BLOCKED:
+ case CONTACTS_PLOG_TYPE_MMS_BLOCKED:
+ type = CONTACTS_USAGE_STAT_TYPE_BLOCKED_MSG;
+ break;
+
default:
- return CONTACTS_ERROR_NONE;
+ ERR("unknown log type (%d)", phonelog->log_type);
+ return CONTACTS_ERROR_INVALID_PARAMETER;
}
snprintf(query, sizeof(query),