/*
- * Copyright 2012 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.tizenopensource.org/license
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * setting
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
+ *
+ * Contact: MyoungJune Park <mj2004.park@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
#include <setting-time-engine.h>
/* To set system time takes some time. It makes some time before firing heynoti of setting_time_changed.*/
-Eina_Bool setting_time_update_cb(void *data)
+int setting_time_update_cb(void *data)
{
+ retv_if(data == NULL, -1);
+ SettingTimeUG *ad = data;
+ /*
char time_str[SETTING_TIME_ENGINE_TIME_STR_LEN];
struct tm *ts;
struct tm ts_ret;
time_t ctime;
-
- retv_if(data == NULL, ECORE_CALLBACK_CANCEL);
- SettingTimeUG *ad = data;
-
// get time from datefield UI
ctime = ad->changed_time;
+ //ctime = time(NULL);
ts = localtime_r(&ctime, &ts_ret);
retv_if(!ts, 1);
strftime(time_str, SETTING_TIME_ENGINE_TIME_STR_LEN, "%H:%M", &ts_ret);
SETTING_TRACE("After setting time ::: tm is_dst --> %d", ts_ret.tm_isdst);
- SETTING_TRACE("After Setting time time_str:%s", time_str);
+ SETTING_TRACE("After Setting time time_str:%s", time_str);*/
#if SUPPORT_SCREEN_PROTECTED
pm_unlock_state(LCD_NORMAL, STAY_CUR_STATE);
#endif
evas_object_del(ad->pop_progress);
ad->pop_progress = NULL;
}
- /* other module (ex. Indicator ) receives SETTING_TIME_CHANGED heynoti */
- heynoti_publish(SETTING_TIME_CHANGED);
- ad->heynoti_timer = NULL;
- return ECORE_CALLBACK_CANCEL;
+ return 0;
}