Initialize Tizen 2.3
[apps/osp/Internet.git] / inc / IntConfirmationPopup.h
1 //
2
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.1 (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://floralicense.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 // !Internet
19 /*@file:    IntConfirmationPopup.h
20  *@brief:       This header file contains the declarations of the ConfirmationPopup
21  *
22  */
23
24 #ifndef CONFIRMATIONPOPUP_H_
25 #define CONFIRMATIONPOPUP_H_
26
27 #include <FBase.h>
28 #include <FUi.h>
29
30 class ConfirmationPopup
31   : public Tizen::Ui::Controls::Popup
32   , public Tizen::Ui::IPropagatedKeyEventListener
33   {
34 public:
35         ConfirmationPopup(void);
36
37         virtual ~ConfirmationPopup(void);
38
39         bool Initialize(void);
40
41         void AddActionListener(Tizen::Ui::IActionEventListener& listener);
42
43         Tizen::Base::String GetMessage(void);
44
45         virtual result OnTerminating(void);
46
47         void RemoveActionListener(Tizen::Ui::IActionEventListener& listener);
48
49         void setMessage(Tizen::Base::String& str);
50
51         //IPropagatedKeyEventListener
52         virtual bool    OnKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
53         virtual bool    OnKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
54         virtual bool    OnPreviewKeyPressed (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
55         virtual bool    OnPreviewKeyReleased (Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
56
57
58 private:
59
60         Tizen::Base::String __message;
61         Tizen::Ui::Controls::Button* __pNoButton;
62         Tizen::Ui::Controls::Label* __pPopupText;
63         Tizen::Ui::Controls::Button* __pYesButton;
64 };
65
66 #endif /* CONFIRMATIONPOPUP_H_ */