Fixed Nabi Issues
[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.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
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::IKeypadEventListener
36         , public Tizen::Ui::Scenes::ISceneEventListener
37         , public Tizen::Ui::ITextEventListener
38 {
39
40 public:
41         /**
42          * @brief The Default Constructor
43          *
44          */
45
46         CreateBookmarkFolderForm(void);
47
48         /**
49          * @brief The Default Destructor
50          */
51
52         virtual ~CreateBookmarkFolderForm(void);
53
54         /**
55          * @brief        Shows alert message
56          *
57          */
58         void CreateMessage(Tizen::Base::String& str);
59
60         /**
61          * @brief        Initializes this instance of %CreateBookmarkFolderForm.
62          */
63         bool Initialize(void);
64
65         virtual result OnInitializing(void);
66         virtual result OnTerminating(void);
67
68         // IActionEventListener
69         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
70
71         //IKeypadListener
72         virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
73         virtual void OnKeypadClosed(Tizen::Ui::Control& source);
74         virtual void OnKeypadOpened(Tizen::Ui::Control& source);
75         virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
76
77         //ISceneEventListener
78         virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
79         virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
80
81         // ITextEventListener
82         virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
83         virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
84
85 protected:
86         static const int IDA_BUTTON_DONE;
87         static const int IDA_BUTTON_CANCEL;
88 private:
89         int __modalMsgBoxResult;
90         BookmarkData* __pBookmark;
91         Tizen::Ui::Controls::EditField* __pFolderTitle;  // Folder Title Editfield
92         Tizen::Ui::Controls::MessageBox* __pMsgBox;       // Message Box to display alert if folder with same name already exists
93         Tizen::Ui::Scenes::SceneId __previousScene;
94         bool __ret;
95 };
96
97 #endif /* _INT_CREATE_BOOKMARK_FOLDER_FORM_H_ */