summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_task.eo
blob: f3c1ac9b4f1c292d7e9f902f86ad18e4525c9650 (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
enum Efl.Task_Priority {
   [[ ]]
   normal,
   background,
   low,
   high,
   ultra
}

enum Efl.Task_Flags {
   [[ ]]
   none               = 0,
   use_stdin          = 1,
   use_stdout         = 2,
   no_exit_code_error = 4,
}

abstract @beta Efl.Task extends Efl.Object
{
   [[ ]]
   methods {
      @property priority {
         [[ The priority of this task. ]]
         get { }
         set { }
         values {
            priority: Efl.Task_Priority; [[ ]]
         }
      }
      @property exit_code {
         [[ The final exit code of this task. ]]
         get { }
         values {
            code: int; [[ ]]
         }
      }
      @property flags {
         set { }
         get { }
         values {
            flags: Efl.Task_Flags; [[ ]]
         }
      }
      run @pure_virtual {
         [[ Actually run the task ]]
         return: future<void> @owned; [[ A future triggered when task exits and is passed int exit code ]]
      }
      end @pure_virtual {
         [[ Request the task end (may send a signal or interrupt
            signal resulting in a terminate event being tiggered in the
            target task loop) ]]
      }
   }
   events {
   }
   implements {
      Efl.Object.destructor;
      Efl.Object.parent { set; }
   }
}