Documentation/Source/eric5.Helpviewer.Bookmarks.BookmarksImporters.ChromeImporter.html

Sat, 26 Jan 2013 12:44:46 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Jan 2013 12:44:46 +0100
branch
5_3_x
changeset 2374
f78ee0e8f96c
parent 1714
e9bd88363184
child 2386
bf6f0ded6071
permissions
-rw-r--r--

Regenerated the source docu with the HTML5 generator.

<!DOCTYPE html>
<html><head>
<title>eric5.Helpviewer.Bookmarks.BookmarksImporters.ChromeImporter</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>eric5.Helpviewer.Bookmarks.BookmarksImporters.ChromeImporter</h1>
<p>
Module implementing an importer for Chrome bookmarks.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#ChromeImporter">ChromeImporter</a></td>
<td>Class implementing the Chrome bookmarks importer.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr>
<td><a href="#getImporterInfo">getImporterInfo</a></td>
<td>Module function to get information for the given source id.</td>
</tr>
</table>
<hr /><hr />
<a NAME="ChromeImporter" ID="ChromeImporter"></a>
<h2>ChromeImporter</h2>
<p>
    Class implementing the Chrome bookmarks importer.
</p>
<h3>Derived from</h3>
BookmarksImporter
<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="#ChromeImporter.__init__">ChromeImporter</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#ChromeImporter.__generateFolderNode">__generateFolderNode</a></td>
<td>Private method to process a bookmarks folder.</td>
</tr><tr>
<td><a href="#ChromeImporter.__generateUrlNode">__generateUrlNode</a></td>
<td>Private method to process a bookmarks node.</td>
</tr><tr>
<td><a href="#ChromeImporter.__processRoots">__processRoots</a></td>
<td>Private method to process the bookmark roots.</td>
</tr><tr>
<td><a href="#ChromeImporter.importedBookmarks">importedBookmarks</a></td>
<td>Public method to get the imported bookmarks.</td>
</tr><tr>
<td><a href="#ChromeImporter.open">open</a></td>
<td>Public method to open the bookmarks file.</td>
</tr><tr>
<td><a href="#ChromeImporter.setPath">setPath</a></td>
<td>Public method to set the path of the bookmarks file or directory.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="ChromeImporter.__init__" ID="ChromeImporter.__init__"></a>
<h4>ChromeImporter (Constructor)</h4>
<b>ChromeImporter</b>(<i>id="", parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>id</i></dt>
<dd>
source ID (string)
</dd><dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
</dd>
</dl><a NAME="ChromeImporter.__generateFolderNode" ID="ChromeImporter.__generateFolderNode"></a>
<h4>ChromeImporter.__generateFolderNode</h4>
<b>__generateFolderNode</b>(<i>data, rootNode</i>)
<p>
        Private method to process a bookmarks folder.
</p><dl>
<dt><i>data</i></dt>
<dd>
dictionary with the bookmarks data (dict)
</dd><dt><i>rootNode</i></dt>
<dd>
node to add the bookmarks to (BookmarkNode)
</dd>
</dl><a NAME="ChromeImporter.__generateUrlNode" ID="ChromeImporter.__generateUrlNode"></a>
<h4>ChromeImporter.__generateUrlNode</h4>
<b>__generateUrlNode</b>(<i>data, rootNode</i>)
<p>
        Private method to process a bookmarks node.
</p><dl>
<dt><i>data</i></dt>
<dd>
dictionary with the bookmarks data (dict)
</dd><dt><i>rootNode</i></dt>
<dd>
node to add the bookmarks to (BookmarkNode)
</dd>
</dl><a NAME="ChromeImporter.__processRoots" ID="ChromeImporter.__processRoots"></a>
<h4>ChromeImporter.__processRoots</h4>
<b>__processRoots</b>(<i>data, rootNode</i>)
<p>
        Private method to process the bookmark roots.
</p><dl>
<dt><i>data</i></dt>
<dd>
dictionary with the bookmarks data (dict)
</dd><dt><i>rootNode</i></dt>
<dd>
node to add the bookmarks to (BookmarkNode)
</dd>
</dl><a NAME="ChromeImporter.importedBookmarks" ID="ChromeImporter.importedBookmarks"></a>
<h4>ChromeImporter.importedBookmarks</h4>
<b>importedBookmarks</b>(<i></i>)
<p>
        Public method to get the imported bookmarks.
</p><dl>
<dt>Returns:</dt>
<dd>
imported bookmarks (BookmarkNode)
</dd>
</dl><a NAME="ChromeImporter.open" ID="ChromeImporter.open"></a>
<h4>ChromeImporter.open</h4>
<b>open</b>(<i></i>)
<p>
        Public method to open the bookmarks file.
</p><dl>
<dt>Returns:</dt>
<dd>
flag indicating success (boolean)
</dd>
</dl><a NAME="ChromeImporter.setPath" ID="ChromeImporter.setPath"></a>
<h4>ChromeImporter.setPath</h4>
<b>setPath</b>(<i>path</i>)
<p>
        Public method to set the path of the bookmarks file or directory.
</p><dl>
<dt><i>path</i></dt>
<dd>
bookmarks file or directory (string)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="getImporterInfo" ID="getImporterInfo"></a>
<h2>getImporterInfo</h2>
<b>getImporterInfo</b>(<i>id</i>)
<p>
    Module function to get information for the given source id.
</p><dl>
<dt>Returns:</dt>
<dd>
tuple with an icon (QPixmap), readable name (string), name of
        the default bookmarks file (string), an info text (string),
        a prompt (string) and the default directory of the bookmarks file (string)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial