static void __callmgr_ct_update_dialer_badge(int missed_cnt);
static int __callmgr_ct_get_missed_call_count(void);
-static void __callmgr_ct_delete_notification(void);
static void __callmgr_ct_add_notification(int missed_cnt);
static void __callmgr_ct_add_rec_reject_notification(char *number, int person_id, cm_ct_plog_presentation presentation);
return missed_cnt;
}
-static void __callmgr_ct_delete_notification(void)
-{
- /* Can not load notification with tag
- Because insert pacakge and load package are different.
- It is Notification policy */
-#if 0
- notification_h missed_noti = NULL;
-
- missed_noti = notification_load_by_tag(CALL_MISSED_TAG);
- if (missed_noti) {
- notification_error_e noti_err = NOTIFICATION_ERROR_NONE;
- dbg("missed noti");
- noti_err = notification_delete(missed_noti);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- err("Fail to notification_delete");
- }
-
- noti_err = notification_free(missed_noti);
- if (noti_err != NOTIFICATION_ERROR_NONE) {
- err("Fail to notification_free");
- }
- }
-#endif
-}
-
static int __callmgr_ct_get_caller_info(int person_id, char **name, char **caller_id)
{
contacts_error_e err = CONTACTS_ERROR_NONE;
_contacts_phone_log.extra_data2,
};
- __callmgr_ct_delete_notification();
-
noti = notification_create(NOTIFICATION_TYPE_NOTI);
if (noti == NULL) {
err("Fail to notification_create");
if (missed_cnt > 0) {
__callmgr_ct_update_dialer_badge(missed_cnt);
__callmgr_ct_add_notification(missed_cnt);
- } else {
- __callmgr_ct_delete_notification();
}
return 0;