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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
/**
* Deluge.data.TorrentRecord.js
*
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
* the additional special exception to link portions of this program with the OpenSSL library.
* See LICENSE for more details.
*/
Ext.namespace('Deluge.data');
/**
* Deluge.data.Torrent record
*
* @author Damien Churchill <damoxc@gmail.com>
* @version 1.3
*
* @class Deluge.data.Torrent
* @extends Ext.data.Record
* @constructor
* @param {Object} data The torrents data
*/
Deluge.data.Torrent = Ext.data.Record.create([
{
name: 'queue',
type: 'int',
},
{
name: 'name',
type: 'string',
sortType: Deluge.data.SortTypes.asName,
},
{
name: 'total_wanted',
type: 'int',
},
{
name: 'state',
type: 'string',
},
{
name: 'progress',
type: 'int',
},
{
name: 'num_seeds',
type: 'int',
},
{
name: 'total_seeds',
type: 'int',
},
{
name: 'num_peers',
type: 'int',
},
{
name: 'total_peers',
type: 'int',
},
{
name: 'download_payload_rate',
type: 'int',
},
{
name: 'upload_payload_rate',
type: 'int',
},
{
name: 'eta',
type: 'int',
},
{
name: 'ratio',
type: 'float',
},
{
name: 'distributed_copies',
type: 'float',
},
{
name: 'time_added',
type: 'int',
},
{
name: 'tracker_host',
type: 'string',
},
{
name: 'save_path',
type: 'string',
},
{
name: 'total_done',
type: 'int',
},
{
name: 'total_uploaded',
type: 'int',
},
{
name: 'total_remaining',
type: 'int',
},
{
name: 'max_download_speed',
type: 'int',
},
{
name: 'max_upload_speed',
type: 'int',
},
{
name: 'seeds_peers_ratio',
type: 'float',
},
{
name: 'time_since_transfer',
type: 'int',
},
]);
|