Documentation/Source/eric6.Helpviewer.FeaturePermissions.FeaturePermissionManager.html

Tue, 24 Oct 2017 19:09:09 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 24 Oct 2017 19:09:09 +0200
changeset 5928
a3809f75ca07
parent 4356
975993ebd7fb
permissions
-rw-r--r--

Changed the logic of the two web browsers in order to put new downloads at the top of the list of downloads and add the download date and time to the shown info.

<!DOCTYPE html>
<html><head>
<title>eric6.Helpviewer.FeaturePermissions.FeaturePermissionManager</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>eric6.Helpviewer.FeaturePermissions.FeaturePermissionManager</h1>
<p>
Module implementing the feature permission manager object.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#FeaturePermissionManager">FeaturePermissionManager</a></td>
<td>Class implementing the feature permission manager object.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="FeaturePermissionManager" ID="FeaturePermissionManager"></a>
<h2>FeaturePermissionManager</h2>
<p>
    Class implementing the feature permission manager object.
</p>
<h3>Derived from</h3>
QObject
<h3>Class Attributes</h3>
<table>
<tr><td>SettingsKeyFormat</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#FeaturePermissionManager.__init__">FeaturePermissionManager</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#FeaturePermissionManager.__loadSettings">__loadSettings</a></td>
<td>Private method to load the remembered feature permissions.</td>
</tr><tr>
<td><a href="#FeaturePermissionManager.__saveSettings">__saveSettings</a></td>
<td>Private method to save the remembered feature permissions.</td>
</tr><tr>
<td><a href="#FeaturePermissionManager.rememberFeaturePermission">rememberFeaturePermission</a></td>
<td>Public method to remember a user decision for a feature permission.</td>
</tr><tr>
<td><a href="#FeaturePermissionManager.requestFeaturePermission">requestFeaturePermission</a></td>
<td>Public method to request a feature permission.</td>
</tr><tr>
<td><a href="#FeaturePermissionManager.showFeaturePermissionsDialog">showFeaturePermissionsDialog</a></td>
<td>Public method to show a dialog to manage the remembered feature permissions.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="FeaturePermissionManager.__init__" ID="FeaturePermissionManager.__init__"></a>
<h4>FeaturePermissionManager (Constructor)</h4>
<b>FeaturePermissionManager</b>(<i>parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>parent</i> (QObject)</dt>
<dd>
reference to the parent object
</dd>
</dl><a NAME="FeaturePermissionManager.__loadSettings" ID="FeaturePermissionManager.__loadSettings"></a>
<h4>FeaturePermissionManager.__loadSettings</h4>
<b>__loadSettings</b>(<i></i>)
<p>
        Private method to load the remembered feature permissions.
</p><a NAME="FeaturePermissionManager.__saveSettings" ID="FeaturePermissionManager.__saveSettings"></a>
<h4>FeaturePermissionManager.__saveSettings</h4>
<b>__saveSettings</b>(<i></i>)
<p>
        Private method to save the remembered feature permissions.
</p><a NAME="FeaturePermissionManager.rememberFeaturePermission" ID="FeaturePermissionManager.rememberFeaturePermission"></a>
<h4>FeaturePermissionManager.rememberFeaturePermission</h4>
<b>rememberFeaturePermission</b>(<i>host, feature, permission</i>)
<p>
        Public method to remember a user decision for a feature permission.
</p><dl>
<dt><i>host</i> (str)</dt>
<dd>
host name to remember the decision for
</dd><dt><i>feature</i> (QWebPage.Feature)</dt>
<dd>
feature to be remembered
</dd><dt><i>permission</i> (QWebPage.PermissionPolicy)</dt>
<dd>
feature permission to be remembered
</dd>
</dl><a NAME="FeaturePermissionManager.requestFeaturePermission" ID="FeaturePermissionManager.requestFeaturePermission"></a>
<h4>FeaturePermissionManager.requestFeaturePermission</h4>
<b>requestFeaturePermission</b>(<i>page, frame, feature</i>)
<p>
        Public method to request a feature permission.
</p><dl>
<dt><i>page</i> (QWebPage)</dt>
<dd>
reference to the requesting web page
</dd><dt><i>frame</i> (QWebFrame)</dt>
<dd>
frame sending the request
</dd><dt><i>feature</i> (QWebPage.Feature)</dt>
<dd>
requested feature
</dd>
</dl><a NAME="FeaturePermissionManager.showFeaturePermissionsDialog" ID="FeaturePermissionManager.showFeaturePermissionsDialog"></a>
<h4>FeaturePermissionManager.showFeaturePermissionsDialog</h4>
<b>showFeaturePermissionsDialog</b>(<i></i>)
<p>
        Public method to show a dialog to manage the remembered feature
        permissions.
</p>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial