src/eric7/Documentation/Source/eric7.WebBrowser.Download.DownloadModel.html

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8596
d64760b2da50
child 10417
c6011e501282
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/eric7/Documentation/Source/eric7.WebBrowser.Download.DownloadModel.html	Thu Jul 07 11:23:56 2022 +0200
@@ -0,0 +1,250 @@
+<!DOCTYPE html>
+<html><head>
+<title>eric7.WebBrowser.Download.DownloadModel</title>
+<meta charset="UTF-8">
+<link rel="stylesheet" href="styles.css">
+</head>
+<body>
+<a NAME="top" ID="top"></a>
+<h1>eric7.WebBrowser.Download.DownloadModel</h1>
+
+<p>
+Module implementing the download model.
+</p>
+<h3>Global Attributes</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Classes</h3>
+
+<table>
+
+<tr>
+<td><a href="#DownloadModel">DownloadModel</a></td>
+<td>Class implementing the download model.</td>
+</tr>
+</table>
+<h3>Functions</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<hr />
+<hr />
+<a NAME="DownloadModel" ID="DownloadModel"></a>
+<h2>DownloadModel</h2>
+
+<p>
+    Class implementing the download model.
+</p>
+<h3>Derived from</h3>
+QAbstractListModel
+<h3>Class Attributes</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Class Methods</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Methods</h3>
+
+<table>
+
+<tr>
+<td><a href="#DownloadModel.__init__">DownloadModel</a></td>
+<td>Constructor</td>
+</tr>
+<tr>
+<td><a href="#DownloadModel.data">data</a></td>
+<td>Public method to get data from the model.</td>
+</tr>
+<tr>
+<td><a href="#DownloadModel.flags">flags</a></td>
+<td>Public method to get flags for an item.</td>
+</tr>
+<tr>
+<td><a href="#DownloadModel.mimeData">mimeData</a></td>
+<td>Public method to return the mime data.</td>
+</tr>
+<tr>
+<td><a href="#DownloadModel.removeRows">removeRows</a></td>
+<td>Public method to remove downloads from the model.</td>
+</tr>
+<tr>
+<td><a href="#DownloadModel.rowCount">rowCount</a></td>
+<td>Public method to get the number of rows of the model.</td>
+</tr>
+</table>
+<h3>Static Methods</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+
+<a NAME="DownloadModel.__init__" ID="DownloadModel.__init__"></a>
+<h4>DownloadModel (Constructor)</h4>
+<b>DownloadModel</b>(<i>manager, parent=None</i>)
+
+<p>
+        Constructor
+</p>
+<dl>
+
+<dt><i>manager</i> (DownloadManager)</dt>
+<dd>
+reference to the download manager
+</dd>
+<dt><i>parent</i> (QObject)</dt>
+<dd>
+reference to the parent object
+</dd>
+</dl>
+<a NAME="DownloadModel.data" ID="DownloadModel.data"></a>
+<h4>DownloadModel.data</h4>
+<b>data</b>(<i>index, role</i>)
+
+<p>
+        Public method to get data from the model.
+</p>
+<dl>
+
+<dt><i>index</i> (QModelIndex)</dt>
+<dd>
+index to get data for
+</dd>
+<dt><i>role</i> (int)</dt>
+<dd>
+role of the data to retrieve
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+requested data
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+any
+</dd>
+</dl>
+<a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a>
+<h4>DownloadModel.flags</h4>
+<b>flags</b>(<i>index</i>)
+
+<p>
+        Public method to get flags for an item.
+</p>
+<dl>
+
+<dt><i>index</i> (QModelIndex)</dt>
+<dd>
+index of the node cell
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+flags
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+Qt.ItemFlags
+</dd>
+</dl>
+<a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a>
+<h4>DownloadModel.mimeData</h4>
+<b>mimeData</b>(<i>indexes</i>)
+
+<p>
+        Public method to return the mime data.
+</p>
+<dl>
+
+<dt><i>indexes</i> (QModelIndexList)</dt>
+<dd>
+list of indexes
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+mime data
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+QMimeData
+</dd>
+</dl>
+<a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a>
+<h4>DownloadModel.removeRows</h4>
+<b>removeRows</b>(<i>row, count, parent=None</i>)
+
+<p>
+        Public method to remove downloads from the model.
+</p>
+<dl>
+
+<dt><i>row</i> (int)</dt>
+<dd>
+row of the first download to remove
+</dd>
+<dt><i>count</i> (int)</dt>
+<dd>
+number of downloads to remove
+</dd>
+<dt><i>parent</i> (QModelIndex)</dt>
+<dd>
+index of the parent download node
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+flag indicating successful removal
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
+<a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a>
+<h4>DownloadModel.rowCount</h4>
+<b>rowCount</b>(<i>parent=None</i>)
+
+<p>
+        Public method to get the number of rows of the model.
+</p>
+<dl>
+
+<dt><i>parent</i> (QModelIndex)</dt>
+<dd>
+parent index
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+number of rows
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+int
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr />
+</body></html>
\ No newline at end of file

eric ide

mercurial