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