X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fagent%2Fcommon%2Fdm_common.c;h=7c9e754163f4395cd5776ffd13c40d3c68fffc2a;hb=366eeefa34db92b1dd364d671c468a3c6cdecc0b;hp=e16175d1a34aac82beef2faf8e0baae1ea8b266e;hpb=c5e32296bcc6d8f8f6f05c9810c4013a209fe970;p=framework%2Fsystem%2Foma-dm-agent.git diff --git a/src/agent/common/dm_common.c b/src/agent/common/dm_common.c index e16175d..7c9e754 100755 --- a/src/agent/common/dm_common.c +++ b/src/agent/common/dm_common.c @@ -177,12 +177,14 @@ DM_ERROR reset_dm() _DEBUG_INFO("--------------------------------------------------------------------------------------------"); /* ddf mo db reset */ ret = clean_dm_mo(); + _DEBUG_INFO("clean_dm_mo [%d]", ret); if (ret != DM_OK) goto error; /* engine status db reset */ //ret = DB_Delete_Table(); ret = DB_Reset_Table(); + _DEBUG_INFO("DB_Reset_Table [%d]", ret); if (ret != DM_OK) goto error; @@ -210,7 +212,6 @@ DM_ERROR auto_operate_service_engine() engine_status *status = NULL; if (IsExist_Engine_id(FUMO_SERVICE_ENGINE) != 0) { - printf("engine id VALUE : %d ", FUMO_SERVICE_ENGINE); _DEBUG_INFO("engine id VALUE : %d ", FUMO_SERVICE_ENGINE); ret = Get_Engine_Status(FUMO_SERVICE_ENGINE, &status); @@ -231,7 +232,6 @@ DM_ERROR auto_operate_service_engine() } if (IsExist_Engine_id(LAWMO_SERVICE_ENGINE) != 0) { - printf("engine id VALUE : %d ", LAWMO_SERVICE_ENGINE); _DEBUG_INFO("engine id VALUE : %d ", LAWMO_SERVICE_ENGINE); ret = Get_Engine_Status(LAWMO_SERVICE_ENGINE, &status); @@ -560,6 +560,13 @@ DM_ERROR add_alarm_item(Reminder_Interval interval, char *alarm_type, CONFIG_TYP } break; */ + case INTERVAL_30MINUTES: + { + /* 30 minutes */ + alarm_info->repeat_type = REPEAT; + alarm_info->repeat_value = ((1 * 30) * 60); + } + break; case INTERVAL_1HOUR: { /* 1 hour */ @@ -1239,7 +1246,7 @@ void get_call_sate(int *call_state) * 1 : dont service * 2 : ? */ - if (vconf_get_int(VCONFKEY_TELEPHONY_CALL_STATE, call_state) != 0) { + if (vconf_get_int(VCONFKEY_CALL_STATE, call_state) != 0) { *call_state = -1; _DEBUG_INFO("end, call state : %d", *call_state); _EXTERN_FUNC_EXIT;