--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric7/Documentation/Source/eric7.WebBrowser.Download.DownloadModel.html Mon May 24 11:19:57 2021 +0200 @@ -0,0 +1,264 @@ +<!DOCTYPE html> +<html><head> +<title>eric7.WebBrowser.Download.DownloadModel</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</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