Initialize Tizen 2.3
[apps/home/ug-nfc-efl.git] / ug-nfc-share-efl / include / ug-nfc-share-popup.h
1 /*
2   * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
3   *
4   * Licensed under the Flora License, Version 1.1 (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://floralicense.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 __UG_NFC_SHARE_POPUP_H__
18 #define __UG_NFC_SHARE_POPUP_H__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
23
24 #include "ug-nfc-share-main.h"
25
26 typedef void (*UG_NFC_POPUP_USER_RESP_CB)(void *data, Evas_Object *obj, void *event_info);
27
28 enum {
29         UG_NFC_POPUP_RESP_NONE = -1,
30         UG_NFC_POPUP_RESP_TIMEOUT = -2,
31         UG_NFC_POPUP_RESP_OK = -3,
32         UG_NFC_POPUP_RESP_CANCEL = -4,
33         UG_NFC_POPUP_RESP_CLOSE = -5
34 };
35
36
37 Evas_Object *ug_nfc_share_create_popup(void *data,
38                                     Evas_Object *parent_layout,
39                                     const char *description,
40                                     const char *btn1_text,
41                                     int btn1_type,
42                                     const char *btn2_text,
43                                     int btn2_type,
44                                     const char *btn3_text,
45                                     int btn3_type,
46                                     bool is_alert_type,
47                                     bool enable_timeout,
48                                     UG_NFC_POPUP_USER_RESP_CB response_cb);
49 void ug_nfc_share_close_popup(Evas_Object* popup);
50
51 #ifdef __cplusplus
52 }
53 #endif
54
55
56 #endif /*__UG_NFC_SHARE_POPUP_H__*/
57