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 PhnSettingsBarringPwdForm.h
19 * @brief This is the header file for the %SettingsBarringPwdForm class.
21 * This header file contains the declarations for %SettingsBarringPwdForm class.
23 #ifndef _PHN_SETTINGS_BARRING_PWD_FORM_H_
24 #define _PHN_SETTINGS_BARRING_PWD_FORM_H_
28 #include "PhnErrorMsgPopup.h"
29 #include "PhnSettingsConstants.h"
32 * @class SettingsBarringPwdForm
33 * @brief This class presents a settings form based UI for call settings barring password.
36 class SettingsBarringPwdForm
37 : public Tizen::Ui::IActionEventListener
38 , public Tizen::Ui::ITextEventListener
39 , public Tizen::Ui::Controls::Form
40 , public Tizen::Ui::Scenes::ISceneEventListener
41 , public IPopupClosedEventListener
44 SettingsBarringPwdForm(void);
45 virtual ~SettingsBarringPwdForm(void);
46 void Initialize(void);
49 virtual result OnInitializing(void);
50 virtual result OnTerminating(void);
51 //From IActionEventListener
52 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
53 //From ISceneEventListener
54 virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
55 virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
56 //From ITextEventListener
57 virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
58 virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
60 //Event Listener method from IPopupClosedEventListener
61 virtual void HandlePopupClosed(void);
64 //Function is used to initialise header and header items.
65 void InitializeHeader(void);
66 void ShowErrorMessage(int errorCode);
69 //call Barring condition to be set
70 CallBarringType __callBarringCondition;
71 //State of the condition to be set;
72 bool __conditionState;
74 ErrorMsgPopup* __pErrorMsgPopup;
77 #endif //_PHN_SETTINGS_BARRING_PWD_FORM_H_