2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * Created on: Oct 12, 2013
24 #ifndef SETTING_BATTERY_H_
25 #define SETTING_BATTERY_H_
27 #include <Elementary.h>
32 struct _battery_menu_item {
35 void (*func)(void *data, Evas_Object *obj, void *event_info);
47 BATT_MENU_POWER_SAVING
50 struct _battery_info {
55 Ecore_Timer * battery_timer;
59 bool prev_charging_state;
64 // ----------------method----------------------//
66 Evas_Object* _create_battery_list(void* data);
68 Evas_Object *_battery_status_cb(void *data);
69 void _clear_battery_cb(void *data , Evas *e, Evas_Object *obj, void *event_info);
70 Eina_Bool _clear_battery_list_cb(void *data, Elm_Object_Item *it);
71 void _start_timer_for_update(Evas_Object * obj);
73 void _initialize_battery();
75 #endif /* SETTING_BATTERY_H_ */