Add create/destroy in krate-admin-cli
[platform/core/security/krate.git] / tools / apps / kaskit / include / kaskit.h
1 /*
2  * Tizen Krate launcher application
3  *
4  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 #ifndef __KASKIT_H__
20 #define __KASKIT_H__
21
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <string.h>
25 #include <limits.h>
26 #include <app.h>
27 #include <app_common.h>
28 #include <bundle.h>
29 #include <dlog.h>
30 #include <Elementary.h>
31
32 #ifdef  LOG_TAG
33 #undef  LOG_TAG
34 #endif
35 #define LOG_TAG "org.tizen.kaskit"
36
37 #if !defined(PACKAGE)
38 #define PACKAGE "org.tizen.kaskit"
39 #endif
40
41 typedef struct {
42         Evas_Object* win;
43         Evas_Object* conform;
44         Evas_Object* layout;
45         Evas_Object* panel;
46         Evas_Object* scroller;
47         Evas_Object* app_view;
48         Eina_List* app_icon_list;
49         char* edj_path;
50 } uidata_s;
51
52 void _create_kaskit_window();
53 void _set_kaskit_window_title(const char *title);
54 void _set_kaskit_window_exit_cb();
55
56 void _create_app_icon(const char* pkg_id, const char* app_id, const char* label, const char* icon, bool removable);
57 void _destroy_app_icon(const char* pkg_id);
58 void _update_app_icon_badge(const char* app_id, unsigned int count);
59
60 void _icon_clicked_cb(const char *app_id);
61 void _icon_uninstalled_cb(const char *app_id);
62
63 #endif /* __KASKIT_H__ */