summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_exe.eo
blob: 0d3c29e7f2909ca1299845cef257e9cee26ec4b2 (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
enum Efl.Exe_Signal {
   [[ ]]
   int,
   quit,
   term,
   kill,
   cont,
   stop,
   hup,
   usr1,
   usr2
}

enum Efl.Exe_Flags {
   [[ ]]
   none             = 0,
   group_leader     = 1,
   exit_with_parent = 2,
   hide_io          = 4
}

class @beta Efl.Exe extends Efl.Task implements Efl.Io.Reader, Efl.Io.Writer, Efl.Io.Closer,Efl.Core.Command_Line
{
   [[ ]]
   methods {
      signal {
         params {
            sig: Efl.Exe_Signal; [[ Send this signal to the task ]]
         }
      }
      @property exe_flags {
        set { }
        get { }
        values {
          flags: Efl.Exe_Flags; [[ ]]
        }
      }
      @property exit_signal {
         [[ The final exit signal of this task. ]]
         get { }
         values {
            sig: int; [[ The exit signal, or -1 if no exit signal happened ]]
         }
      }
      @property env {
         [[ If $env is $null then the process created by this object is
            going to inherit the enviroment of this process.

            In case $env is not $null then the environment variables declared
            in this object will represent the environment passed to the new process.
         ]]
         get {
            [[ Get the object assosiated with this object ]]
         }
         set {
            [[ Set the object assosiated with this object ]]
         }
         values {
            env : Efl.Core.Env; [[$env will be referenced until this object does not need it anymore.]]
         }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Task.priority { get; set; }
      Efl.Task.run;
      Efl.Task.end;
      Efl.Io.Closer.close;
      Efl.Io.Closer.closed { get; }
      Efl.Io.Reader.read;
      Efl.Io.Reader.can_read { get; set; }
      Efl.Io.Reader.eos { get; set; }
      Efl.Io.Writer.write;
      Efl.Io.Writer.can_write { get; set; }
   }
}