aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/efl/interfaces/efl_io_closer.eo
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-01-09 19:58:48 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-01-15 15:20:40 +0100
commit4fa559b3922d55ddc1ca8af96b8bb284a6167184 (patch)
tree84096503e7e2ae8e55799c92b669031a53f38893 /src/lib/efl/interfaces/efl_io_closer.eo
parentemile+ tgv saver - stop using deprecated lz4 functions to remove warnings (diff)
downloadefl-devs/xartigas/turn-closer-into-interface.tar.gz
Make Efl.Ui.Closer an interface instead of mixindevs/xartigas/turn-closer-into-interface
Summary: It is a mixin only because of the setter method for the "closed" property, otherwise, it would be a pure interface. Nobody is setting that property, so let's just remove the setter (leaving only the getter) and make this class an interface. This should clear the scenario for languages currently having issues with mixins (like C#). Related to https://phab.enlightenment.org/T7601. Test Plan: Nothing changes. Make check and examples still work. Reviewers: zmike, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7570
Diffstat (limited to 'src/lib/efl/interfaces/efl_io_closer.eo')
-rw-r--r--src/lib/efl/interfaces/efl_io_closer.eo20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/efl/interfaces/efl_io_closer.eo b/src/lib/efl/interfaces/efl_io_closer.eo
index b7a6684fb6..2ba4323085 100644
--- a/src/lib/efl/interfaces/efl_io_closer.eo
+++ b/src/lib/efl/interfaces/efl_io_closer.eo
@@ -1,6 +1,6 @@
import eina_types;
-mixin Efl.Io.Closer {
+interface Efl.Io.Closer {
[[Generic interface for objects that can close themselves.
This interface allows external objects to transparently close an
@@ -12,10 +12,8 @@ mixin Efl.Io.Closer {
@since 1.19
]]
- data: null;
-
methods {
- close @pure_virtual {
+ close {
[[Closes the Input/Output object.
This operation will be executed immediately and may or
@@ -32,11 +30,7 @@ mixin Efl.Io.Closer {
@property closed {
[[If true will notify object was closed.]]
- get @pure_virtual { }
- set {
- [[If true, calls close()]]
- return: bool; [[$true if could close, $false if already closed or errors.]]
- }
+ get { }
values {
is_closed: bool; [[$true if closed, $false otherwise]]
}
@@ -49,8 +43,8 @@ mixin Efl.Io.Closer {
so they are not inherited by the processes (children or
self) doing exec().
]]
- get @pure_virtual { }
- set @pure_virtual {
+ get { }
+ set {
[[If $true, will close on exec() call.]]
return: bool; [[$true if could set, $false if not supported or failed.]]
}
@@ -65,8 +59,8 @@ mixin Efl.Io.Closer {
If the object was disconnected from its parent (including the main loop) without close,
this property will state whenever it should be closed or not.
]]
- get @pure_virtual { }
- set @pure_virtual { }
+ get { }
+ set { }
values {
close_on_invalidate: bool; [[$true if close on invalidate, $false otherwise]]
}