aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eldbus/eldbus_model.eo
blob: 546e478812b08a9dc6d6c113deacf8296e699760 (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
import eldbus_types;

class Eldbus.Model (Efl.Model_Loop) {
    methods {
        connect {
            [[Define connection parameters.

              @since 1.21]]
            params {
                @in type: Eldbus.Connection.Type; [[The connection type]]
                @in address: string; [[Remote address of DBus]]
                @in priv: bool; [[Non shared dbus connection]]
            }
        }
        @property connection {
            [[Define the connection.

              @since 1.21]]
            get { }
            set { }
            values {
                dbus: ptr(Eldbus.Connection); [[The connection]]
            }
        }
        @property type {
            [[Connection type]]
            get { }
            values {
                type: Eldbus.Connection.Type; [[Connection type]]
            }
        }
        @property address {
            [[Remote DBus address]]
            get { }
            values {
                address: string; [[Address]]
            }
        }
        @property private {
            [[Indicate if the DBus connection is shared or private]]
            get { }
            values {
                private_: bool; [[Private DBus connection]]
            }
        }
    }
    implements {
        Efl.Object.finalize;
        Efl.Object.invalidate;
        Efl.Object.destructor;
        Efl.Model.property { get; set; }
        Efl.Model.properties { get; }
        Efl.Model.child_add;
        Efl.Model.child_del;
        Efl.Model.children_slice_get;
        Efl.Model.children_count { get; }
    }
    constructors {
        .connect;
	.connection;
    }
}