summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.eo
blob: 6e7837aeb802392bc8dbec08f021e3f5dbf410a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import eina_types;

function EflIoFilter {
  [[EflIoFilter function]]
  params {
    @in model: Eio.Model;
    @in entry: ptr(Eina.File_Direct_Info);
  }
  return: int;
};

class Eio.Model (Efl.Object, Efl.Model)
{
    [[Eio model class]]

    methods {
       children_filter_set {
          [[Set children filter callback.

            This function sets, along with user's private data userdata,
            the Eio's Eio_Filter_Direct_Cb which is a mid-step before
            receiving the real data. Once in filter callback we can decide,
            by returning either EINA_FALSE, to abort the notification or
            EINA_TRUE to keep it.

            See also @Efl.Model.children_slice_get.

            @since 1.11
          ]]
          params {
             filter: EflIoFilter; [[Filter callback]]
          }
       }
       @property path {
          [[ Define the root path of a model.

            @since 1.11
          ]]
	  set { [[ Only possible during construction. ]] }
	  get { }
	  values {
             path: string; [[ Root path of the model. ]]
          }
       }
    }
    implements {
      Efl.Object.finalize;
      Efl.Object.invalidate;
      Efl.Object.destructor;
      Efl.Model.properties { get; }
      Efl.Model.property { set; get; }
      Efl.Model.child_add;
      Efl.Model.child_del;
      Efl.Model.children_slice_get;
      Efl.Model.children_count { get; }
    }
}