|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the downloader for GreaseMonkey scripts. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#GreaseMonkeyDownloader">GreaseMonkeyDownloader</a></td> |
|
25 <td>Class implementing the downloader for GreaseMonkey scripts.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="GreaseMonkeyDownloader" ID="GreaseMonkeyDownloader"></a> |
|
36 <h2>GreaseMonkeyDownloader</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the downloader for GreaseMonkey scripts. |
|
40 </p> |
|
41 <h3>Signals</h3> |
|
42 <dl> |
|
43 |
|
44 <dt>error()</dt> |
|
45 <dd> |
|
46 emitted to indicate a script download error |
|
47 </dd> |
|
48 <dt>finished(fileName)</dt> |
|
49 <dd> |
|
50 emitted to indicate the end of a script download |
|
51 (str) |
|
52 </dd> |
|
53 </dl> |
|
54 <h3>Derived from</h3> |
|
55 QObject |
|
56 <h3>Class Attributes</h3> |
|
57 |
|
58 <table> |
|
59 <tr><td>DownloadMainScript</td></tr><tr><td>DownloadRequireScript</td></tr> |
|
60 </table> |
|
61 <h3>Class Methods</h3> |
|
62 |
|
63 <table> |
|
64 <tr><td>None</td></tr> |
|
65 </table> |
|
66 <h3>Methods</h3> |
|
67 |
|
68 <table> |
|
69 |
|
70 <tr> |
|
71 <td><a href="#GreaseMonkeyDownloader.__init__">GreaseMonkeyDownloader</a></td> |
|
72 <td>Constructor</td> |
|
73 </tr> |
|
74 <tr> |
|
75 <td><a href="#GreaseMonkeyDownloader.__requireDownloaded">__requireDownloaded</a></td> |
|
76 <td>Private slot to handle the finished download of a required script.</td> |
|
77 </tr> |
|
78 <tr> |
|
79 <td><a href="#GreaseMonkeyDownloader.__scriptDownloaded">__scriptDownloaded</a></td> |
|
80 <td>Private slot to handle the finished download of a script.</td> |
|
81 </tr> |
|
82 <tr> |
|
83 <td><a href="#GreaseMonkeyDownloader.updateScript">updateScript</a></td> |
|
84 <td>Public method to set the file name for the script to be downloaded.</td> |
|
85 </tr> |
|
86 </table> |
|
87 <h3>Static Methods</h3> |
|
88 |
|
89 <table> |
|
90 <tr><td>None</td></tr> |
|
91 </table> |
|
92 |
|
93 <a NAME="GreaseMonkeyDownloader.__init__" ID="GreaseMonkeyDownloader.__init__"></a> |
|
94 <h4>GreaseMonkeyDownloader (Constructor)</h4> |
|
95 <b>GreaseMonkeyDownloader</b>(<i>url, manager, mode</i>) |
|
96 |
|
97 <p> |
|
98 Constructor |
|
99 </p> |
|
100 <dl> |
|
101 |
|
102 <dt><i>url</i> (QUrl)</dt> |
|
103 <dd> |
|
104 URL to download script from |
|
105 </dd> |
|
106 <dt><i>manager</i> (GreaseMonkeyManager)</dt> |
|
107 <dd> |
|
108 reference to the GreaseMonkey manager |
|
109 </dd> |
|
110 <dt><i>mode</i> (int (one of DownloadMainScript, DownloadRequireScript))</dt> |
|
111 <dd> |
|
112 download mode |
|
113 </dd> |
|
114 </dl> |
|
115 <a NAME="GreaseMonkeyDownloader.__requireDownloaded" ID="GreaseMonkeyDownloader.__requireDownloaded"></a> |
|
116 <h4>GreaseMonkeyDownloader.__requireDownloaded</h4> |
|
117 <b>__requireDownloaded</b>(<i></i>) |
|
118 |
|
119 <p> |
|
120 Private slot to handle the finished download of a required script. |
|
121 </p> |
|
122 <a NAME="GreaseMonkeyDownloader.__scriptDownloaded" ID="GreaseMonkeyDownloader.__scriptDownloaded"></a> |
|
123 <h4>GreaseMonkeyDownloader.__scriptDownloaded</h4> |
|
124 <b>__scriptDownloaded</b>(<i></i>) |
|
125 |
|
126 <p> |
|
127 Private slot to handle the finished download of a script. |
|
128 </p> |
|
129 <a NAME="GreaseMonkeyDownloader.updateScript" ID="GreaseMonkeyDownloader.updateScript"></a> |
|
130 <h4>GreaseMonkeyDownloader.updateScript</h4> |
|
131 <b>updateScript</b>(<i>fileName</i>) |
|
132 |
|
133 <p> |
|
134 Public method to set the file name for the script to be downloaded. |
|
135 </p> |
|
136 <dl> |
|
137 |
|
138 <dt><i>fileName</i> (str)</dt> |
|
139 <dd> |
|
140 file name for the script |
|
141 </dd> |
|
142 </dl> |
|
143 <div align="right"><a href="#top">Up</a></div> |
|
144 <hr /> |
|
145 </body></html> |