Initialize Tizen 2.3
[apps/osp/Internet.git] / inc / IntCreateBookmarkFolderForm.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:    IntCreateBookMarkFolderForm
20  *@brief:       This class creates Bookmark folder
21  *
22  */
23
24
25 #ifndef _INT_CREATE_BOOKMARK_FOLDER_FORM_H_
26 #define _INT_CREATE_BOOKMARK_FOLDER_FORM_H_
27
28 #include <FBase.h>
29 #include <FUi.h>
30 #include "IntBookmarkData.h"
31
32 class CreateBookmarkFolderForm
33         : public Tizen::Ui::Controls::Form
34         , public Tizen::Ui::IActionEventListener
35         , public Tizen::Ui::Controls::IFormBackEventListener
36         , public Tizen::Ui::IKeypadEventListener
37         , public Tizen::Ui::Scenes::ISceneEventListener
38         , public Tizen::Ui::ITextEventListener
39 {
40
41 public:
42         /**
43          * @brief The Default Constructor
44          *
45          */
46
47         CreateBookmarkFolderForm(void);
48
49         /**
50          * @brief The Default Destructor
51          */
52
53         virtual ~CreateBookmarkFolderForm(void);
54
55         /**
56          * @brief        Shows alert message
57          *
58          */
59         void CreateMessage(Tizen::Base::String& str);
60
61         /**
62          * @brief        Initializes this instance of %CreateBookmarkFolderForm.
63          */
64         bool Initialize(void);
65
66         virtual result OnInitializing(void);
67         virtual result OnTerminating(void);
68
69         // IActionEventListener
70         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
71
72         //IFormBackEventListener
73         virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
74
75         //IKeypadListener
76         virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
77         virtual void OnKeypadClosed(Tizen::Ui::Control& source);
78         virtual void OnKeypadOpened(Tizen::Ui::Control& source);
79         virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
80
81         //ISceneEventListener
82         virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
83         virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
84
85         // ITextEventListener
86         virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
87         virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
88
89 protected:
90         static const int IDA_BUTTON_DONE;
91         static const int IDA_BUTTON_CANCEL;
92 private:
93         int __modalMsgBoxResult;
94         BookmarkData* __pBookmark;
95         Tizen::Ui::Controls::EditField* __pFolderTitle;  // Folder Title Editfield
96         Tizen::Ui::Controls::MessageBox* __pMsgBox;       // Message Box to display alert if folder with same name already exists
97         Tizen::Ui::Scenes::SceneId __previousScene;
98         bool __ret;
99 };
100
101 #endif /* _INT_CREATE_BOOKMARK_FOLDER_FORM_H_ */