52 </dd><dt>syncFinished(type_, done, download)</dt> |
52 </dd><dt>syncFinished(type_, done, download)</dt> |
53 <dd> |
53 <dd> |
54 emitted after a synchronization has |
54 emitted after a synchronization has |
55 finished (string one of "bookmarks", "history", "passwords" or "useragents", |
55 finished (string one of "bookmarks", "history", "passwords" or "useragents", |
56 boolean, boolean) |
56 boolean, boolean) |
|
57 </dd><dt>syncMessage(message)</dt> |
|
58 <dd> |
|
59 emitted to send a message about synchronization (string) |
57 </dd><dt>syncStatus(type_, done, message)</dt> |
60 </dd><dt>syncStatus(type_, done, message)</dt> |
58 <dd> |
61 <dd> |
59 emitted to indicate the synchronization |
62 emitted to indicate the synchronization |
60 status (string one of "bookmarks", "history", "passwords" or "useragents", |
63 status (string one of "bookmarks", "history", "passwords" or "useragents", |
61 boolean, string) |
64 boolean, string) |
84 <td>Private slot called for each entry sent by the FTP list command.</td> |
87 <td>Private slot called for each entry sent by the FTP list command.</td> |
85 </tr><tr> |
88 </tr><tr> |
86 <td><a href="#FtpSyncHandler.__commandFinished">__commandFinished</a></td> |
89 <td><a href="#FtpSyncHandler.__commandFinished">__commandFinished</a></td> |
87 <td>Private slot handling the end of a command.</td> |
90 <td>Private slot handling the end of a command.</td> |
88 </tr><tr> |
91 </tr><tr> |
|
92 <td><a href="#FtpSyncHandler.__downloadFile">__downloadFile</a></td> |
|
93 <td>Private method to downlaod the given file.</td> |
|
94 </tr><tr> |
89 <td><a href="#FtpSyncHandler.__idleTimeout">__idleTimeout</a></td> |
95 <td><a href="#FtpSyncHandler.__idleTimeout">__idleTimeout</a></td> |
90 <td>Private slot to prevent a disconnect from the server.</td> |
96 <td>Private slot to prevent a disconnect from the server.</td> |
91 </tr><tr> |
97 </tr><tr> |
92 <td><a href="#FtpSyncHandler.__initialSync">__initialSync</a></td> |
98 <td><a href="#FtpSyncHandler.__initialSync">__initialSync</a></td> |
93 <td>Private slot to do the initial synchronization.</td> |
99 <td>Private slot to do the initial synchronization.</td> |
98 <td><a href="#FtpSyncHandler.__storeReached">__storeReached</a></td> |
104 <td><a href="#FtpSyncHandler.__storeReached">__storeReached</a></td> |
99 <td>Private slot executed, when the storage directory was reached.</td> |
105 <td>Private slot executed, when the storage directory was reached.</td> |
100 </tr><tr> |
106 </tr><tr> |
101 <td><a href="#FtpSyncHandler.__syncFile">__syncFile</a></td> |
107 <td><a href="#FtpSyncHandler.__syncFile">__syncFile</a></td> |
102 <td>Private method to synchronize the given file.</td> |
108 <td>Private method to synchronize the given file.</td> |
|
109 </tr><tr> |
|
110 <td><a href="#FtpSyncHandler.__uploadFile">__uploadFile</a></td> |
|
111 <td>Private method to upload the given file.</td> |
103 </tr><tr> |
112 </tr><tr> |
104 <td><a href="#FtpSyncHandler.initialLoadAndCheck">initialLoadAndCheck</a></td> |
113 <td><a href="#FtpSyncHandler.initialLoadAndCheck">initialLoadAndCheck</a></td> |
105 <td>Public method to do the initial check.</td> |
114 <td>Public method to do the initial check.</td> |
106 </tr><tr> |
115 </tr><tr> |
107 <td><a href="#FtpSyncHandler.shutdown">shutdown</a></td> |
116 <td><a href="#FtpSyncHandler.shutdown">shutdown</a></td> |
162 id of the finished command (integer) |
171 id of the finished command (integer) |
163 </dd><dt><i>error</i></dt> |
172 </dd><dt><i>error</i></dt> |
164 <dd> |
173 <dd> |
165 flag indicating an error situation (boolean) |
174 flag indicating an error situation (boolean) |
166 </dd> |
175 </dd> |
|
176 </dl><a NAME="FtpSyncHandler.__downloadFile" ID="FtpSyncHandler.__downloadFile"></a> |
|
177 <h4>FtpSyncHandler.__downloadFile</h4> |
|
178 <b>__downloadFile</b>(<i>type_, fileName</i>) |
|
179 <p> |
|
180 Private method to downlaod the given file. |
|
181 </p><dl> |
|
182 <dt><i>type_</i></dt> |
|
183 <dd> |
|
184 type of the synchronization event (string one |
|
185 of "bookmarks", "history", "passwords" or "useragents") |
|
186 </dd><dt><i>fileName</i></dt> |
|
187 <dd> |
|
188 name of the file to be downloaded (string) |
|
189 </dd> |
167 </dl><a NAME="FtpSyncHandler.__idleTimeout" ID="FtpSyncHandler.__idleTimeout"></a> |
190 </dl><a NAME="FtpSyncHandler.__idleTimeout" ID="FtpSyncHandler.__idleTimeout"></a> |
168 <h4>FtpSyncHandler.__idleTimeout</h4> |
191 <h4>FtpSyncHandler.__idleTimeout</h4> |
169 <b>__idleTimeout</b>(<i></i>) |
192 <b>__idleTimeout</b>(<i></i>) |
170 <p> |
193 <p> |
171 Private slot to prevent a disconnect from the server. |
194 Private slot to prevent a disconnect from the server. |
205 of "bookmarks", "history", "passwords" or "useragents") |
228 of "bookmarks", "history", "passwords" or "useragents") |
206 </dd><dt><i>fileName</i></dt> |
229 </dd><dt><i>fileName</i></dt> |
207 <dd> |
230 <dd> |
208 name of the file to be synchronized (string) |
231 name of the file to be synchronized (string) |
209 </dd> |
232 </dd> |
|
233 </dl><a NAME="FtpSyncHandler.__uploadFile" ID="FtpSyncHandler.__uploadFile"></a> |
|
234 <h4>FtpSyncHandler.__uploadFile</h4> |
|
235 <b>__uploadFile</b>(<i>type_, fileName</i>) |
|
236 <p> |
|
237 Private method to upload the given file. |
|
238 </p><dl> |
|
239 <dt><i>type_</i></dt> |
|
240 <dd> |
|
241 type of the synchronization event (string one |
|
242 of "bookmarks", "history", "passwords" or "useragents") |
|
243 </dd><dt><i>fileName</i></dt> |
|
244 <dd> |
|
245 name of the file to be uploaded (string) |
|
246 </dd> |
210 </dl><a NAME="FtpSyncHandler.initialLoadAndCheck" ID="FtpSyncHandler.initialLoadAndCheck"></a> |
247 </dl><a NAME="FtpSyncHandler.initialLoadAndCheck" ID="FtpSyncHandler.initialLoadAndCheck"></a> |
211 <h4>FtpSyncHandler.initialLoadAndCheck</h4> |
248 <h4>FtpSyncHandler.initialLoadAndCheck</h4> |
212 <b>initialLoadAndCheck</b>(<i></i>) |
249 <b>initialLoadAndCheck</b>(<i>forceUpload</i>) |
213 <p> |
250 <p> |
214 Public method to do the initial check. |
251 Public method to do the initial check. |
215 </p><a NAME="FtpSyncHandler.shutdown" ID="FtpSyncHandler.shutdown"></a> |
252 </p><dl> |
|
253 <dt><i>forceUpload=</i></dt> |
|
254 <dd> |
|
255 flag indicating a forced upload of the files (boolean) |
|
256 </dd> |
|
257 </dl><a NAME="FtpSyncHandler.shutdown" ID="FtpSyncHandler.shutdown"></a> |
216 <h4>FtpSyncHandler.shutdown</h4> |
258 <h4>FtpSyncHandler.shutdown</h4> |
217 <b>shutdown</b>(<i></i>) |
259 <b>shutdown</b>(<i></i>) |
218 <p> |
260 <p> |
219 Public method to shut down the handler. |
261 Public method to shut down the handler. |
220 </p><a NAME="FtpSyncHandler.syncBookmarks" ID="FtpSyncHandler.syncBookmarks"></a> |
262 </p><a NAME="FtpSyncHandler.syncBookmarks" ID="FtpSyncHandler.syncBookmarks"></a> |