2017-10-25 18:05:19 -07:00
|
|
|
import eldbus_types;
|
|
|
|
|
efl_model : rename all efl_model based classes.
Summary:
As the result of discussion in T7458,
we need to rename all efl_model based classes with efl_XXX_Model sequence.
I've run few vote for this, see V42, V43
few classes are totally renamed as our consideration of misnaming.
| Efl.Model_Loop | Efl.Loop_Model |
| Efl.Model_Item | Efl.Generic_Model |
| Efl.Model_Container | Efl.Container_Model |
| Efl.Model_Container_Item | Efl.Container_Model_Item |
| Efl.Model_Composite | Efl.Composite_Model |
| Efl.Model_Composite_Boolean | Efl.Boolean_Model |
| Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item |
| Efl.Model_Composite_Selection | Efl.Select_Model |
| Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item |
| Efl.Model_View | Efl.View_Model |
| Eio.Model | Efl.Io.Model |
| Efl.Ui.Model_State | Efl.Ui.State_Model |
| Efl.Ui.Model_Size | Efl.Ui.Size_Model |
| Efl.Ui.Model_Exact | Efl.Ui.Exact_Model |
| Efl.Ui.Model_Average | Efl.Ui.Average_Model |
| Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model |
I worried about Efl.Io.Model changes, cause it is widely used,
but as I tested, there is no issue found yet.
Eldbus.Model also may can changed Efl.Dbus.Model,
but I cannot found any class who using Efl.Dbus namespace,
so I left it future work.
Test Plan:
Run the Make Test,
it works well except Efl test about selection.
there are class inheritance problem exist in select_model,
I reported it and will fix it in another patch.
Reviewers: cedric, felipealmeida, woohyun, Hermet
Reviewed By: cedric
Subscribers: lauromoura
Tags: #efl, #do_not_merge
Differential Revision: https://phab.enlightenment.org/D7533
2019-01-30 20:35:34 -08:00
|
|
|
class Eldbus.Model extends Efl.Loop_Model {
|
2017-10-25 18:05:19 -07:00
|
|
|
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;
|
2017-10-25 18:05:41 -07:00
|
|
|
Efl.Object.invalidate;
|
2017-10-25 18:05:19 -07:00
|
|
|
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;
|
|
|
|
}
|
2019-01-18 05:22:23 -08:00
|
|
|
}
|