-\r
-// Copyright 2012 Samsung Electronics Co., Ltd.\r
-//\r
-// Licensed under the Apache License, Version 2.0 (the License);\r
-// you may not use this file except in compliance with the License.\r
-// You may obtain a copy of the License at\r
-//\r
-// http://www.apache.org/licenses/LICENSE-2.0\r
-//\r
-// Unless required by applicable law or agreed to in writing, software\r
-// distributed under the License is distributed on an "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-// See the License for the specific language governing permissions and\r
-// limitations under the License.SETTINGSCLEARPRIVATEDATAFORM_H_\r
-//\r
-//!Internet SettingsClearPrivateDataForm class\r
-/*@file: IntSettingsClearPrivateDataForm.h\r
- *@brief: The SettingsClearPrivateDataForm used to create private data scene\r
- *\r
- */\r
-\r
-#ifndef _INT_SETTINGS_CLEAR_PRIVATE_DATA_FORM_H_\r
-#define _INT_SETTINGS_CLEAR_PRIVATE_DATA_FORM_H_\r
-\r
-#include <FBase.h>\r
-#include <FUi.h>\r
-\r
-using namespace Tizen::Ui;\r
-\r
-class SettingsClearPrivateDataForm\r
- : public Controls::Form\r
- , public IActionEventListener\r
- , public Controls::IFormBackEventListener\r
- , public Tizen::Ui::Controls::IListViewItemProvider\r
- , public Tizen::Ui::Controls::IListViewItemEventListener\r
- , public Tizen::Ui::IOrientationEventListener\r
- , public Tizen::Ui::Scenes::ISceneEventListener\r
-{\r
-public:\r
- /**\r
- * Default constructor\r
- */\r
- SettingsClearPrivateDataForm(void);\r
-\r
- /**\r
- * Default destructor\r
- */\r
- virtual ~SettingsClearPrivateDataForm(void);\r
-\r
- /**\r
- *@name Initialize\r
- *@brief Constructing and Initializing ClearPrivateDataScene\r
- *@param[in] no input parameters\r
- *@retval TRUE Initialize success\r
- *@retval FALSE Initialize failure\r
- *\r
- */\r
- bool Initialize(void);\r
-\r
- /**\r
- *@name OnInitializing\r
- *@brief Used to create instances and set styles for the form content.\r
- *@param[in] no input parameters\r
- *@retval TRUE Initialize success\r
- *@retval FALSE Initialize failure\r
- */\r
- virtual result OnInitializing(void);\r
-\r
- /**\r
- *@name OnTerminating\r
- *@brief Called on terminate of a form\r
- *@param[in] no input parameters\r
- *@retval TRUE Terminate success\r
- *@retval FALSE Terminate failure\r
- */\r
- virtual result OnTerminating(void);\r
-\r
- //IListViewItemProvider\r
- /**\r
- *@name CreateItem\r
- *@brief Called when items need to be loaded.\r
- *@param[in] index The index of the list\r
- *@param[in] itemWidth The width of the element\r
- *@retval no return value\r
- */\r
- virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);\r
-\r
- /**\r
- *@name DeleteItem\r
- *@brief Called when items need to be loaded.\r
- *@param[in] index The index of the list\r
- *@param[in] pItem The pointer to the item to be deleted\r
- *@param[in] itemWidth The width of the element\r
- *@retval no return value\r
- */\r
- virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);\r
-\r
- /**\r
- *@name GetItemCount\r
- *@brief Called when the IconListView is about to be drawn and requests the listener to set the number of total items.\r
- *@param[in] no input parameter\r
- *@retval no return value\r
- */\r
- virtual int GetItemCount(void);\r
-\r
- // IActionEventListener\r
- /**\r
- *@name OnActionPerformed\r
- *@brief Called when an action event occurs.\r
- *@param[in] source The source of the event\r
- *@param[in] actionId The information about the action event\r
- *@retval no return value\r
- */\r
- virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
-\r
- // IFormBackEventListener\r
- /**\r
- *@name OnSceneDeactivated\r
- *@brief Called when the current Form control needs to be closed to revert back to the previous Form control.\r
- *@param[in] source The source of the event\r
- *@retval no return value\r
- */\r
- virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);\r
-\r
- // IListViewItemEventListener\r
- /**\r
- *@name OnListViewContextItemStateChanged\r
- *@brief Called when the state of an element in the ListContextItem is changed.\r
- *@param[in] listView The source of the event\r
- *@param[in] index The index of the list\r
- *@param[in] elementId The element ID\r
- *@param[in] state The status of the element\r
- *@retval no return value\r
- */\r
- virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);\r
-\r
- /**\r
- *@name OnListViewItemStateChanged\r
- *@brief Called when the state of an element in the ListViewItem in the ListView or GroupedListView is changed.\r
- *@param[in] listView The source of the event\r
- *@param[in] index The index of the list\r
- *@param[in] elementId The element ID\r
- *@param[in] status The status of the element\r
- *@retval no return value\r
- */\r
- virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);\r
-\r
- /**\r
- *@name OnListViewItemSwept\r
- *@brief Called when the ListItem is swept.\r
- *@param[in] listView The source of the event\r
- *@param[in] index The index of the list\r
- *@param[in] direction The sweep direction\r
- *@retval no return value\r
- */\r
- virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);\r
-\r
- /**\r
- *@name OnListViewItemLongPressed\r
- *@brief Called when the item or the element is long pressed.\r
- *@param[in] listView The source of the event\r
- *@param[in] index The index of the list\r
- *@param[in] elementId The element ID\r
- *@param[in] invokeListViewItemCallback Indicates whether to invoke ListView item callback after this method returns\r
- *@retval no return value\r
- */\r
- virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);\r
-\r
- //IOrientationEventListener\r
- /**\r
- *@name OnOrientationChanged\r
- *@brief Called when an orientation event occurs.\r
- *@param[in] source The source of the event\r
- *@param[in] orientationStatus The information about the orientation event\r
- *@remarks The orientation changed event is fired on %Control for which orientation mode change has been enabled by calling SetOrientation().\r
- *@retval no return value\r
- */\r
- void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);\r
-\r
- // ISceneEventListener\r
- /**\r
- *@name OnSceneActivatedN\r
- *@brief Called after setting as current scene.\r
- *@param[in] previousSceneId The scene ID of the deactivated scene\r
- *@param[in] currentSceneId The scene ID of the newly activated scene\r
- *@param[in] IList A pointer to an argument list that is user-specified\r
- *@retval no return value\r
- */\r
- virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);\r
-\r
- /**\r
- *@name OnSceneDeactivated\r
- *@brief Called when the current scene is deactivated.\r
- *@param[in] currentSceneId The scene ID of the scene being deactivated\r
- *@param[in] nextSceneId The scene ID of the newly activated scene\r
- *@param[in] IList A pointer to an argument list that is user-specified\r
- *@retval no return value\r
- */\r
- virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);\r
-\r
-protected:\r
- static const int IDA_FORMAT_TITLE_STRING;\r
- static const int IDA_BUTTON_DELETE;\r
- static const int IDA_BUTTON_CANCEL;\r
-\r
-private:\r
- int __clearItem;\r
- // __pList Pointer to ListView\r
- Tizen::Ui::Controls::ListView* __pList;\r
-};\r
-\r
-#endif /* _INT_SETTINGS_CLEAR_PRIVATE_DATA_FORM_H_ */\r
+
+// Copyright 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.SETTINGSCLEARPRIVATEDATAFORM_H_
+//
+//!Internet SettingsClearPrivateDataForm class
+/*@file: IntSettingsClearPrivateDataForm.h
+ *@brief: The SettingsClearPrivateDataForm used to create private data scene
+ *
+ */
+
+#ifndef _INT_SETTINGS_CLEAR_PRIVATE_DATA_FORM_H_
+#define _INT_SETTINGS_CLEAR_PRIVATE_DATA_FORM_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+using namespace Tizen::Ui;
+
+class SettingsClearPrivateDataForm
+ : public Controls::Form
+ , public IActionEventListener
+ , public Controls::IFormBackEventListener
+ , public Tizen::Ui::Controls::IListViewItemProvider
+ , public Tizen::Ui::Controls::IListViewItemEventListener
+ , public Tizen::Ui::IOrientationEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+ /**
+ * Default constructor
+ */
+ SettingsClearPrivateDataForm(void);
+
+ /**
+ * Default destructor
+ */
+ virtual ~SettingsClearPrivateDataForm(void);
+
+ /**
+ *@name Initialize
+ *@brief Constructing and Initializing ClearPrivateDataScene
+ *@param[in] no input parameters
+ *@retval TRUE Initialize success
+ *@retval FALSE Initialize failure
+ *
+ */
+ bool Initialize(void);
+
+ /**
+ *@name OnInitializing
+ *@brief Used to create instances and set styles for the form content.
+ *@param[in] no input parameters
+ *@retval TRUE Initialize success
+ *@retval FALSE Initialize failure
+ */
+ virtual result OnInitializing(void);
+
+ /**
+ *@name OnTerminating
+ *@brief Called on terminate of a form
+ *@param[in] no input parameters
+ *@retval TRUE Terminate success
+ *@retval FALSE Terminate failure
+ */
+ virtual result OnTerminating(void);
+
+ //IListViewItemProvider
+ /**
+ *@name CreateItem
+ *@brief Called when items need to be loaded.
+ *@param[in] index The index of the list
+ *@param[in] itemWidth The width of the element
+ *@retval no return value
+ */
+ virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+ /**
+ *@name DeleteItem
+ *@brief Called when items need to be loaded.
+ *@param[in] index The index of the list
+ *@param[in] pItem The pointer to the item to be deleted
+ *@param[in] itemWidth The width of the element
+ *@retval no return value
+ */
+ virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+ /**
+ *@name GetItemCount
+ *@brief Called when the IconListView is about to be drawn and requests the listener to set the number of total items.
+ *@param[in] no input parameter
+ *@retval no return value
+ */
+ virtual int GetItemCount(void);
+
+ // IActionEventListener
+ /**
+ *@name OnActionPerformed
+ *@brief Called when an action event occurs.
+ *@param[in] source The source of the event
+ *@param[in] actionId The information about the action event
+ *@retval no return value
+ */
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+ // IFormBackEventListener
+ /**
+ *@name OnSceneDeactivated
+ *@brief Called when the current Form control needs to be closed to revert back to the previous Form control.
+ *@param[in] source The source of the event
+ *@retval no return value
+ */
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+ // IListViewItemEventListener
+ /**
+ *@name OnListViewContextItemStateChanged
+ *@brief Called when the state of an element in the ListContextItem is changed.
+ *@param[in] listView The source of the event
+ *@param[in] index The index of the list
+ *@param[in] elementId The element ID
+ *@param[in] state The status of the element
+ *@retval no return value
+ */
+ virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
+
+ /**
+ *@name OnListViewItemStateChanged
+ *@brief Called when the state of an element in the ListViewItem in the ListView or GroupedListView is changed.
+ *@param[in] listView The source of the event
+ *@param[in] index The index of the list
+ *@param[in] elementId The element ID
+ *@param[in] status The status of the element
+ *@retval no return value
+ */
+ virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+ /**
+ *@name OnListViewItemSwept
+ *@brief Called when the ListItem is swept.
+ *@param[in] listView The source of the event
+ *@param[in] index The index of the list
+ *@param[in] direction The sweep direction
+ *@retval no return value
+ */
+ virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+ /**
+ *@name OnListViewItemLongPressed
+ *@brief Called when the item or the element is long pressed.
+ *@param[in] listView The source of the event
+ *@param[in] index The index of the list
+ *@param[in] elementId The element ID
+ *@param[in] invokeListViewItemCallback Indicates whether to invoke ListView item callback after this method returns
+ *@retval no return value
+ */
+ virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);
+
+ //IOrientationEventListener
+ /**
+ *@name OnOrientationChanged
+ *@brief Called when an orientation event occurs.
+ *@param[in] source The source of the event
+ *@param[in] orientationStatus The information about the orientation event
+ *@remarks The orientation changed event is fired on %Control for which orientation mode change has been enabled by calling SetOrientation().
+ *@retval no return value
+ */
+ void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ // ISceneEventListener
+ /**
+ *@name OnSceneActivatedN
+ *@brief Called after setting as current scene.
+ *@param[in] previousSceneId The scene ID of the deactivated scene
+ *@param[in] currentSceneId The scene ID of the newly activated scene
+ *@param[in] IList A pointer to an argument list that is user-specified
+ *@retval no return value
+ */
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+ /**
+ *@name OnSceneDeactivated
+ *@brief Called when the current scene is deactivated.
+ *@param[in] currentSceneId The scene ID of the scene being deactivated
+ *@param[in] nextSceneId The scene ID of the newly activated scene
+ *@param[in] IList A pointer to an argument list that is user-specified
+ *@retval no return value
+ */
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+protected:
+ static const int IDA_FORMAT_TITLE_STRING;
+ static const int IDA_BUTTON_DELETE;
+ static const int IDA_BUTTON_CANCEL;
+
+private:
+ int __clearItem;
+ // __pList Pointer to ListView
+ Tizen::Ui::Controls::ListView* __pList;
+};
+
+#endif /* _INT_SETTINGS_CLEAR_PRIVATE_DATA_FORM_H_ */