1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://floralicense.org/license/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(_VIEW_H)
#define _VIEW_H
typedef enum {
NO_CALLBACK = -1,
NORMAL_CALLBACK,
DELETE_CALLBACK,
} mode_e;
Evas_Object *view_get_base_layout(void);
void view_set_base_layout(Evas_Object *layout);
Eina_List *view_get_local_data(void);
void view_set_local_data( Eina_List *local_data);
Evas_Object *view_get_genlist(void);
void view_set_genlist(Evas_Object *genlist);
Evas_Object *view_get_naviframe(void);
Evas_Object *view_get_conformant(void);
void view_free_s_info();
void view_create(void);
void view_alarm_create(void);
char* _gl_text_get(void *data, Evas_Object *obj, const char *part);
Evas_Object* _gl_alarm_set_icon_get(void *data, Evas_Object *obj, const char *part);
void _gl_del(void *data, Evas_Object *obj);
Evas_Object *view_get_timepicker(void);
Evas_Object *view_create_win(const char *pkg_name);
Evas_Object *view_create_conformant_without_indicator(Evas_Object *win);
Evas_Object *view_create_layout(Evas_Object *parent, const char *file_path, const char *group_name, Eext_Event_Cb cb_function, void *user_data);
Evas_Object *view_create_layout_by_theme(Evas_Object *parent, const char *classname, const char *group, const char *style);
Evas_Object *view_create_datetime(Evas_Object *parent, const char *style ,Eext_Circle_Surface *local_circle_surface);
struct tm *view_get_datetime();
Eina_Bool view_get_is_select_mode(void);
void view_set_is_select_mode( Eina_Bool is_edit_mode);
void go_to_normal();
void view_destroy(void);
void view_alarm_destroy(void);
void view_set_image(Evas_Object *parent, const char *part_name, const char *image_path);
void view_set_text(Evas_Object *parent, const char *part_name, const char *text);
Evas_Object *view_create_naviframe(Evas_Object *parent);
Elm_Object_Item *view_push_item_to_naviframe(Evas_Object *nf, Evas_Object *genlist, Elm_Naviframe_Item_Pop_Cb _pop_cb, void *cb_data);
Evas_Object *view_create_circle_genlist(Evas_Object *parent);
Elm_Object_Item *view_append_item_to_genlist(Evas_Object *genlist, const char *style, const void *data, Evas_Smart_Cb _clicked_cb, const void *cb_data);
Elm_Object_Item *view_alarm_find_item_from_genlist(Evas_Object *genlist, const char *val);
Evas_Object *view_set_button(Evas_Object *parent, const char *part_name, const char *style, const char *image_path, const char *text,
Evas_Object_Event_Cb down_cb, Evas_Object_Event_Cb up_cb, Evas_Smart_Cb clicked_cb, void *data);
void view_create_text_popup(Evas_Object *parent, double timeout, const char *text, int id , mode_type e);
Evas_Object *view_create_checkbox(Evas_Object *parent, const char *event, Evas_Smart_Cb func, void *data);
void view_set_content_to_part(Evas_Object *layout, const char *part_name, Evas_Object *content);
void view_send_signal_to_edje(Evas_Object *layout, const char *signal, const char *source);
void _timeout_cb(void *data, Evas_Object *obj, void *event_info);
void _timeout_del_cb(void *data, Evas_Object *obj, void *event_info);
void view_alarm_schedule_alarm(struct genlist_item_data *gendata);
#endif
|