2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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.
25 #include <FBaseSysLog.h>
26 #include "FUiCtrl_ListItemCommon.h"
28 namespace Tizen { namespace Ui { namespace Controls
31 _ListItemCommon::_ListItemCommon(void)
35 , __checkedState(false)
36 , __enabledState(true)
38 , __reorderMode(false)
42 _ListItemCommon::~_ListItemCommon(void)
48 _ListItemCommon::GetItemHeight(void) const
54 _ListItemCommon::SetItemHeight(int itemHeight)
56 __itemHeight = itemHeight;
60 _ListItemCommon::SetChecked(bool checked)
62 __checkedState = checked;
66 _ListItemCommon::IsChecked(void) const
68 return __checkedState;
72 _ListItemCommon::SetItemEnabled(bool enabled)
74 __enabledState = enabled;
78 _ListItemCommon::IsItemEnabled(void) const
80 return __enabledState;
84 _ListItemCommon::IsReorderMode(void) const
90 _ListItemCommon::SetReorderMode(bool enabled)
92 __reorderMode = enabled;
96 _ListItemCommon::SetAppInfo(const void* pAppInfo)
98 __pAppInfo = const_cast<void*>(pAppInfo);
102 _ListItemCommon::GetAppInfo(void) const
108 _ListItemCommon::SetItemChanged(bool changed)
110 __itemChanged = changed;
114 _ListItemCommon::IsItemChanged(void) const
116 return __itemChanged;
120 _ListItemCommon::AddRef(void)
126 _ListItemCommon::Release(void)
138 }}} // Tizen::Ui::Controls