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_ListItemCommon.h
20 * @brief This is the header file for the _ListItemCommon class.
22 * This header file contains the declarations of the _ListItemCommon class.
26 #ifndef _FUI_CTRL_INTERNAL_LIST_ITEM_COMMON_H_
27 #define _FUI_CTRL_INTERNAL_LIST_ITEM_COMMON_H_
29 #include "FUiCtrl_IListItemCommon.h"
32 namespace Tizen { namespace Ui { namespace Controls
35 class _OSP_EXPORT_ _ListItemCommon
36 : public _IListItemCommon
39 virtual ~_ListItemCommon(void);
41 virtual bool DrawItem(Tizen::Graphics::Rectangle& rcItem, ListItemState isFocused, bool itemDivider = false) = 0;
43 virtual int GetItemHeight(void) const;
45 virtual void SetItemHeight(int itemHeight);
47 virtual void SetChecked(bool checked);
49 virtual bool IsChecked(void) const;
51 virtual void SetItemEnabled(bool enabled);
53 virtual bool IsItemEnabled(void) const;
55 virtual bool IsReorderMode(void) const;
57 virtual void SetReorderMode(bool enabled);
59 virtual void SetItemChanged(bool changed);
61 virtual bool IsItemChanged(void) const;
63 virtual void SetAppInfo(const void* pAppInfo);
65 virtual void* GetAppInfo(void) const;
67 ListItemType GetItemType(void) const;
69 void SetItemType(ListItemType);
76 _ListItemCommon(void);
85 ListItemType __itemType;
89 }}} // Tizen::Ui::Controls
91 #endif // _FUI_CTRL_INTERNAL_LIST_ITEM_COMMON_H_