summaryrefslogblamecommitdiff
path: root/src/lib/eldbus/eldbus_model_method.eo
blob: 3d27aa7e2e00af394ec4ead1d34bbc0599cbd8df (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                    
                                                    
                                 






                                                     
                                                          
                                                                                            







                                                                                                          

                           












                                                                         
import eldbus_types;

class Eldbus.Model.Method (Eldbus.Model.Arguments) {
    [[Eldbus model method class]]
    legacy_prefix: null;
    methods {
        constructor {
            [[Custom Eldbus_Model_Method constructor.

              @since 1.16]]
            params {
                @in proxy: Eldbus.Proxy*; [[Eldbus proxy]]
                @in 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

              @since 1.16]]
        }
    }
    implements {
        Eo.Base.constructor;
    }
    constructors {
        .constructor;
    }
    events {
      successful,call; [[Event dispatched for a successful method call.]]
   }

}