src/eric7/Documentation/Source/eric7.WebBrowser.Bookmarks.BookmarksImporters.IExplorerImporter.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.WebBrowser.Bookmarks.BookmarksImporters.IExplorerImporter</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.WebBrowser.Bookmarks.BookmarksImporters.IExplorerImporter</h1>
<p>
Module implementing an importer for Internet Explorer bookmarks.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#IExplorerImporter">IExplorerImporter</a></td>
<td>Class implementing the Chrome bookmarks importer.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr>
<td><a href="#createImporter">createImporter</a></td>
<td>Constructor</td>
</tr>
<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="IExplorerImporter" ID="IExplorerImporter"></a>
<h2>IExplorerImporter</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="#IExplorerImporter.__init__">IExplorerImporter</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#IExplorerImporter.importedBookmarks">importedBookmarks</a></td>
<td>Public method to get the imported bookmarks.</td>
</tr>
<tr>
<td><a href="#IExplorerImporter.open">open</a></td>
<td>Public method to open the bookmarks file.</td>
</tr>
<tr>
<td><a href="#IExplorerImporter.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="IExplorerImporter.__init__" ID="IExplorerImporter.__init__"></a>
<h4>IExplorerImporter (Constructor)</h4>
<b>IExplorerImporter</b>(<i>sourceId="", parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>sourceId</i> (str (optional))</dt>
<dd>
source ID (defaults to "")
</dd>
<dt><i>parent</i> (QObject (optional))</dt>
<dd>
reference to the parent object (defaults to None)
</dd>
</dl>
<a NAME="IExplorerImporter.importedBookmarks" ID="IExplorerImporter.importedBookmarks"></a>
<h4>IExplorerImporter.importedBookmarks</h4>
<b>importedBookmarks</b>(<i></i>)
<p>
        Public method to get the imported bookmarks.
</p>

<dl>
<dt>Return:</dt>
<dd>
imported bookmarks
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
BookmarkNode
</dd>
</dl>
<a NAME="IExplorerImporter.open" ID="IExplorerImporter.open"></a>
<h4>IExplorerImporter.open</h4>
<b>open</b>(<i></i>)
<p>
        Public method to open the bookmarks file.
</p>

<dl>
<dt>Return:</dt>
<dd>
flag indicating success
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="IExplorerImporter.setPath" ID="IExplorerImporter.setPath"></a>
<h4>IExplorerImporter.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> (str)</dt>
<dd>
bookmarks file or directory
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="createImporter" ID="createImporter"></a>
<h2>createImporter</h2>
<b>createImporter</b>(<i>sourceId="", parent=None</i>)
<p>
    Constructor
</p>

<dl>

<dt><i>sourceId</i> (str (optional))</dt>
<dd>
source ID (defaults to "")
</dd>
<dt><i>parent</i> (QObject (optional))</dt>
<dd>
reference to the parent object (defaults to None)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the instantiated importer object
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
IExplorerImporter
</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>sourceId</i>)
<p>
    Module function to get information for the given source id.
</p>

<dl>

<dt><i>sourceId</i> (str)</dt>
<dd>
id of the browser
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
tuple with an icon, readable name, name of the default
        bookmarks file, an info text, a prompt and the default directory
        of the bookmarks file
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of (QPixmap, str, str, str, str, str)
</dd>
</dl>
<dl>

<dt>Raises <b>ValueError</b>:</dt>
<dd>
raised to indicate an invalid browser ID
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial