diff options
Diffstat (limited to 'lib/common/Ui/Genlist/Item.cpp')
-rw-r--r-- | lib/common/Ui/Genlist/Item.cpp | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/lib/common/Ui/Genlist/Item.cpp b/lib/common/Ui/Genlist/Item.cpp deleted file mode 100644 index c43982f..0000000 --- a/lib/common/Ui/Genlist/Item.cpp +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2012-2013 Samsung Electronics Co., Ltd - * - * Licensed under the Flora 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://floralicense.org/license/ - * - * 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. - */ - -#include "Item.h" -#include "phone.h" - -namespace Ui -{ - namespace Genlist - { - Item::Item(Elm_Genlist_Item_Type type) - : m_Type(type) - { - PH_TRACE; - } - - Item::~Item() - { - PH_TRACE; - } - - Elm_Genlist_Item_Class * Item::createClass(const char *style, const char *decorateStyle, const char *editStyle) - { - PH_TRACE; - Elm_Genlist_Item_Class *itemClass = elm_genlist_item_class_new(); - check_if(!itemClass, return NULL); - itemClass->item_style = style; - itemClass->decorate_item_style = decorateStyle; - itemClass->decorate_all_item_style = editStyle; - itemClass->func.text_get = Item::getText; - itemClass->func.content_get = Item::getContent; - itemClass->func.state_get = Item::getState; - itemClass->func.del = Item::onDestroy; - return itemClass; - } - - char * Item::getText(void *data, Evas_Object *obj, const char *part) - { - PH_TRACE; - if(data) - { - return static_cast<Item *>(data)->getText(part); - } - - return NULL; - } - - Evas_Object * Item::getContent(void *data, Evas_Object *obj, const char *part) - { - PH_TRACE; - if(data) - { - return static_cast<Item *>(data)->getContent(part, obj); - } - - return NULL; - } - - Eina_Bool Item::getState(void *data, Evas_Object *obj, const char *part) - { - PH_TRACE; - if(data) - { - return static_cast<Item *>(data)->getState(part); - } - - return EINA_FALSE; - } - - void Genlist::Item::onDestroy(void *data, Evas_Object *obj) - { - PH_TRACE; - if(data) - { - delete static_cast<Item *>(data); - } - } - } -} |