617bb87f4c58c8575409c69bc577333caf98120c
[platform/core/appfw/pkgmgr-info.git] / include / pkgmgrinfo_basic.h
1 #ifndef __PKGMGR_INFO_BASIC_H__
2 #define __PKGMGR_INFO_BASIC_H__
3
4 #include <glib.h>
5
6 typedef struct metadata_x {
7         char *key;
8         char *value;
9 } metadata_x;
10
11 typedef struct permission_x {
12         char *type;
13         char *value;
14 } permission_x;
15
16 typedef struct icon_x {
17         char *text;
18         char *lang;
19         char *section;
20         char *size;
21         char *resolution;
22         char *dpi;
23 } icon_x;
24
25 typedef struct image_x {
26         char *text;
27         char *lang;
28         char *section;
29 } image_x;
30
31 typedef struct define_x {
32         char *path;
33         GList *allowed;
34         GList *request;
35 } define_x;
36
37 typedef struct datashare_x {
38         GList *define;
39         GList *request;
40 } datashare_x;
41
42 typedef struct description_x {
43         char *name;
44         char *text;
45         char *lang;
46 } description_x;
47
48 typedef struct label_x {
49         char *name;
50         char *text;
51         char *lang;
52 } label_x;
53
54 typedef struct author_x {
55         char *email;
56         char *href;
57         char *text;
58         char *lang;
59 } author_x;
60
61 typedef struct license_x {
62         char *text;
63         char *lang;
64 } license_x;
65
66 typedef struct condition_x {
67         char *name;
68         char *text;
69 } condition_x;
70
71 typedef struct notification_x {
72         char *name;
73         char *text;
74 } notification_x;
75
76 typedef struct appcontrol_x {
77         char *operation;
78         char *uri;
79         char *mime;
80 } appcontrol_x;
81
82 typedef struct compatibility_x {
83         char *name;
84         char *text;
85 } compatibility_x;
86
87 typedef struct datacontrol_x {
88         char *providerid;
89         char *access;
90         char *type;
91 } datacontrol_x;
92
93 typedef struct splashscreen_x {
94         char *src;
95         char *type;
96         char *dpi;
97         char *orientation;
98         char *indicatordisplay;
99         char *operation;
100         char *color_depth;
101 } splashscreen_x;
102
103 typedef struct privilege_x {
104         char *type;
105         char *value;
106 } privilege_x;
107
108 typedef struct application_x {
109         char *appid;    /*attr*/
110         char *exec;     /*attr*/
111         char *nodisplay;        /*attr, default: "false"*/
112         char *multiple; /*attr, default: "false"*/
113         char *taskmanage;       /*attr, default: "true"*/
114         char *type;     /*attr*/
115         char *categories;       /*attr*/
116         char *extraid;  /*attr*/
117         char *hwacceleration;   /*attr, default: "default"*/
118         char *screenreader;     /*attr, default: "use-system-setting"*/
119         char *mainapp;  /*attr, default: "false"*/
120         char *package;  /*set from package_x*/
121         char *recentimage;      /*attr, default: "false"*/
122         char *launchcondition;  /*attr, default: "false"*/
123         char *indicatordisplay; /*attr, default: "true"*/
124         char *portraitimg;      /*attr*/
125         char *landscapeimg;     /*attr*/
126         char *effectimage_type; /*attr, default: "image"*/
127         char *guestmode_visibility;     /*attr, default: "true"*/
128         char *component;        /*no xml part*/
129         char *permission_type;  /*attr, default: "normal"*/
130         char *component_type;   /*attr, default: "uiapp"*/
131         char *preload;  /*no xml part*/
132         char *submode;  /*attr, default: "false"*/
133         char *submode_mainid;   /*attr, default: "false"*/
134         char *process_pool;     /*attr, default: "false"*/
135         char *installed_storage;
136         char *autorestart;      /*attr, default: "false"*/
137         char *onboot;   /*attr, default: "false"*/
138         char *support_disable;  /*set from package_x*/
139         char *ui_gadget;        /*attr, default: "false"*/
140         char *launch_mode;      /*attr, default: "single"*/
141         char *support_ambient;  /*attr, default: "false"*/
142         char *setup_appid;      /*attr*/
143         char *alias_appid;      /*attr*/
144         char *effective_appid;  /*attr*/
145         char *package_type;     /*set from package_x*/
146         char *tep_name; /*set from package_x*/
147         char *zip_mount_file;   /*set from package_x*/
148         char *root_path;        /*set from package_x*/
149         char *api_version;      /*set from package_x*/
150         char *for_all_users; /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/
151         char *is_disabled; /**< Flag that indicates if the application is disabled or not, no xml part*/
152         char *splash_screen_display; /*attr, default: "true"*/
153         char *external_path; /**< external storage path if exists, no xml part*/
154         char *package_system; /*set from package_x*/
155         char *removable; /*set from package_x*/
156         char *package_installed_time; /*installed time after finishing of installation*/
157         char *support_mode; /*attr*/
158         GList *label;   /*element*/
159         GList *icon;    /*element*/
160         GList *image;   /*element*/
161         GList *category; /*element*/
162         GList *metadata;        /*element*/
163         GList *permission;      /*element*/
164         GList *launchconditions;        /*element*/
165         GList *notification;    /*element*/
166         GList *datashare;       /*element*/
167         GList *datacontrol; /*element*/
168         GList *background_category; /*element*/
169         GList *appcontrol; /*element*/
170         GList *splashscreens; /*element*/
171 } application_x;
172
173 typedef struct package_x {
174         char *for_all_users;            /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/
175         char *package;          /**< package name, attr*/
176         char *version;          /**< package version, attr*/
177         char *installlocation;          /**< package install location, attr, default: "internal-only"*/
178         char *ns;               /**<name space, attr*/
179         char *removable;                /**< package removable flag, no xml part*/
180         char *preload;          /**< package preload flag, no xml part*/
181         char *readonly;         /**< package readonly flag, no xml part*/
182         char *update;                   /**< package update flag, no xml part*/
183         char *appsetting;               /**< package app setting flag, attr, default: "false"*/
184         char *system;           /**< package system flag, no xml part*/
185         char *type;             /**< package type, attr*/
186         char *package_size;             /**< package size for external installation, attr*/
187         char *installed_time;           /**< installed time after finishing of installation, no xml part*/
188         char *installed_storage;                /**< package currently installed storage, no xml part*/
189         char *storeclient_id;           /**< id of store client for installed package, attr*/
190         char *mainapp_id;               /**< app id of main application, no xml part*/
191         char *package_url;              /**< app id of main application, attr*/
192         char *root_path;                /**< package root path, attr*/
193         char *csc_path;         /**< package csc path, attr*/
194         char *nodisplay_setting;                /**< package no display setting menu, attr, default: "false"*/
195         char *support_mode; /**< package support mode, attr*/
196         char *support_disable;          /**< package support disable flag, attr, default: "false"*/
197         char *api_version;              /**< minimum version of API package using, attr, default: patch_version trimmed version from tizen_full_version*/
198         char *tep_name; /*no xml part*/
199         char *zip_mount_file;   /*no xml part*/
200         char *backend_installer;                /**< package backend installer, attr*/
201         char *external_path; /**< external storage path if exists, no xml part*/
202         GList *icon;            /**< package icon, element*/
203         GList *label;           /**< package label, element*/
204         GList *author;          /**< package author, element*/
205         GList *description;             /**< package description, element*/
206         GList *license;         /**< package license, no xml part*/
207         GList *privileges;      /**< package privileges, element*/
208         GList *application;             /**< package's application, element*/
209         GList *compatibility;           /**< package compatibility, element*/
210         GList *deviceprofile;           /**< package device profile, element*/
211 } package_x;
212
213 typedef struct package_x manifest_x;
214
215 void pkgmgrinfo_basic_free_application(application_x *application);
216 void pkgmgrinfo_basic_free_package(package_x *package);
217
218 #endif