summaryrefslogtreecommitdiff
path: root/src/lib/eldbus/eldbus_model_method.eo
blob: 334d750090119737e65b328dcabb4817b94d8912 (plain)
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
class Eldbus.Model_Method (Eldbus.Model_Arguments) {
    legacy_prefix: null;
    methods {
        // @property proxy {
        //     [[Custom Eldbus_Model_Method constructor.

        //       @since 1.16]]
        //     get {}
        //     set {}
        //     values {
        //         proxy: Eldbus_Proxy*; [[Eldbus proxy]]
        //     }
        // }
        @property method {
            get {}
            set {}
            values {
                method: const(Eldbus_Introspection_Method)*; [[The introspected method]]
            }
        }
        call {
            [[Calls the method. The properties must have been set.

              The event EMODEL_EVENT_PROPERTIES_CHANGED is raised for output arguments (properties).

              The event ELDBUS_MODEL_METHOD_EVENT_METHOD_CALLED is raised for a successful call. Otherwise
              the event EMODEL_EVENT_LOAD_STATUS with the status set to EMODEL_LOAD_STATUS_ERROR is raised.

              @since 1.16]]
            return: Efl.Model.Load_Status; [[#Emodel_Load_Status on success, #EMODEL_LOAD_STATUS_ERROR otherwise.]]
        }
    }
    implements {
        Eo.Base.constructor;
    }
    constructors {
        .method;
    }
    events {
      successful,call; [[Event dispatched for a successful method call.]]
   }

}