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