Apply the changes of pkgmgr_info internal
[platform/core/security/krate.git] / lib / krate / app-info-internal.h
1 /*
2  *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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
15  */
16
17 #ifndef __DPM_APP_INFO_INTERNAL_H__
18 #define __DPM_APP_INFO_INTERNAL_H__
19
20 #include <glib.h>
21
22 // pkgmgr-info : include/pkgmgrinfo_basic.h
23 typedef struct icon_x {
24                 char *text;
25                 char *lang;
26                 char *section;
27                 char *size;
28                 char *resolution;
29                 char *dpi;
30 } icon_x;
31
32 // pkgmgr-info : include/pkgmgrinfo_basic.h
33 typedef struct label_x {
34                 char *name;
35                 char *text;
36                 char *lang;
37 } label_x;
38
39 typedef struct application_x {
40         char *appid;    /*attr*/
41         char *exec; /*attr*/
42         char *nodisplay;        /*attr, default: "false"*/
43         char *multiple; /*attr, default: "false"*/
44         char *taskmanage;   /*attr, default: "true"*/
45         char *type; /*attr*/
46         char *categories;   /*attr*/
47         char *extraid;  /*attr*/
48         char *hwacceleration;   /*attr, default: "default"*/
49         char *screenreader; /*attr, default: "use-system-setting"*/
50         char *mainapp;  /*attr, default: "false"*/
51         char *package;  /*set from package_x*/
52         char *recentimage;  /*attr, default: "false"*/
53         char *launchcondition;  /*attr, default: "false"*/
54         char *indicatordisplay; /*attr, default: "true"*/
55         char *portraitimg;  /*attr*/
56         char *landscapeimg; /*attr*/
57         char *effectimage_type; /*attr, default: "image"*/
58         char *guestmode_visibility; /*attr, default: "true"*/
59         char *component;        /*no xml part*/
60         char *permission_type;  /*attr, default: "normal"*/
61         char *component_type;   /*attr, default: "uiapp"*/
62         char *preload;  /*no xml part*/
63         char *submode;  /*attr, default: "false"*/
64         char *submode_mainid;   /*attr, default: "false"*/
65         char *process_pool; /*attr, default: "false"*/
66         char *installed_storage;
67         char *autorestart;  /*attr, default: "false"*/
68         char *onboot;   /*attr, default: "false"*/
69         char *support_disable;  /*set from package_x*/
70         char *ui_gadget;        /*attr, default: "false"*/
71         char *launch_mode;  /*attr, default: "single"*/
72         char *support_ambient;  /*attr, default: "false"*/
73         char *alias_appid;  /*attr*/
74         char *effective_appid;  /*attr*/
75         char *package_type; /*set from package_x*/
76         char *tep_name; /*set from package_x*/
77         char *zip_mount_file;   /*set from package_x*/
78         char *root_path;        /*set from package_x*/
79         char *api_version;  /*set from package_x*/
80         char *for_all_users; /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/
81         char *is_disabled; /**< Flag that indicates if the application is disabled or not, no xml part*/
82         char *splash_screen_display; /*attr, default: "true"*/
83         char *external_path; /**< external storage path if exists, no xml part*/
84         char *package_system; /*set from package_x*/
85         char *removable; /*set from package_x*/
86         char *package_installed_time; /*installed time after finishing of installation*/
87         char *support_mode; /*attr*/
88         GList *label;   /*element*/
89         GList *icon;    /*element*/
90         GList *image;   /*element*/
91         GList *category; /*element*/
92         GList *metadata;        /*element*/
93         GList *permission;  /*element*/
94         GList *launchconditions;        /*element*/
95         GList *notification;    /*element*/
96         GList *datashare;   /*element*/
97         GList *datacontrol; /*element*/
98         GList *background_category; /*element*/
99         GList *appcontrol; /*element*/
100         GList *splashscreens; /*element*/
101 } application_x;
102
103 // pkgmgr-info : src/pkgmgrinfo_private.h
104 typedef struct _pkgmgr_appinfo_x {
105         const char *package;
106         char *locale;
107         int app_component;
108         application_x *app_info;
109 } pkgmgr_appinfo_x;
110
111 // app-manager : src/app_info.c
112 typedef struct app_info_s {
113         char *app_id;
114         pkgmgr_appinfo_x *pkg_app_info;
115 } app_info_s;
116
117
118 #endif //__DPM_APP_INFO_INTERNAL_H__