File: task.vala

package info (click to toggle)
seafile 6.2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,468 kB
  • sloc: ansic: 34,270; python: 5,192; makefile: 249; sh: 239
file content (59 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (2)
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
namespace Seafile {

public class Task : Object {

	public char _tx_id[37];
	public string tx_id {
		get { return (string)_tx_id; }
		set { Posix.memcpy(_tx_id, value, 36); _tx_id[36] = '\0'; }
	}

    public string ttype { get; set; }

	public string repo_id { get; set; }

	public string dest_id { get; set; }
	public string from_branch { get; set; }

	public string to_branch { get; set; }

	public string state { get; set; }

	public string rt_state { get; set; }

	public string error_str { get; set; }

    public int64 block_total { get; set; }
    public int64 block_done { get; set; } // the number of blocks sent or received

    public int fs_objects_total { get; set; }
    public int fs_objects_done { get; set; }

	public int rate { get; set; }

	public int64 _rsize;		// the size remain
	public int64  rsize{
		get { return _rsize; }
		set { _rsize = value; }
	}

	public int64 _dsize;		// the size has done
	public int64 dsize {
		get { return _dsize; }
		set { _dsize = value; }
	}

}

public class CloneTask : Object {
       public string state { get; set; }
       public string error_str { get; set; }
       public string err_detail { get; set; }
       public string repo_id { get; set; }
       public string peer_id { get; set; }
       public string repo_name { get; set; }
       public string worktree { get; set; }
       public string tx_id { get; set; }
}

} // namespace