2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 * @file CallErrorMsgPopup.h
19 * @brief This is the header file for the %ErrorMsgPopup class.
21 * This header file contains the declarations for %ErrorMsgPopup class.
23 #ifndef _PHN_ERROR_MSG_POPUP_H_
24 #define _PHN_ERROR_MSG_POPUP_H_
30 * @class IPopupClosedEventListener
31 * @brief This interface is used to notify the popup is closed event to Scenes.
34 class IPopupClosedEventListener
37 virtual ~IPopupClosedEventListener(void){};
38 // Called when the error message Pop-up is closed.
39 virtual void HandlePopupClosed(void) = 0;
43 * @class ErrorMsgPopup
44 * @brief This class shows message popup in error condition.
47 class ErrorMsgPopup: public Tizen::Ui::Controls::Popup
48 ,public Tizen::Base::Runtime::ITimerEventListener
51 ErrorMsgPopup(IPopupClosedEventListener* pEventListener);
52 virtual ~ErrorMsgPopup(void);
54 * Function is used to show error message popup
55 * based on the error code received.
57 void ShowErrorMsgPopupN(int errorCode);
59 //From ITimerEventListener
60 virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
63 void ConstructPopup(int errorCode);
64 //Function is used to fetch error messages based on error code
65 Tizen::Base::String FetchErrorMessage(int errorCode);
66 //draws and shows the popup on screen
70 //Timer used to show message
71 Tizen::Base::Runtime::Timer* __pTimer;
72 //Listener to popup closed event.
73 IPopupClosedEventListener* __pEventListener;
74 //used to close the popup
75 int __popupModalResult;
78 #endif // _PHN_ERROR_MSG_POPUP_H_