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

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
equal deleted inserted replaced
7226:babe80d84a3e 7286:7eb04391adf7
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Helpviewer.FeaturePermissions.FeaturePermissionManager</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.Helpviewer.FeaturePermissions.FeaturePermissionManager</h1>
23 <p>
24 Module implementing the feature permission manager object.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#FeaturePermissionManager">FeaturePermissionManager</a></td>
34 <td>Class implementing the feature permission manager object.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="FeaturePermissionManager" ID="FeaturePermissionManager"></a>
43 <h2>FeaturePermissionManager</h2>
44 <p>
45 Class implementing the feature permission manager object.
46 </p>
47 <h3>Derived from</h3>
48 QObject
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>SettingsKeyFormat</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#FeaturePermissionManager.__init__">FeaturePermissionManager</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#FeaturePermissionManager.__loadSettings">__loadSettings</a></td>
64 <td>Private method to load the remembered feature permissions.</td>
65 </tr><tr>
66 <td><a href="#FeaturePermissionManager.__saveSettings">__saveSettings</a></td>
67 <td>Private method to save the remembered feature permissions.</td>
68 </tr><tr>
69 <td><a href="#FeaturePermissionManager.rememberFeaturePermission">rememberFeaturePermission</a></td>
70 <td>Public method to remember a user decision for a feature permission.</td>
71 </tr><tr>
72 <td><a href="#FeaturePermissionManager.requestFeaturePermission">requestFeaturePermission</a></td>
73 <td>Public method to request a feature permission.</td>
74 </tr><tr>
75 <td><a href="#FeaturePermissionManager.showFeaturePermissionsDialog">showFeaturePermissionsDialog</a></td>
76 <td>Public method to show a dialog to manage the remembered feature permissions.</td>
77 </tr>
78 </table>
79 <h3>Static Methods</h3>
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83 <a NAME="FeaturePermissionManager.__init__" ID="FeaturePermissionManager.__init__"></a>
84 <h4>FeaturePermissionManager (Constructor)</h4>
85 <b>FeaturePermissionManager</b>(<i>parent=None</i>)
86 <p>
87 Constructor
88 </p><dl>
89 <dt><i>parent</i> (QObject)</dt>
90 <dd>
91 reference to the parent object
92 </dd>
93 </dl><a NAME="FeaturePermissionManager.__loadSettings" ID="FeaturePermissionManager.__loadSettings"></a>
94 <h4>FeaturePermissionManager.__loadSettings</h4>
95 <b>__loadSettings</b>(<i></i>)
96 <p>
97 Private method to load the remembered feature permissions.
98 </p><a NAME="FeaturePermissionManager.__saveSettings" ID="FeaturePermissionManager.__saveSettings"></a>
99 <h4>FeaturePermissionManager.__saveSettings</h4>
100 <b>__saveSettings</b>(<i></i>)
101 <p>
102 Private method to save the remembered feature permissions.
103 </p><a NAME="FeaturePermissionManager.rememberFeaturePermission" ID="FeaturePermissionManager.rememberFeaturePermission"></a>
104 <h4>FeaturePermissionManager.rememberFeaturePermission</h4>
105 <b>rememberFeaturePermission</b>(<i>host, feature, permission</i>)
106 <p>
107 Public method to remember a user decision for a feature permission.
108 </p><dl>
109 <dt><i>host</i> (str)</dt>
110 <dd>
111 host name to remember the decision for
112 </dd><dt><i>feature</i> (QWebPage.Feature)</dt>
113 <dd>
114 feature to be remembered
115 </dd><dt><i>permission</i> (QWebPage.PermissionPolicy)</dt>
116 <dd>
117 feature permission to be remembered
118 </dd>
119 </dl><a NAME="FeaturePermissionManager.requestFeaturePermission" ID="FeaturePermissionManager.requestFeaturePermission"></a>
120 <h4>FeaturePermissionManager.requestFeaturePermission</h4>
121 <b>requestFeaturePermission</b>(<i>page, frame, feature</i>)
122 <p>
123 Public method to request a feature permission.
124 </p><dl>
125 <dt><i>page</i> (QWebPage)</dt>
126 <dd>
127 reference to the requesting web page
128 </dd><dt><i>frame</i> (QWebFrame)</dt>
129 <dd>
130 frame sending the request
131 </dd><dt><i>feature</i> (QWebPage.Feature)</dt>
132 <dd>
133 requested feature
134 </dd>
135 </dl><a NAME="FeaturePermissionManager.showFeaturePermissionsDialog" ID="FeaturePermissionManager.showFeaturePermissionsDialog"></a>
136 <h4>FeaturePermissionManager.showFeaturePermissionsDialog</h4>
137 <b>showFeaturePermissionsDialog</b>(<i></i>)
138 <p>
139 Public method to show a dialog to manage the remembered feature
140 permissions.
141 </p>
142 <div align="right"><a href="#top">Up</a></div>
143 <hr />
144 </body></html>

eric ide

mercurial