3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Flora License, Version 1.1 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 #ifndef __TASKMANAGER_H__
22 #define __TASKMANAGER_H__
24 #include <Elementary.h>
30 #define PACKAGE "taskmanager"
34 #define PREFIX "/usr/apps/org.tizen."PACKAGE
38 # define RESDIR PREFIX"/res"
41 #if !defined(LOCALEDIR)
42 #define LOCALEDIR RESDIR"/locale"
46 #define EDJDIR RESDIR"/edje"PACKAGE
49 #if !defined(IMAGEDIR)
50 # define IMAGEDIR RESDIR"/images/"PACKAGE
53 #define EDJ_NAME EDJDIR"/taskmgr.edj"
54 #define EDJ_THEME EDJDIR"/theme_taskmanager.edj"
55 #define GRP_TM "task_manager"
57 #define S_(str) dgettext("sys_string", str)
58 #define T_(str) gettext(str)
61 #define _EDJ(x) elm_layout_edje_get(x)
63 #define POPUP_TIMER 1.0
64 #define POPUP_TERMINATE_TIMER 1.5
68 Evas_Object *win, *ly, *nv, *gl;
70 Evas_Coord root_w, root_h;
72 Eina_List *applist[2];
73 /* runapp : 0, history: 1 */
75 Ecore_Timer *popup_timer;
76 Evas_Object *popup_ask;
77 Evas_Object *popup_progressbar;
79 Ecore_Timer *update_timer;
80 Ecore_Timer *exit_timer;
82 Ecore_Timer *killall_timer;
97 double mem, mem_total;
102 unsigned int oldutime, oldstime;
103 struct timeval oldtimev;
106 /* MODE_KILL_INUSE = MODE_END_INUSE * 2
107 * MODE_KILL_ALL_INUSE = MODE_END_ALL_INUSE * 2
115 MODE_DEL_ALL_HISTORY,
125 Evas_Object *load_edj(Evas_Object *parent, const char *file, const char *group);
126 int _unset_notification_level(Evas_Object *win);
127 int _set_notification_level(Evas_Object *win, Utilx_Notification_Level level);
128 void _key_grab(struct appdata *ad);
129 Eina_Bool _exit_cb(void *data);
130 void _check_show_state(void);
133 /* __TASKMANAGER_H___ */