[misc] Add tag & release pkg
[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://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_UG_H__
20 #define __CALENDAR_UG_H__
21
22 #include <ui-gadget-module.h>
23 #include "cld.h"
24
25 #define CAL_APPCONTROL_SELECTION_MODE "selectionMode"
26 #define CAL_APPCONTROL_SELECTION_MODE_SINGLE "single"
27 #define CAL_APPCONTROL_SELECTION_MODE_MULTIPLE "multiple"
28
29 #define CAL_APPCONTROL_RESULT "result"
30 #define CAL_APPCONTROL_RESULT_SUCCESS "success"
31 #define CAL_APPCONTROL_RESULT_CANCEL "cancel"
32 #define CAL_APPCONTROL_RESULT_FAIL "fail"
33
34 #define CAL_APPCONTROL_PATH "path"
35
36 enum cld_ug_mode {
37         _MODE_UNKNOWN = 0,
38         _MODE_GET_EVT,
39         _MODE_GET_VCS,
40         _MODE_VIEW_VCS,
41         _MODE_SET_SNOTE,
42 };
43
44 typedef enum {
45         SELECTION_MODE_UNKNOWN = 0,
46         SELECTION_MODE_SINGLE,
47         SELECTION_MODE_MULTIPLE,
48         SELECTION_MODE_MAX,
49 }cal_appcontrol_selection_mode;
50
51 struct ug_data {
52         Evas_Object *base;
53         ui_gadget_h ug;
54
55         Evas_Object *naviframe;
56         Evas_Object *cont;
57         Evas_Object *bg;
58
59         enum cld_ug_mode mode;
60         char *caller;
61         char *vcs_file;
62
63         Elm_Theme *theme;
64
65         cal_appcontrol_selection_mode selection_mode;
66         cal_appcontrol_item_type item_type;
67 };
68
69 void cal_list_ug_create(const char *title, struct ug_data *ugd);
70
71 #endif /* __CALENDAR_UG_H__ */