summaryrefslogtreecommitdiff
path: root/lib/common/ui/genlist/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/ui/genlist/item.h')
-rw-r--r--lib/common/ui/genlist/item.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/common/ui/genlist/item.h b/lib/common/ui/genlist/item.h
new file mode 100644
index 0000000..b4c8151
--- /dev/null
+++ b/lib/common/ui/genlist/item.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2014 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.
+ */
+
+#ifndef __UI_GENLIST_ITEM_H__
+#define __UI_GENLIST_ITEM_H__
+
+#include <Elementary.h>
+#include "phone.h"
+
+typedef struct ui_genlist_item
+{
+ void (*on_realized)(struct ui_genlist_item *item);
+ Elm_Object_Item *object_item;
+ Eina_List **item_list;
+ Evas_Object *save_button;
+ void *group_data;
+ void *data;
+} ui_genlist_item;
+
+/**
+ * Allocate the memory for ui_genlist_item.
+ * @return allocated ui_genlist_item.
+ */
+ui_genlist_item * ui_genlist_item_create();
+
+/**
+ * Destroy ui_genlist_item. Used as Elm_Gen_Item_Del_Cb.
+ * @param data The ui_genlist_item to be destroyed.
+ * @param obj The widget object.
+ */
+void ui_genlist_item_destroy(void *data, Evas_Object *obj);
+
+#endif /* __UI_GENLIST_ITEM_H__ */