Tizen release 1.0
[apps/core/preloaded/calendar.git] / src / view.h
1 /*
2
3 Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
4
5 This file is part of org.tizen.efl-calendar
6 Written by Taeho Kang <taeho84.kang@samsung.com>
7
8 PROPRIETARY/CONFIDENTIAL
9
10 This software is the confidential and proprietary information of
11 SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
12 disclose such Confidential Information and shall use it only in
13 accordance with the terms of the license agreement you entered
14 into with SAMSUNG ELECTRONICS.
15
16 SAMSUNG make no representations or warranties about the suitability
17 of the software, either express or implied, including but not limited
18 to the implied warranties of merchantability, fitness for a particular
19 purpose, or non-infringement. SAMSUNG shall not be liable for any
20 damages suffered by licensee as a result of using, modifying or
21 distributing this software or its derivatives.
22
23 */
24
25
26 #ifndef __CALENDAR_VIEW_H__
27 #define __CALENDAR_VIEW_H__
28
29 #include "cld.h"
30
31 /* view-edit */
32 void cal_edit_create_view(struct appdata *ad, Evas_Object *parent);
33
34 /* view-acct */
35 void cal_account_create_view(struct appdata *ad, Evas_Object *parent);
36
37 void cal_main_update_title_text(Evas_Object *title, enum cld_view v, struct tm *t, int week_start);
38 void cal_main_change_view(Evas_Object *ly, enum cld_view v);
39 void cal_main_update_view(void* data);
40 void cal_main_create_view(struct appdata *ad);
41 void cal_main_add_changed_callback(struct appdata * ad);
42
43 Evas_Object* cal_year_create_view(struct appdata *ad, Evas_Object *ly);
44 Evas_Object* cal_month_create_view(struct appdata *ad, Evas_Object *ly);
45 Evas_Object* cal_week_create_view(struct appdata *ad, Evas_Object *ly);
46 Evas_Object* cal_day_create_view(struct appdata *ad, Evas_Object *ly);
47 Evas_Object* cal_list_create_view(struct appdata *ad, Evas_Object *ly);
48 Evas_Object* cal_list_delete_view_create(Evas_Object *parent, struct appdata *ad);
49
50 void cal_year_update_view(Evas_Object *ly);
51 void cal_month_update_view(Evas_Object *ly);
52 void cal_week_update_view(Evas_Object *ly);
53 void cal_list_update_view(Evas_Object *ly);
54 void cal_day_update_view(Evas_Object *ly);
55 void cal_list_delete_update_view(Evas_Object *ly);
56
57
58 /* month */
59 Evas_Object* cal_month_calendar_create_content(struct tm *t, struct appdata *ad,
60                 Evas_Object *ly, Eina_Bool tmp);
61 void cal_month_calendar_update_content(Evas_Object *ly, struct tm *t);
62 int cal_month_get_weekline(Evas_Object *ly);
63 void cal_month_calendar_update_select(Evas_Object *month);
64
65
66 /* time block in day view */
67 Evas_Object* cal_day_create_time_block(struct tm *tm, struct appdata *ad, Evas_Object *parent);
68 void cal_day_time_update_time_block(Evas_Object *ly, struct tm *tm);
69 void cal_day_update_genlist(Evas_Object *ly);
70
71 void cal_list_scroll_today(struct appdata* ad);
72
73 #endif /* __CALENDAR_VIEW_H__ */
74