2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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
8 * http://floralicense.org/license/
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.
21 #include <Elementary.h>
26 APP_ITEM_ALL_APPS_ROOT,
35 int unique_id; /*from db table; used for composing tree structure when
36 reading flattened db representation*/
37 char *label; /*this is the name of the application
38 viewed in homescreen layout*/
40 const char *exec; /*app exec path - used for notifications*/
42 unsigned int badge_count; /*notification count viewed in icon badge*/
43 void *data; /*pointer is used by folder to store the folder layout.*/
47 Elm_Object_Item *grid_item;
57 * @brief creates new app_item_t object
58 * @param type object type
59 * @param unique_id object id
60 * @param label label text
61 * @param icon path to icon
62 * @param exec app to exec on click
63 * @param appid application id
64 * @param data extra data
65 * @param is_removeable na the app be removed
66 * @param col object column (used only for widgets)
67 * @param row object row (used only for widgets)
68 * @param col_span object column span (used only for widgets)
69 * @param row_span object row span (used only for widgets)
72 app_item_t *app_item_create(const app_item_type_t type, const int unique_id,
73 const char *label, const char *icon, const char *exec,
74 const char *appid, void *data, bool is_removeable,
75 int col, int row, int col_span, int row_span,
76 const char *content_info);
79 * @brief Function frees all data connected with the item
80 * @param item Pointer to application item.
82 void app_item_free(app_item_t *item);
85 * @brief updates app_item_geometry
86 * @param app_item app_item to be updated
92 void app_item_geometry_update(app_item_t *app_item, int x, int y, int w, int h);
94 void app_item_update_content_info(app_item_t *app_item, const char *content_info);
96 #endif /* APP_ITEM_H_ */