Add spec file
[profile/mobile/apps/native/homescreen-efl.git] / inc / cluster_data.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
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
7  *
8  * http://floralicense.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 #ifndef __CLUSTER_DATA_H__
18 #define __CLUSTER_DATA_H__
19
20 #include <app.h>
21 #include <Elementary.h>
22 #include <widget_service.h>
23
24 typedef struct {
25         int widget_id;
26         int page_idx;
27         int pos_y;
28         int pos_x;
29         char *pkg_name;
30         char *content_info;
31         widget_size_type_e type;
32         double period;
33         int allow_duplicate;
34         Evas_Object *widget_layout;
35         Evas_Object *widget_content;
36 } widget_data_t;
37
38 void cluster_data_init(void);
39 Eina_List *cluster_data_get_widget_list(void);
40
41 int cluster_data_get_page_count();
42 void cluster_data_set_page_count(int count);
43
44 void cluster_data_insert_widget(const char* pkg_name, const char* content_info, int type);
45 void cluster_data_insert(widget_data_t *item);
46 void cluster_data_delete(widget_data_t *item);
47 void cluster_data_update(widget_data_t *item);
48
49 #endif /* __CLUSTER_DATA_H__ */