43784c4010b5746c7cb0c5edbe996730ff2104f8
[apps/core/preloaded/calendar.git] / src / view.h
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.0 (the "License");
6   *  you may not use this file except in compliance with the License.
7   *  You may obtain a copy of the License at
8   *
9   *       http://floralicense.org/license/
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17
18
19 #ifndef __CALENDAR_VIEW_H__
20 #define __CALENDAR_VIEW_H__
21
22 #include "cld.h"
23
24 /* view-acct */
25 void cal_account_create_view(struct appdata *ad, Evas_Object *parent);
26
27 void cal_main_update_title_text(struct appdata *ad);
28 void cal_main_change_view(Evas_Object *ly, enum cld_view v);
29 void cal_main_update_view(void* data);
30 void cal_main_rotation(void *data);
31 void cal_main_create_view(struct appdata *ad);
32
33 void cal_main_add_db_changed_callback(struct appdata * ad);
34 void cal_main_remove_db_changed_callback(struct appdata * ad);
35
36 Evas_Object* cal_year_create_view(struct appdata *ad, Evas_Object *ly);
37 Evas_Object* cal_month_create_view(struct appdata *ad, Evas_Object *ly);
38 Evas_Object* cal_week_create_view(struct appdata *ad, Evas_Object *ly);
39 Evas_Object* cal_day_create_view(struct appdata *ad, Evas_Object *ly);
40 Evas_Object* cal_list_create_view(struct appdata *ad, Evas_Object *ly);
41 Evas_Object* cal_list_delete_view_create(Evas_Object *parent, struct appdata *ad);
42 Evas_Object* cal_list_delete_view_create_more_events(Evas_Object *parent, struct appdata *ad, int idx);
43 Evas_Object *cal_search_list_create_list(struct appdata *ad, Evas_Object *parent);
44
45 void cal_year_update_view(Evas_Object *ly);
46 void cal_month_update_view(Evas_Object *ly);
47 void cal_week_update_view(Evas_Object *ly);
48 void cal_list_update_view(Evas_Object *ly);
49 void cal_day_update_view(Evas_Object *ly);
50 void cal_list_delete_update_view(Evas_Object *ly);
51 void cal_search_list_update_list(Evas_Object *ly);
52
53 /* month */
54 Evas_Object* cal_month_calendar_create_view(struct appdata *ad,
55                 Evas_Object *ly, Eina_Bool tmp);
56 void cal_month_calendar_update_content(Evas_Object *ly, struct tm *t);
57 int cal_month_calendar_get_weekline(Evas_Object *ly);
58 void cal_month_calendar_update_select(Evas_Object *month);
59 void cal_month_calendar_set_wday_text(Evas_Object *ly, int start);
60
61
62 /* time block in day view */
63 void cal_day_update_genlist(Evas_Object *ly);
64 void cal_day_change_content_display_status(Evas_Object *ly);
65
66 void cal_list_scroll_today(struct appdata* ad);
67
68 Elm_Object_Item* cal_day_list_create_view(struct appdata *ad, Evas_Object *main);
69
70 Evas_Object* cal_todo_create_view(struct appdata *ad, Evas_Object *main);
71 void cal_todo_update_view(Evas_Object *ly);
72
73 void cal_main_set_main_content(void *data, Evas_Object *content);
74
75 #endif /* __CALENDAR_VIEW_H__ */