2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 #ifndef __TASKMANAGER_H__
21 #define __TASKMANAGER_H__
23 #include <Elementary.h>
29 #define PACKAGE "taskmanager"
33 #define PREFIX "/opt/apps/org.tizen."PACKAGE
37 # define RESDIR PREFIX"/res"
40 #if !defined(LOCALEDIR)
41 #define LOCALEDIR RESDIR"/locale"
45 #define EDJDIR RESDIR"/edje"PACKAGE
48 #if !defined(IMAGEDIR)
49 # define IMAGEDIR RESDIR"/images/"PACKAGE
52 #define EDJ_NAME EDJDIR"/taskmgr.edj"
53 #define EDJ_THEME EDJDIR"/theme_taskmanager.edj"
54 #define GRP_TM "task_manager"
56 #define S_(str) dgettext("sys_string", str)
57 #define T_(str) dgettext(PACKAGE, str)
60 #define _EDJ(x) elm_layout_edje_get(x)
62 #define POPUP_TIMER 1.0
63 #define POPUP_TERMINATE_TIMER 1.5
67 Evas_Object *win, *ly, *nv, *gl;
69 Evas_Coord root_w, root_h;
71 Eina_List *applist[2];
72 /* runapp : 0, history: 1 */
74 Ecore_Timer *popup_timer;
75 Evas_Object *popup_ask;
76 Evas_Object *popup_progressbar;
78 Ecore_Timer *update_timer;
79 Ecore_Timer *exit_timer;
94 double mem, mem_total;
99 unsigned int oldutime, oldstime;
100 struct timeval oldtimev;
103 /* MODE_KILL_INUSE = MODE_END_INUSE * 2
104 * MODE_KILL_ALL_INUSE = MODE_END_ALL_INUSE * 2
112 MODE_DEL_ALL_HISTORY,
122 Evas_Object *load_edj(Evas_Object *parent, const char *file, const char *group);
123 int _unset_notification_level(Evas_Object *win);
124 int _set_notification_level(Evas_Object *win, Utilx_Notification_Level level);
125 Eina_Bool _exit_cb(void *data);
128 /* __TASKMANAGER_H___ */