apply FSL(Flora Software License)
[apps/home/ug-memo-efl.git] / include / memo-efl.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16
17 #ifndef __memo_efl_H__
18 #define __memo_efl_H__
19
20 #include <Elementary.h>
21 #include <libintl.h>
22 #include <bundle.h>
23 #include <memo-assist.h>
24 #include <dlog.h>
25
26 #define PKGNAME "ug-memo-efl"
27
28 #define _EDJ(o)            elm_layout_edje_get(o)
29 #define _(s)            dgettext(PKGNAME, s)
30 #define dgettext_noop(s)    (s)
31 #define N_(s)            dgettext_noop(s)
32
33 #define EDJE_COLOR_CLASS_SET(name, r, g, b, a)\
34     (edje_color_class_set(name, r, g, b, a, 0, 0, 0, 0, 0, 0, 0, 0))\
35
36 #define EDJE_COLOR_CLASS_GET(name, r, g, b, a)\
37     (edje_color_class_get(name, r, g, b, a, 0, 0, 0, 0, 0, 0, 0, 0))\
38
39 typedef struct ug_data {
40     Evas_Object *base;
41     struct ui_gadget *ug;
42     char buf[MEMO_BUFFER_SIZE]; /* for temporarily usage only */
43     void *h_ug;
44     Elm_Theme *th; /* customized theme for UG */
45 }ug_data_t;
46
47 void *memo_load_select_view(ug_data_t *ugd, bundle *data);
48 void *memo_load_detail_view(ug_data_t *ugd, bundle *data);
49
50 #endif /* __memo_efl_H__ */