3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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.
19 /*@file: IntConfirmationPopup.h
20 *@brief: This header file contains the declarations of the ConfirmationPopup
24 #ifndef CONFIRMATIONPOPUP_H_
25 #define CONFIRMATIONPOPUP_H_
30 class ConfirmationPopup
31 : public Tizen::Ui::Controls::Popup
32 , public Tizen::Ui::IPropagatedKeyEventListener
35 ConfirmationPopup(void);
37 virtual ~ConfirmationPopup(void);
39 bool Initialize(void);
41 void AddActionListener(Tizen::Ui::IActionEventListener& listener);
43 Tizen::Base::String GetMessage(void);
45 virtual result OnTerminating(void);
47 void RemoveActionListener(Tizen::Ui::IActionEventListener& listener);
49 void setMessage(Tizen::Base::String& str);
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;}
60 Tizen::Base::String __message;
61 Tizen::Ui::Controls::Button* __pNoButton;
62 Tizen::Ui::Controls::Label* __pPopupText;
63 Tizen::Ui::Controls::Button* __pYesButton;
66 #endif /* CONFIRMATIONPOPUP_H_ */