Documentation/Source/eric5.Helpviewer.Download.DownloadModel.html

changeset 668
b0061a6f7484
child 945
8cd4d08fa9f6
child 1278
fb0460fd00b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Documentation/Source/eric5.Helpviewer.Download.DownloadModel.html	Sun Oct 10 21:12:43 2010 +0200
@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
+'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
+<html><head>
+<title>eric5.Helpviewer.Download.DownloadModel</title>
+<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>eric5.Helpviewer.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>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 bookmarks 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>
+<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></dt>
+<dd>
+reference to the download manager (DownloadManager)
+</dd><dt><i>parent</i></dt>
+<dd>
+reference to the parent object (QObject)
+</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></dt>
+<dd>
+index to get data for (QModelIndex)
+</dd><dt><i>role</i></dt>
+<dd>
+role of the data to retrieve (integer)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+requested data
+</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></dt>
+<dd>
+index of the node cell (QModelIndex)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+flags (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></dt>
+<dd>
+list of indexes (QModelIndexList)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+mime data (QMimeData)
+</dd>
+</dl><a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a>
+<h4>DownloadModel.removeRows</h4>
+<b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>)
+<p>
+        Public method to remove bookmarks from the model.
+</p><dl>
+<dt><i>row</i></dt>
+<dd>
+row of the first bookmark to remove (integer)
+</dd><dt><i>count</i></dt>
+<dd>
+number of bookmarks to remove (integer)
+</dd><dt><i>index</i></dt>
+<dd>
+of the parent bookmark node (QModelIndex)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+flag indicating successful removal (boolean)
+</dd>
+</dl><a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a>
+<h4>DownloadModel.rowCount</h4>
+<b>rowCount</b>(<i>parent = QModelIndex()</i>)
+<p>
+        Public method to get the number of rows of the model.
+</p><dl>
+<dt><i>parent</i></dt>
+<dd>
+parent index (QModelIndex)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+number of rows (integer)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr />
+</body></html>
\ No newline at end of file

eric ide

mercurial