summaryrefslogtreecommitdiff
path: root/src/lib/eldbus/eldbus_model_object.eo
blob: 057797a9224dfa392710b7f4bc31343a783bcdd9 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import eldbus_types;

class Eldbus.Model.Object (Eo.Base, Efl.Model) {
    [[Eldbus model object class]]

    legacy_prefix: null;
    data: Eldbus_Model_Object_Data;
    methods {
        constructor {
            [[Custom Eldbus_Model_Object constructor.

              @since 1.16]]
            params {
                @in type: int; [[The connection type]]
                @in address: const(char)*; [[Remote address of DBus]]
                @in private_: bool; [[Non shared DBus connection]]
                @in bus: const(char)*; [[DBus Name or unique-id]]
                @in path: const(char)*; [[DBus path]]
            }
        }
        connection_constructor {
            [[Custom Eldbus_Model_Object connection_constructor.

              @since 1.16]]
            params {
                @in connection: Eldbus_Connection*; [[Eldbus connection]]
                @in bus: const(char)*; [[DBus Name or unique-id]]
                @in path: const(char)*; [[DBus path]]
            }
        }
    @property type {
            [[Connection type]]
            values {
                type: int; [[Connection type]]
            }
        }
    @property address {
            [[Remote address of DBus]]
            values {
                address: const(char)*; [[Address]]
            }
        }
    @property private {
            [[Indicate if the DBus connection is shared or private]]
            values {
                private_: bool; [[Private DBus connection]]
            }
        }
    @property bus {
            [[DBus Name or unique-id]]
            values {
                bus: const(char)*; [[DBus name]]
            }
        }
    @property path {
            [[DBus path]]
            values {
                path: const(char)*; [[DBus path]]
            }
        }
    }
    implements {
        Eo.Base.constructor;
        Eo.Base.destructor;
        Efl.Model.properties.get;
        Efl.Model.property_set;
        Efl.Model.property_get;
        Efl.Model.child_add;
        Efl.Model.child_del;
        Efl.Model.children_slice_get;
        Efl.Model.children_count_get;
    }
    constructors {
        .constructor;
        .connection_constructor;
    }
}