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: EditBookmarkListForm
20 *@brief: This class defines EditBookmarkListForm used to edit the bookmark
24 #ifndef _INT_EDIT_BOOKMARK_LIST_FORM_H_
25 #define _INT_EDIT_BOOKMARK_LIST_FORM_H_
29 #include "IntConfirmationPopup.h"
31 class EditBookmarkListForm
32 : public Tizen::Ui::Controls::Form
33 , public Tizen::Base::Runtime::ITimerEventListener
34 , public Tizen::Ui::IActionEventListener
35 , public Tizen::Ui::Controls::IFastScrollListener
36 , public Tizen::Ui::Controls::IFormBackEventListener
37 , public Tizen::Ui::Controls::IListViewItemProvider
38 , public Tizen::Ui::Controls::IListViewItemEventListener
39 , public Tizen::Ui::IOrientationEventListener
40 , public Tizen::Ui::Scenes::ISceneEventListener
43 EditBookmarkListForm(void);
46 * @brief The Default Destructor
48 virtual ~EditBookmarkListForm(void);
51 * @brief Initializes this instance of EditBookmarkListForm.
54 bool Initialize(void);
57 virtual result OnInitializing(void);
59 // IListViewItemProvider
60 virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
61 virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
62 virtual int GetItemCount(void);
64 // IActionEventListener
65 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
68 virtual void OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index);
70 // IFormBackEventListener
71 virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
73 // IOrientationEventListener
74 virtual void OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus);
76 // IListViewItemEventListener
77 virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
78 virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);
79 virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
80 virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
81 virtual void OnListViewItemReordered(Tizen::Ui::Controls::ListView& listView, int indexFrom, int indexTo);
84 virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
87 virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
88 virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
91 static const int IDA_BUTTON_CHECKED;
92 static const int IDA_TABBAR_ITEM_1;
93 static const int IDA_TABBAR_ITEM_2;
94 static const int IDA_DELETEITEM_CLICKED;
95 static const int IDA_SHAREITEM_CLICKED;
96 static const int IDA_CANCELITEM_CLICKED;
97 static const int IDA_FORMAT_FOLDER;
98 static const int IDA_FORMAT_SITE;
99 static const int IDA_FORMAT_ICON;
100 static const int IDA_FORMAT_BITMAP;
101 static const int IDA_BUTTON_UNCHECKED;
102 static const int IDA_FORMAT_URL;
105 Tizen::Base::String __parentID;
106 Tizen::Ui::Controls::CheckButton* __pCheckButton;
107 ConfirmationPopup* __pConfirmationPopup;
108 Tizen::Base::Collection::ArrayList* __pData;
109 Tizen::Base::Runtime::Timer* __pTimer;
110 Tizen::Ui::Controls::Label* __pInfoLabel;
111 Tizen::Ui::Controls::Panel* __pInfoPanel;
112 Tizen::Ui::Controls::ListView* __pListview;
113 Tizen::Base::Collection::ArrayList* __pSelectedList;
114 int __selectedItemCount;
117 #endif /* _INT_EDIT_BOOKMARK_LIST_FORM_H_ */