2 // Open Service Platform
3 // Copyright (c) 2012-2013 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 FUiCtrl_IconListItemProviderAdaptor.h
20 * @brief This is the header file for the _IconListItemProviderAdaptor class.
23 #ifndef _FUI_CTRL_INTERNAL_ICON_LIST_ITEM_PROVIDER_ADAPTOR_H_
24 #define _FUI_CTRL_INTERNAL_ICON_LIST_ITEM_PROVIDER_ADAPTOR_H_
26 #include <FUiCtrlIIconListViewItemProvider.h>
28 #include "FUiCtrl_IListItemProviderAdaptor.h"
30 namespace Tizen { namespace Ui
36 } // Tizen::Ui::Animations
41 class _IconListItemProviderAdaptor
42 : public _IListItemProviderAdaptor
46 _IconListItemProviderAdaptor(void);
48 virtual ~_IconListItemProviderAdaptor(void);
51 _IListItemCommon* GetBlankItem(void) const;
54 virtual void SetItemProvider(void* pProvider);
56 virtual _IListItemCommon* LoadItem(int groupIndex, int itemIndex);
58 virtual result UnloadItem(_IListItemCommon* pListItem, int groupIndex, int itemIndex);
60 virtual int GetItemCount(int groupIndex = 0) const;
62 virtual int GetGroupCount(void) const;
64 virtual result DeleteItem(_IListItemCommon* pListItem, int groupIndex, int itemIndex);
66 void SetVisualElement(Tizen::Ui::Animations::_VisualElement* pRoot);
69 _IconListItemProviderAdaptor(const _IconListItemProviderAdaptor& rhs);
70 _IconListItemProviderAdaptor& operator =(const _IconListItemProviderAdaptor& rhs);
74 static const int DEFAULT_GROUP_INDEX = 0;
75 static const int DEFAULT_GROUP_COUNT = 1;
76 static const int GROUP_TITLE_INDEX = -1;
78 IIconListViewItemProvider* __pItemProvider;
80 _IListItemCommon* __pBlankItem;
82 Tizen::Ui::Animations::_VisualElement* __pRoot;
84 }; // _IconListItemProviderAdaptor
86 }}} // Tizen::Ui::Controls
88 #endif //_FUI_CTRL_INTERNAL_ICON_LIST_ITEM_PROVIDER_ADAPTOR_H_