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.
18 #ifndef __TASKMANAGER_H__
19 #define __TASKMANAGER_H__
21 #include <Elementary.h>
27 #define PACKAGE "taskmanager"
31 #define PREFIX "/opt/apps/org.tizen."PACKAGE
35 # define RESDIR PREFIX"/res"
38 #if !defined(LOCALEDIR)
39 #define LOCALEDIR RESDIR"/locale"
43 #define EDJDIR RESDIR"/edje"PACKAGE
46 #if !defined(IMAGEDIR)
47 # define IMAGEDIR RESDIR"/images/"PACKAGE
50 #define EDJ_NAME EDJDIR"/taskmgr.edj"
51 #define EDJ_THEME EDJDIR"/theme_taskmanager.edj"
52 #define GRP_TM "task_manager"
54 #define D_(str) dgettext("sys_string", str)
56 #define _EDJ(x) elm_layout_edje_get(x)
58 #define POPUP_TIMER 1.0
59 #define POPUP_TERMINATE_TIMER 1.5
63 Evas_Object *win, *ly, *nv, *gl;
65 Evas_Coord root_w, root_h;
67 Eina_List *applist[2];
68 /* runapp : 0, history: 1 */
70 Ecore_Timer *popup_timer;
71 Evas_Object *popup_ask;
72 Evas_Object *popup_progressbar;
74 Ecore_Timer *update_timer;
89 double mem, mem_total;
94 unsigned int oldutime, oldstime;
95 struct timeval oldtimev;
98 /* MODE_KILL_INUSE = MODE_END_INUSE * 2
99 * MODE_KILL_ALL_INUSE = MODE_END_ALL_INUSE * 2
107 MODE_DEL_ALL_HISTORY,
117 Evas_Object *load_edj(Evas_Object *parent, const char *file, const char *group);
118 int _unset_notification_level(Evas_Object *win);
119 int _set_notification_level(Evas_Object *win, Utilx_Notification_Level level);
120 Eina_Bool _exit_cb(void *data);
123 /* __TASKMANAGER_H___ */