3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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.
19 /*@file: IntCreateBookMarkFolderForm
20 *@brief: This class creates Bookmark folder
25 #ifndef _INT_CREATE_BOOKMARK_FOLDER_FORM_H_
26 #define _INT_CREATE_BOOKMARK_FOLDER_FORM_H_
30 #include "IntBookmarkData.h"
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
42 * @brief The Default Constructor
46 CreateBookmarkFolderForm(void);
49 * @brief The Default Destructor
52 virtual ~CreateBookmarkFolderForm(void);
55 * @brief Shows alert message
58 void CreateMessage(Tizen::Base::String& str);
61 * @brief Initializes this instance of %CreateBookmarkFolderForm.
63 bool Initialize(void);
65 virtual result OnInitializing(void);
66 virtual result OnTerminating(void);
68 // IActionEventListener
69 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
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);
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);
82 virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
83 virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
86 static const int IDA_BUTTON_DONE;
87 static const int IDA_BUTTON_CANCEL;
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;
97 #endif /* _INT_CREATE_BOOKMARK_FOLDER_FORM_H_ */