8ad250f5663aa28adb4e0ef627501cf3ffadfb5d
[apps/home/wrt-setting.git] / webapp-common / popup.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://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 WEB_SRC_SETTING_WEBAPP_COMMON_POPUP_H_
18 #define WEB_SRC_SETTING_WEBAPP_COMMON_POPUP_H_
19
20 #include <Evas.h>
21
22 namespace WebAppCommonSetting {
23
24 class Popup
25 {
26     Evas_Object *m_win;
27     Evas_Object *m_pu;
28
29   public:
30     bool showPopup(const char *desc,
31                    Evas_Smart_Cb ok_cb,
32                    Evas_Smart_Cb cancel_cb,
33                    void *data);
34     void hidePopup(void);
35
36     Popup(void);
37     ~Popup(void);
38 };
39
40 } /* WebAppCommonSetting */
41
42 #endif /* WEB_SRC_SETTING_WEBAPP_COMMON_POPUP_H_ */