apply FSL(Flora Software License)
[apps/core/preloaded/menu-daemon.git] / include / desktop_to_db.h
1  /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
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
7   *
8   *     http://www.tizenopensource.org/license
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
18
19 #define APP_INFO_DB_FILE "/opt/dbspace/.app_info.db"
20
21 #define DESKTOP_FILE_PATH               "/usr/share/install-info/application"
22 #define ORDER_FILE_PATH                 "/usr/share/install-info/.order/order"
23
24 #define BUF_SIZE 40960
25 #define APPS_PER_PAGE 19
26
27 typedef struct
28 {
29         /* Origin field */
30         char*           package;
31         char*           exec;
32         char*           name;
33         char*           type;
34         char*           icon;
35         char*           categories;
36         char*           version;
37         char*           mimetype;
38         int                     nodisplay;
39
40         /* SLP field */
41         char*           x_slp_service;
42         char*           x_slp_packagetype;
43         char*           x_slp_packagecategories;
44         char*           x_slp_uri;
45         int                     x_slp_taskmanage;
46         int                     x_slp_multiple;
47         int                     x_slp_removable;
48         int                     x_slp_baselayoutwidth;
49         int                     x_slp_baselayoutheight;
50         int                     x_slp_ishorizontalscale;
51         int                     x_slp_eventnotificationsetting;
52
53         /* Invisible fields in the desktop file */
54         char*           desktop;
55         int                     activate;
56 } app_info_t;
57
58
59
60 #if !defined(_MENU_COMPAT_H)
61 bool desktop_add(char* desktop, void* data);
62 bool desktop_update(char* desktop, void* data);
63 bool desktop_remove(char* desktop, void* data);
64 bool desktop_read(char *desktop, void *data);
65 void load_directory(const char *directory, int update_all);
66 char* desktop_to_pkgname(const char* desktop);
67 #endif
68
69
70
71
72
73 // End of a file