Tizen 2.0 Release
[apps/osp/Internet.git] / inc / IntEditHomePageForm.h
1 //
2
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (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 EditHomePageScene class
19 /*@file:  EditHomePageScene.h
20  *@brief: Allow user to set any page as Home page.
21  *
22  */
23
24 #ifndef _INT_EDIT_HOME_PAGE_FORM_H_
25 #define _INT_EDIT_HOME_PAGE_FORM_H_
26
27 #include <FBase.h>
28 #include <FGraphics.h>
29 #include <FMedia.h>
30 #include <FSystem.h>
31 #include <FUi.h>
32
33 class EditHomePageForm
34         : public Tizen::Ui::Controls::Form
35         , public Tizen::Ui::IActionEventListener
36         , public Tizen::Ui::Controls::IFormBackEventListener
37         , public Tizen::Ui::IOrientationEventListener
38         , public Tizen::Ui::Scenes::ISceneEventListener
39         , public Tizen::Ui::ITextEventListener
40 {
41 public:
42         /**
43         *@brief Default constructor
44         */
45         EditHomePageForm(void);
46
47         /**
48         * Default destructor
49         */
50         virtual ~EditHomePageForm(void);
51
52         /**
53          * @brief        Shows alert message.
54          */
55         void CreateMessage(Tizen::Base::String& str);
56
57         /**
58          *@brief        Constructing and Initializing EditHomePageScene
59          */
60         bool Initialize(void);
61
62 public:
63         /**
64          *brief        Used to create instances and set styles for the form content.
65          */
66         virtual result OnInitializing(void);
67
68         /**
69          *brief        Called on terminate of a form
70          */
71         virtual result OnTerminating(void);
72
73         // IActionEventListener
74         /**
75          *brief        Called when an action event occurs.
76          */
77         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
78
79
80         // IFormBackEventListener
81         virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
82
83         // ISceneEventListener
84
85         /**
86          *brief        Called after setting as current scene.
87          */
88         virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
89
90         /**
91          *brief        Called when the current scene is deactivated.
92          */
93         virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
94
95         // ITextEventListener
96         virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
97         virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
98
99         // IOrientationEventListener
100         virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
101
102 protected:
103         static const int IDA_BUTTON_DONE;
104         static const int IDA_BUTTON_CANCEL;
105
106 private:
107         int __modalMsgBoxResult;
108         Tizen::Ui::Controls::MessageBox* __pMsgBox;       // Message Box to display alert if folder with same name already exists
109         Tizen::Ui::Controls::EditField* __pUrlEditField;
110 };
111
112
113
114 #endif /* _INT_EDIT_HOME_PAGE_FORM_H_ */