APPLY_RSA
[apps/home/ug-memo-efl.git] / include / memo_autolink.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 #ifndef __MEMO_AUTOLINK_H__
19 #define __MEMO_AUTOLINK_H__
20
21 enum anchor_t {
22     NOT_ANCHOR = 0,
23     ANCHOR_PHONE,
24     ANCHOR_EMAIL,
25     ANCHOR_URL,
26 };
27
28 struct anchor_popup_item_t {
29     char *label;
30     void (*response) (void *data, Evas_Object *obj, void *event_info);
31     const char *domain; /* for i18n */
32 };
33
34 typedef struct autolink_data_t {
35     Evas_Object *win_main;
36     Evas_Object *popup;
37     enum anchor_t type;
38     char *info;
39 } autolink_data;
40
41 GString *autolink_add_anchor(const char *content);
42 void autolink_anchor_clicked_cb(void *data, Evas_Object *obj, void *event_info);
43
44 #endif                /* __MEMO_AUTOLINK_H__ */