b7a882146248ca8adbe028e90448fdf931b34590
[apps/core/preloaded/calendar.git] / ug / list / ug.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://www.tizenopensource.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
20
21
22
23 #ifndef __CALENDAR_UG_H__
24 #define __CALENDAR_UG_H__
25
26 #include <ui-gadget-module.h>
27 #include "cld.h"
28
29 enum cld_ug_mode {
30         _MODE_UNKNOWN = 0,
31         _MODE_GET_EVT,
32         _MODE_GET_VCS,
33         _MODE_VIEW_VCS,
34 };
35
36 struct ug_data {
37         Evas_Object *base;
38         struct ui_gadget *ug;
39
40         Evas_Object *nv;
41         Evas_Object *cont;
42         Evas_Object *bg;
43
44         enum cld_ug_mode mode;
45         char *caller;
46         char *vcs_file;
47
48         int is_hour24;
49
50         Elm_Theme *theme;
51 };
52
53 void cal_list_ug_create(const char *title, struct ug_data *ugd);
54
55 #endif /* __CALENDAR_UG_H__ */