eric6/Documentation/Source/eric6.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader.html

branch
maintenance
changeset 7286
7eb04391adf7
parent 7273
391d6b7b1eff
equal deleted inserted replaced
7226:babe80d84a3e 7286:7eb04391adf7
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</h1> 23 <h1>eric6.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</h1>
24
23 <p> 25 <p>
24 Module implementing the downloader for GreaseMonkey scripts. 26 Module implementing the downloader for GreaseMonkey scripts.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
34
31 <table> 35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#GreaseMonkeyDownloader">GreaseMonkeyDownloader</a></td> 38 <td><a href="#GreaseMonkeyDownloader">GreaseMonkeyDownloader</a></td>
34 <td>Class implementing the downloader for GreaseMonkey scripts.</td> 39 <td>Class implementing the downloader for GreaseMonkey scripts.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
43
38 <table> 44 <table>
39 <tr><td>None</td></tr> 45 <tr><td>None</td></tr>
40 </table> 46 </table>
41 <hr /><hr /> 47 <hr />
48 <hr />
42 <a NAME="GreaseMonkeyDownloader" ID="GreaseMonkeyDownloader"></a> 49 <a NAME="GreaseMonkeyDownloader" ID="GreaseMonkeyDownloader"></a>
43 <h2>GreaseMonkeyDownloader</h2> 50 <h2>GreaseMonkeyDownloader</h2>
51
44 <p> 52 <p>
45 Class implementing the downloader for GreaseMonkey scripts. 53 Class implementing the downloader for GreaseMonkey scripts.
46 </p><h3>Signals</h3> 54 </p>
55 <h3>Signals</h3>
47 <dl> 56 <dl>
57
48 <dt>error()</dt> 58 <dt>error()</dt>
49 <dd> 59 <dd>
50 emitted to indicate a script download error 60 emitted to indicate a script download error
51 </dd><dt>finished(fileName)</dt> 61 </dd>
62 <dt>finished(fileName)</dt>
52 <dd> 63 <dd>
53 emitted to indicate the end of a script download 64 emitted to indicate the end of a script download
54 (str) 65 (str)
55 </dd> 66 </dd>
56 </dl> 67 </dl>
57 <h3>Derived from</h3> 68 <h3>Derived from</h3>
58 QObject 69 QObject
59 <h3>Class Attributes</h3> 70 <h3>Class Attributes</h3>
71
60 <table> 72 <table>
61 <tr><td>DownloadMainScript</td></tr><tr><td>DownloadRequireScript</td></tr> 73 <tr><td>DownloadMainScript</td></tr><tr><td>DownloadRequireScript</td></tr>
62 </table> 74 </table>
63 <h3>Class Methods</h3> 75 <h3>Class Methods</h3>
76
64 <table> 77 <table>
65 <tr><td>None</td></tr> 78 <tr><td>None</td></tr>
66 </table> 79 </table>
67 <h3>Methods</h3> 80 <h3>Methods</h3>
81
68 <table> 82 <table>
83
69 <tr> 84 <tr>
70 <td><a href="#GreaseMonkeyDownloader.__init__">GreaseMonkeyDownloader</a></td> 85 <td><a href="#GreaseMonkeyDownloader.__init__">GreaseMonkeyDownloader</a></td>
71 <td>Constructor</td> 86 <td>Constructor</td>
72 </tr><tr> 87 </tr>
88 <tr>
73 <td><a href="#GreaseMonkeyDownloader.__requireDownloaded">__requireDownloaded</a></td> 89 <td><a href="#GreaseMonkeyDownloader.__requireDownloaded">__requireDownloaded</a></td>
74 <td>Private slot to handle the finished download of a required script.</td> 90 <td>Private slot to handle the finished download of a required script.</td>
75 </tr><tr> 91 </tr>
92 <tr>
76 <td><a href="#GreaseMonkeyDownloader.__scriptDownloaded">__scriptDownloaded</a></td> 93 <td><a href="#GreaseMonkeyDownloader.__scriptDownloaded">__scriptDownloaded</a></td>
77 <td>Private slot to handle the finished download of a script.</td> 94 <td>Private slot to handle the finished download of a script.</td>
78 </tr><tr> 95 </tr>
96 <tr>
79 <td><a href="#GreaseMonkeyDownloader.updateScript">updateScript</a></td> 97 <td><a href="#GreaseMonkeyDownloader.updateScript">updateScript</a></td>
80 <td>Public method to set the file name for the script to be downloaded.</td> 98 <td>Public method to set the file name for the script to be downloaded.</td>
81 </tr> 99 </tr>
82 </table> 100 </table>
83 <h3>Static Methods</h3> 101 <h3>Static Methods</h3>
102
84 <table> 103 <table>
85 <tr><td>None</td></tr> 104 <tr><td>None</td></tr>
86 </table> 105 </table>
106
87 <a NAME="GreaseMonkeyDownloader.__init__" ID="GreaseMonkeyDownloader.__init__"></a> 107 <a NAME="GreaseMonkeyDownloader.__init__" ID="GreaseMonkeyDownloader.__init__"></a>
88 <h4>GreaseMonkeyDownloader (Constructor)</h4> 108 <h4>GreaseMonkeyDownloader (Constructor)</h4>
89 <b>GreaseMonkeyDownloader</b>(<i>url, manager, mode</i>) 109 <b>GreaseMonkeyDownloader</b>(<i>url, manager, mode</i>)
110
90 <p> 111 <p>
91 Constructor 112 Constructor
92 </p><dl> 113 </p>
114 <dl>
115
93 <dt><i>url</i> (QUrl)</dt> 116 <dt><i>url</i> (QUrl)</dt>
94 <dd> 117 <dd>
95 URL to download script from 118 URL to download script from
96 </dd><dt><i>manager</i> (GreaseMonkeyManager)</dt> 119 </dd>
120 <dt><i>manager</i> (GreaseMonkeyManager)</dt>
97 <dd> 121 <dd>
98 reference to the GreaseMonkey manager 122 reference to the GreaseMonkey manager
99 </dd><dt><i>mode</i> (int (one of DownloadMainScript, DownloadRequireScript))</dt> 123 </dd>
124 <dt><i>mode</i> (int (one of DownloadMainScript, DownloadRequireScript))</dt>
100 <dd> 125 <dd>
101 download mode 126 download mode
102 </dd> 127 </dd>
103 </dl><a NAME="GreaseMonkeyDownloader.__requireDownloaded" ID="GreaseMonkeyDownloader.__requireDownloaded"></a> 128 </dl>
129 <a NAME="GreaseMonkeyDownloader.__requireDownloaded" ID="GreaseMonkeyDownloader.__requireDownloaded"></a>
104 <h4>GreaseMonkeyDownloader.__requireDownloaded</h4> 130 <h4>GreaseMonkeyDownloader.__requireDownloaded</h4>
105 <b>__requireDownloaded</b>(<i></i>) 131 <b>__requireDownloaded</b>(<i></i>)
132
106 <p> 133 <p>
107 Private slot to handle the finished download of a required script. 134 Private slot to handle the finished download of a required script.
108 </p><a NAME="GreaseMonkeyDownloader.__scriptDownloaded" ID="GreaseMonkeyDownloader.__scriptDownloaded"></a> 135 </p>
136 <a NAME="GreaseMonkeyDownloader.__scriptDownloaded" ID="GreaseMonkeyDownloader.__scriptDownloaded"></a>
109 <h4>GreaseMonkeyDownloader.__scriptDownloaded</h4> 137 <h4>GreaseMonkeyDownloader.__scriptDownloaded</h4>
110 <b>__scriptDownloaded</b>(<i></i>) 138 <b>__scriptDownloaded</b>(<i></i>)
139
111 <p> 140 <p>
112 Private slot to handle the finished download of a script. 141 Private slot to handle the finished download of a script.
113 </p><a NAME="GreaseMonkeyDownloader.updateScript" ID="GreaseMonkeyDownloader.updateScript"></a> 142 </p>
143 <a NAME="GreaseMonkeyDownloader.updateScript" ID="GreaseMonkeyDownloader.updateScript"></a>
114 <h4>GreaseMonkeyDownloader.updateScript</h4> 144 <h4>GreaseMonkeyDownloader.updateScript</h4>
115 <b>updateScript</b>(<i>fileName</i>) 145 <b>updateScript</b>(<i>fileName</i>)
146
116 <p> 147 <p>
117 Public method to set the file name for the script to be downloaded. 148 Public method to set the file name for the script to be downloaded.
118 </p><dl> 149 </p>
150 <dl>
151
119 <dt><i>fileName</i> (str)</dt> 152 <dt><i>fileName</i> (str)</dt>
120 <dd> 153 <dd>
121 file name for the script 154 file name for the script
122 </dd> 155 </dd>
123 </dl> 156 </dl>

eric ide

mercurial