Tizen 2.0 Release
[apps/home/ug-memo-efl.git] / include / memo-efl.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 #ifndef __memo_efl_H__
19 #define __memo_efl_H__
20
21 #include <Elementary.h>
22 #include <libintl.h>
23 #include <bundle.h>
24 #include <ui-gadget.h>
25 #include <memo-assist.h>
26 #include <dlog.h>
27
28 #define PKGNAME "ug-memo-efl"
29
30 #define _EDJ(o)            elm_layout_edje_get(o)
31 #define _(s)            dgettext(PKGNAME, s)
32 #define dgettext_noop(s)    (s)
33 #define N_(s)            dgettext_noop(s)
34
35 #define EDJE_COLOR_CLASS_SET(name, r, g, b, a)\
36     (edje_color_class_set(name, r, g, b, a, 0, 0, 0, 0, 0, 0, 0, 0))\
37
38 #define EDJE_COLOR_CLASS_GET(name, r, g, b, a)\
39     (edje_color_class_get(name, r, g, b, a, 0, 0, 0, 0, 0, 0, 0, 0))\
40
41 typedef struct ug_data {
42     Evas_Object *base;
43     ui_gadget_h ug;
44     char buf[MEMO_BUFFER_SIZE]; /* for temporarily usage only */
45     void *h_ug;
46     Elm_Theme *th; /* customized theme for UG */
47 }ug_data_t;
48
49 Eina_Bool edit_view_pre_condition_check(service_h service);
50 void *memo_load_edit_view(ug_data_t *ugd, service_h service);
51 void memo_del_edit_view(void *h_ev);
52 void *memo_load_select_view(ug_data_t *ugd, service_h service);
53 void *memo_load_detail_view(ug_data_t *ugd, service_h service);
54
55 #endif /* __memo_efl_H__ */