[Internal: smack patch , dbus auto-activation patch ]
[framework/system/oma-dm-agent.git] / src / agent / common / dm_common.c
index e16175d..7c9e754 100755 (executable)
@@ -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;