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.cpp
20 * @brief This is the implementation file for _ListItemCommon class.
22 * This file contains the implementation of _ListItemCommon class.
26 #include <FBaseSysLog.h>
27 #include "FUiCtrl_ListItemCommon.h"
29 #ifdef MEMORY_LEAK_CHECK
30 #include "mem_leak_check.h"
33 namespace Tizen { namespace Ui { namespace Controls
36 _ListItemCommon::_ListItemCommon(void)
40 , __checkedState(false)
41 , __enabledState(true)
43 , __itemType(LIST_ITEM_TYPE_CUSTOM)
44 , __reorderMode(false)
49 _ListItemCommon::~_ListItemCommon(void)
55 _ListItemCommon::GetItemHeight(void) const
61 _ListItemCommon::SetItemHeight(int itemHeight)
63 __itemHeight = itemHeight;
67 _ListItemCommon::SetChecked(bool checked)
69 __checkedState = checked;
73 _ListItemCommon::IsChecked(void) const
75 return __checkedState;
79 _ListItemCommon::SetItemEnabled(bool enabled)
81 __enabledState = enabled;
85 _ListItemCommon::IsItemEnabled(void) const
87 return __enabledState;
91 _ListItemCommon::GetItemType(void) const
97 _ListItemCommon::SetItemType(ListItemType itemType)
99 __itemType = itemType;
103 _ListItemCommon::IsReorderMode(void) const
105 return __reorderMode;
109 _ListItemCommon::SetReorderMode(bool enabled)
111 __reorderMode = enabled;
115 _ListItemCommon::SetAppInfo(const void* pAppInfo)
117 __pAppInfo = const_cast<void*>(pAppInfo);
121 _ListItemCommon::GetAppInfo(void) const
127 _ListItemCommon::SetItemChanged(bool changed)
129 __itemChanged = changed;
133 _ListItemCommon::IsItemChanged(void) const
135 return __itemChanged;
139 _ListItemCommon::AddRef(void)
145 _ListItemCommon::Release(void)
157 }}} // Tizen::Ui::Controls