summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model_private.h
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-01-31 13:35:34 +0900
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-01-31 14:59:37 +0900
commit5525c89a3d1091cd17c5df6fbdc7378f0d0b4ff3 (patch)
tree16e710a757db55ef1f6de3201b5f4542de3a7680 /src/lib/eio/eio_model_private.h
parentc713bb90d3fe4a56ebd5f4f88cd5a248c5b7e482 (diff)
efl_model : rename all efl_model based classes.
Summary: As the result of discussion in T7458, we need to rename all efl_model based classes with efl_XXX_Model sequence. I've run few vote for this, see V42, V43 few classes are totally renamed as our consideration of misnaming. | Efl.Model_Loop | Efl.Loop_Model | | Efl.Model_Item | Efl.Generic_Model | | Efl.Model_Container | Efl.Container_Model | | Efl.Model_Container_Item | Efl.Container_Model_Item | | Efl.Model_Composite | Efl.Composite_Model | | Efl.Model_Composite_Boolean | Efl.Boolean_Model | | Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item | | Efl.Model_Composite_Selection | Efl.Select_Model | | Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item | | Efl.Model_View | Efl.View_Model | | Eio.Model | Efl.Io.Model | | Efl.Ui.Model_State | Efl.Ui.State_Model | | Efl.Ui.Model_Size | Efl.Ui.Size_Model | | Efl.Ui.Model_Exact | Efl.Ui.Exact_Model | | Efl.Ui.Model_Average | Efl.Ui.Average_Model | | Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model | I worried about Efl.Io.Model changes, cause it is widely used, but as I tested, there is no issue found yet. Eldbus.Model also may can changed Efl.Dbus.Model, but I cannot found any class who using Efl.Dbus namespace, so I left it future work. Test Plan: Run the Make Test, it works well except Efl test about selection. there are class inheritance problem exist in select_model, I reported it and will fix it in another patch. Reviewers: cedric, felipealmeida, woohyun, Hermet Reviewed By: cedric Subscribers: lauromoura Tags: #efl, #do_not_merge Differential Revision: https://phab.enlightenment.org/D7533
Diffstat (limited to 'src/lib/eio/eio_model_private.h')
-rw-r--r--src/lib/eio/eio_model_private.h73
1 files changed, 0 insertions, 73 deletions
diff --git a/src/lib/eio/eio_model_private.h b/src/lib/eio/eio_model_private.h
deleted file mode 100644
index bf1344a..0000000
--- a/src/lib/eio/eio_model_private.h
+++ /dev/null
@@ -1,73 +0,0 @@
1#ifndef _EIO_MODEL_PRIVATE_H
2#define _EIO_MODEL_PRIVATE_H
3
4#define PROP_LIST_SIZE 8
5
6typedef struct _Eio_Model_Data Eio_Model_Data;
7typedef struct _Eio_Model_Info Eio_Model_Info;
8
9typedef struct _Eio_Model_Monitor_Data Eio_Model_Monitor_Data;
10struct _Eio_Model_Monitor_Data
11{
12 Ecore_Event_Handler *ecore_child_add_handler[3];
13 Ecore_Event_Handler *ecore_child_del_handler[3];
14 int mon_event_child_add[3]; /**< plus EIO_MONITOR_ERROR */
15 int mon_event_child_del[3]; /**< plus EIO_MONITOR_ERROR */
16};
17
18// FIXME: Would be more efficient to introduce an Eina_Path that assemble
19// an array of stringshare instead of using one mega stringshare directly.
20
21struct _Eio_Model_Info
22{
23 Eina_Stringshare *path;
24 Eo *object;
25
26 size_t path_length;
27 size_t name_length;
28 size_t name_start;
29
30 Eina_File_Type type;
31
32 Eina_Bool parent_ref : 1;
33 Eina_Bool child_ref : 1;
34};
35
36struct _Eio_Model_Data
37{
38 Efl_Loop *loop;
39 Eio_Model *self;
40
41 Eina_Stringshare *path;
42
43 Eio_Model_Info *info;
44 Eina_Stat *st;
45 const char *mime_type;
46
47 struct {
48 Eio_File *stat; // Move to use efl.io.manager.stat
49 Eina_Future *listing; // Move to use efl.io.manager.direct_ls
50 Eio_File *move;
51 Eio_File *del;
52 Eina_Future *mime;
53 } request;
54
55 struct {
56 EflIoFilter cb;
57 Eina_Free_Cb free;
58 void *data;
59 } filter;
60
61 Eio_Model_Monitor_Data mon;
62
63 Eio_Monitor *monitor; // Notification stuff
64 // FIXME: would be interesting to figure a more efficient structure for holding files
65 Eina_List *parent;
66 Eina_List *files; // Eio_Model_Info
67
68 Eina_Error error;
69
70 Eina_Bool listed : 1;
71};
72
73#endif