|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</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.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</h1> |
|
23 <p> |
|
24 Module implementing the downloader for GreaseMonkey scripts. |
|
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="#GreaseMonkeyDownloader">GreaseMonkeyDownloader</a></td> |
|
34 <td>Class implementing the downloader for GreaseMonkey scripts.</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="GreaseMonkeyDownloader" ID="GreaseMonkeyDownloader"></a> |
|
43 <h2>GreaseMonkeyDownloader</h2> |
|
44 <p> |
|
45 Class implementing the downloader for GreaseMonkey scripts. |
|
46 </p><h3>Signals</h3> |
|
47 <dl> |
|
48 <dt>error()</dt> |
|
49 <dd> |
|
50 emitted to indicate a script download error |
|
51 </dd><dt>finished(fileName)</dt> |
|
52 <dd> |
|
53 emitted to indicate the end of a script download |
|
54 (str) |
|
55 </dd> |
|
56 </dl> |
|
57 <h3>Derived from</h3> |
|
58 QObject |
|
59 <h3>Class Attributes</h3> |
|
60 <table> |
|
61 <tr><td>DownloadMainScript</td></tr><tr><td>DownloadRequireScript</td></tr> |
|
62 </table> |
|
63 <h3>Class Methods</h3> |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 <table> |
|
69 <tr> |
|
70 <td><a href="#GreaseMonkeyDownloader.__init__">GreaseMonkeyDownloader</a></td> |
|
71 <td>Constructor</td> |
|
72 </tr><tr> |
|
73 <td><a href="#GreaseMonkeyDownloader.__requireDownloaded">__requireDownloaded</a></td> |
|
74 <td>Private slot to handle the finished download of a required script.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#GreaseMonkeyDownloader.__scriptDownloaded">__scriptDownloaded</a></td> |
|
77 <td>Private slot to handle the finished download of a script.</td> |
|
78 </tr><tr> |
|
79 <td><a href="#GreaseMonkeyDownloader.updateScript">updateScript</a></td> |
|
80 <td>Public method to set the file name for the script to be downloaded.</td> |
|
81 </tr> |
|
82 </table> |
|
83 <h3>Static Methods</h3> |
|
84 <table> |
|
85 <tr><td>None</td></tr> |
|
86 </table> |
|
87 <a NAME="GreaseMonkeyDownloader.__init__" ID="GreaseMonkeyDownloader.__init__"></a> |
|
88 <h4>GreaseMonkeyDownloader (Constructor)</h4> |
|
89 <b>GreaseMonkeyDownloader</b>(<i>url, manager, mode</i>) |
|
90 <p> |
|
91 Constructor |
|
92 </p><dl> |
|
93 <dt><i>url</i> (QUrl)</dt> |
|
94 <dd> |
|
95 URL to download script from |
|
96 </dd><dt><i>manager</i> (GreaseMonkeyManager)</dt> |
|
97 <dd> |
|
98 reference to the GreaseMonkey manager |
|
99 </dd><dt><i>mode</i> (int (one of DownloadMainScript, DownloadRequireScript))</dt> |
|
100 <dd> |
|
101 download mode |
|
102 </dd> |
|
103 </dl><a NAME="GreaseMonkeyDownloader.__requireDownloaded" ID="GreaseMonkeyDownloader.__requireDownloaded"></a> |
|
104 <h4>GreaseMonkeyDownloader.__requireDownloaded</h4> |
|
105 <b>__requireDownloaded</b>(<i></i>) |
|
106 <p> |
|
107 Private slot to handle the finished download of a required script. |
|
108 </p><a NAME="GreaseMonkeyDownloader.__scriptDownloaded" ID="GreaseMonkeyDownloader.__scriptDownloaded"></a> |
|
109 <h4>GreaseMonkeyDownloader.__scriptDownloaded</h4> |
|
110 <b>__scriptDownloaded</b>(<i></i>) |
|
111 <p> |
|
112 Private slot to handle the finished download of a script. |
|
113 </p><a NAME="GreaseMonkeyDownloader.updateScript" ID="GreaseMonkeyDownloader.updateScript"></a> |
|
114 <h4>GreaseMonkeyDownloader.updateScript</h4> |
|
115 <b>updateScript</b>(<i>fileName</i>) |
|
116 <p> |
|
117 Public method to set the file name for the script to be downloaded. |
|
118 </p><dl> |
|
119 <dt><i>fileName</i> (str)</dt> |
|
120 <dd> |
|
121 file name for the script |
|
122 </dd> |
|
123 </dl> |
|
124 <div align="right"><a href="#top">Up</a></div> |
|
125 <hr /> |
|
126 </body></html> |