2016-02-17 03:49:28 -08:00
|
|
|
import eldbus_types;
|
|
|
|
|
2019-03-11 05:31:55 -07:00
|
|
|
class @beta Eldbus.Model.Method extends Eldbus.Model.Arguments {
|
2016-04-20 03:45:09 -07:00
|
|
|
[[Eldbus model method class]]
|
2015-01-09 08:20:14 -08:00
|
|
|
methods {
|
2017-10-25 18:05:41 -07:00
|
|
|
@property proxy {
|
2015-01-09 08:20:14 -08:00
|
|
|
[[Custom Eldbus_Model_Method constructor.
|
|
|
|
|
2017-10-25 18:05:41 -07:00
|
|
|
@since 1.21]]
|
|
|
|
set {}
|
|
|
|
values {
|
|
|
|
proxy: ptr(Eldbus.Proxy); [[Eldbus proxy]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property method {
|
|
|
|
[[Object]]
|
|
|
|
set {}
|
|
|
|
values {
|
2019-08-29 04:46:35 -07:00
|
|
|
method: ptr(const(Eldbus.Introspection.Method)); [[The introspected interface]]
|
2015-01-09 08:20:14 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2017-10-25 18:05:41 -07:00
|
|
|
Efl.Object.finalize;
|
2015-01-09 08:20:14 -08:00
|
|
|
}
|
|
|
|
constructors {
|
2017-10-25 18:05:41 -07:00
|
|
|
.proxy;
|
|
|
|
.method;
|
2015-01-09 08:20:14 -08:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
successful,call: void; [[Event dispatched for a successful method call.]]
|
2015-01-09 08:20:14 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|