|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Helpviewer.Download.DownloadModel</title> |
|
6 <style> |
|
7 body { |
|
8 background: #EDECE6; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #85774A; } |
|
14 h2 { color: white; background: #85774A; } |
|
15 h3 { color: white; background: #9D936E; } |
|
16 h4 { color: white; background: #9D936E; } |
|
17 |
|
18 a { color: #BA6D36; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric5.Helpviewer.Download.DownloadModel</h1> |
|
24 <p> |
|
25 Module implementing the download model. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#DownloadModel">DownloadModel</a></td> |
|
35 <td>Class implementing the download model.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="DownloadModel" ID="DownloadModel"></a> |
|
44 <h2>DownloadModel</h2> |
|
45 <p> |
|
46 Class implementing the download model. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QAbstractListModel |
|
50 <h3>Class Attributes</h3> |
|
51 <table> |
|
52 <tr><td>None</td></tr> |
|
53 </table> |
|
54 <h3>Methods</h3> |
|
55 <table> |
|
56 <tr> |
|
57 <td><a href="#DownloadModel.__init__">DownloadModel</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#DownloadModel.data">data</a></td> |
|
61 <td>Public method to get data from the model.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#DownloadModel.flags">flags</a></td> |
|
64 <td>Public method to get flags for an item.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#DownloadModel.mimeData">mimeData</a></td> |
|
67 <td>Public method to return the mime data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#DownloadModel.removeRows">removeRows</a></td> |
|
70 <td>Public method to remove bookmarks from the model.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#DownloadModel.rowCount">rowCount</a></td> |
|
73 <td>Public method to get the number of rows of the model.</td> |
|
74 </tr> |
|
75 </table> |
|
76 <a NAME="DownloadModel.__init__" ID="DownloadModel.__init__"></a> |
|
77 <h4>DownloadModel (Constructor)</h4> |
|
78 <b>DownloadModel</b>(<i>manager, parent = None</i>) |
|
79 <p> |
|
80 Constructor |
|
81 </p><dl> |
|
82 <dt><i>manager</i></dt> |
|
83 <dd> |
|
84 reference to the download manager (DownloadManager) |
|
85 </dd><dt><i>parent</i></dt> |
|
86 <dd> |
|
87 reference to the parent object (QObject) |
|
88 </dd> |
|
89 </dl><a NAME="DownloadModel.data" ID="DownloadModel.data"></a> |
|
90 <h4>DownloadModel.data</h4> |
|
91 <b>data</b>(<i>index, role</i>) |
|
92 <p> |
|
93 Public method to get data from the model. |
|
94 </p><dl> |
|
95 <dt><i>index</i></dt> |
|
96 <dd> |
|
97 index to get data for (QModelIndex) |
|
98 </dd><dt><i>role</i></dt> |
|
99 <dd> |
|
100 role of the data to retrieve (integer) |
|
101 </dd> |
|
102 </dl><dl> |
|
103 <dt>Returns:</dt> |
|
104 <dd> |
|
105 requested data |
|
106 </dd> |
|
107 </dl><a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a> |
|
108 <h4>DownloadModel.flags</h4> |
|
109 <b>flags</b>(<i>index</i>) |
|
110 <p> |
|
111 Public method to get flags for an item. |
|
112 </p><dl> |
|
113 <dt><i>index</i></dt> |
|
114 <dd> |
|
115 index of the node cell (QModelIndex) |
|
116 </dd> |
|
117 </dl><dl> |
|
118 <dt>Returns:</dt> |
|
119 <dd> |
|
120 flags (Qt.ItemFlags) |
|
121 </dd> |
|
122 </dl><a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a> |
|
123 <h4>DownloadModel.mimeData</h4> |
|
124 <b>mimeData</b>(<i>indexes</i>) |
|
125 <p> |
|
126 Public method to return the mime data. |
|
127 </p><dl> |
|
128 <dt><i>indexes</i></dt> |
|
129 <dd> |
|
130 list of indexes (QModelIndexList) |
|
131 </dd> |
|
132 </dl><dl> |
|
133 <dt>Returns:</dt> |
|
134 <dd> |
|
135 mime data (QMimeData) |
|
136 </dd> |
|
137 </dl><a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a> |
|
138 <h4>DownloadModel.removeRows</h4> |
|
139 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) |
|
140 <p> |
|
141 Public method to remove bookmarks from the model. |
|
142 </p><dl> |
|
143 <dt><i>row</i></dt> |
|
144 <dd> |
|
145 row of the first bookmark to remove (integer) |
|
146 </dd><dt><i>count</i></dt> |
|
147 <dd> |
|
148 number of bookmarks to remove (integer) |
|
149 </dd><dt><i>index</i></dt> |
|
150 <dd> |
|
151 of the parent bookmark node (QModelIndex) |
|
152 </dd> |
|
153 </dl><dl> |
|
154 <dt>Returns:</dt> |
|
155 <dd> |
|
156 flag indicating successful removal (boolean) |
|
157 </dd> |
|
158 </dl><a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a> |
|
159 <h4>DownloadModel.rowCount</h4> |
|
160 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
|
161 <p> |
|
162 Public method to get the number of rows of the model. |
|
163 </p><dl> |
|
164 <dt><i>parent</i></dt> |
|
165 <dd> |
|
166 parent index (QModelIndex) |
|
167 </dd> |
|
168 </dl><dl> |
|
169 <dt>Returns:</dt> |
|
170 <dd> |
|
171 number of rows (integer) |
|
172 </dd> |
|
173 </dl> |
|
174 <div align="right"><a href="#top">Up</a></div> |
|
175 <hr /> |
|
176 </body></html> |