41 <h3>Signals</h3> |
41 <h3>Signals</h3> |
42 <dl> |
42 <dl> |
43 |
43 |
44 <dt>syncError(message)</dt> |
44 <dt>syncError(message)</dt> |
45 <dd> |
45 <dd> |
46 emitted for a general error with the error |
46 emitted for a general error with the error message |
47 message (string) |
|
48 </dd> |
47 </dd> |
49 <dt>syncFinished(type_, done, download)</dt> |
48 <dt>syncFinished(type_, done, download)</dt> |
50 <dd> |
49 <dd> |
51 emitted after a |
50 emitted after a synchronization |
52 synchronization has finished (string one of "bookmarks", "history", |
51 has finished |
53 "passwords", "useragents" or "speeddial", boolean, boolean) |
|
54 </dd> |
52 </dd> |
55 <dt>syncMessage(message)</dt> |
53 <dt>syncMessage(message)</dt> |
56 <dd> |
54 <dd> |
57 emitted to send a message about |
55 emitted to send a message about synchronization |
58 synchronization (string) |
|
59 </dd> |
56 </dd> |
60 <dt>syncStatus(type_, message)</dt> |
57 <dt>syncStatus(type_, message)</dt> |
61 <dd> |
58 <dd> |
62 emitted to indicate the synchronization |
59 emitted to indicate the synchronization status |
63 status (string one of "bookmarks", "history", "passwords", |
|
64 "useragents" or "speeddial", string) |
|
65 </dd> |
60 </dd> |
66 </dl> |
61 </dl> |
67 <h3>Derived from</h3> |
62 <h3>Derived from</h3> |
68 SyncHandler |
63 SyncHandler |
69 <h3>Class Attributes</h3> |
64 <h3>Class Attributes</h3> |
146 <p> |
141 <p> |
147 Constructor |
142 Constructor |
148 </p> |
143 </p> |
149 <dl> |
144 <dl> |
150 |
145 |
151 <dt><i>parent</i></dt> |
146 <dt><i>parent</i> (QObject)</dt> |
152 <dd> |
147 <dd> |
153 reference to the parent object (QObject) |
148 reference to the parent object |
154 </dd> |
149 </dd> |
155 </dl> |
150 </dl> |
156 <a NAME="DirectorySyncHandler.__downloadFile" ID="DirectorySyncHandler.__downloadFile"></a> |
151 <a NAME="DirectorySyncHandler.__downloadFile" ID="DirectorySyncHandler.__downloadFile"></a> |
157 <h4>DirectorySyncHandler.__downloadFile</h4> |
152 <h4>DirectorySyncHandler.__downloadFile</h4> |
158 <b>__downloadFile</b>(<i>type_, fileName, timestamp</i>) |
153 <b>__downloadFile</b>(<i>type_, fileName, timestamp</i>) |
160 <p> |
155 <p> |
161 Private method to downlaod the given file. |
156 Private method to downlaod the given file. |
162 </p> |
157 </p> |
163 <dl> |
158 <dl> |
164 |
159 |
165 <dt><i>type_</i></dt> |
160 <dt><i>type_</i> (str)</dt> |
166 <dd> |
161 <dd> |
167 type of the synchronization event (string one |
162 type of the synchronization event (one of |
168 of "bookmarks", "history", "passwords", "useragents" or |
163 "bookmarks", "history", "passwords", "useragents" or "speeddial") |
169 "speeddial") |
164 </dd> |
170 </dd> |
165 <dt><i>fileName</i> (str)</dt> |
171 <dt><i>fileName</i></dt> |
166 <dd> |
172 <dd> |
167 name of the file to be downloaded |
173 name of the file to be downloaded (string) |
168 </dd> |
174 </dd> |
169 <dt><i>timestamp</i> (int)</dt> |
175 <dt><i>timestamp</i></dt> |
|
176 <dd> |
170 <dd> |
177 time stamp in seconds of the file to be downloaded |
171 time stamp in seconds of the file to be downloaded |
178 (integer) |
|
179 </dd> |
172 </dd> |
180 </dl> |
173 </dl> |
181 <a NAME="DirectorySyncHandler.__initialSync" ID="DirectorySyncHandler.__initialSync"></a> |
174 <a NAME="DirectorySyncHandler.__initialSync" ID="DirectorySyncHandler.__initialSync"></a> |
182 <h4>DirectorySyncHandler.__initialSync</h4> |
175 <h4>DirectorySyncHandler.__initialSync</h4> |
183 <b>__initialSync</b>(<i></i>) |
176 <b>__initialSync</b>(<i></i>) |
192 <p> |
185 <p> |
193 Private method to do the initial synchronization of the given file. |
186 Private method to do the initial synchronization of the given file. |
194 </p> |
187 </p> |
195 <dl> |
188 <dl> |
196 |
189 |
197 <dt><i>type_</i></dt> |
190 <dt><i>type_</i> (str)</dt> |
198 <dd> |
191 <dd> |
199 type of the synchronization event (string one |
192 type of the synchronization event (one of "bookmarks", |
200 of "bookmarks", "history", "passwords", "useragents" or |
193 "history", "passwords", "useragents" or "speeddial") |
201 "speeddial") |
194 </dd> |
202 </dd> |
195 <dt><i>fileName</i> (str)</dt> |
203 <dt><i>fileName</i></dt> |
196 <dd> |
204 <dd> |
197 name of the file to be synchronized |
205 name of the file to be synchronized (string) |
|
206 </dd> |
198 </dd> |
207 </dl> |
199 </dl> |
208 <a NAME="DirectorySyncHandler.__syncFile" ID="DirectorySyncHandler.__syncFile"></a> |
200 <a NAME="DirectorySyncHandler.__syncFile" ID="DirectorySyncHandler.__syncFile"></a> |
209 <h4>DirectorySyncHandler.__syncFile</h4> |
201 <h4>DirectorySyncHandler.__syncFile</h4> |
210 <b>__syncFile</b>(<i>type_, fileName</i>) |
202 <b>__syncFile</b>(<i>type_, fileName</i>) |
212 <p> |
204 <p> |
213 Private method to synchronize the given file. |
205 Private method to synchronize the given file. |
214 </p> |
206 </p> |
215 <dl> |
207 <dl> |
216 |
208 |
217 <dt><i>type_</i></dt> |
209 <dt><i>type_</i> (str)</dt> |
218 <dd> |
210 <dd> |
219 type of the synchronization event (string one |
211 type of the synchronization event (one of "bookmarks", |
220 of "bookmarks", "history", "passwords", "useragents" or |
212 "history", "passwords", "useragents" or "speeddial") |
221 "speeddial") |
213 </dd> |
222 </dd> |
214 <dt><i>fileName</i> (str)</dt> |
223 <dt><i>fileName</i></dt> |
215 <dd> |
224 <dd> |
216 name of the file to be synchronized |
225 name of the file to be synchronized (string) |
|
226 </dd> |
217 </dd> |
227 </dl> |
218 </dl> |
228 <a NAME="DirectorySyncHandler.__uploadFile" ID="DirectorySyncHandler.__uploadFile"></a> |
219 <a NAME="DirectorySyncHandler.__uploadFile" ID="DirectorySyncHandler.__uploadFile"></a> |
229 <h4>DirectorySyncHandler.__uploadFile</h4> |
220 <h4>DirectorySyncHandler.__uploadFile</h4> |
230 <b>__uploadFile</b>(<i>type_, fileName</i>) |
221 <b>__uploadFile</b>(<i>type_, fileName</i>) |
232 <p> |
223 <p> |
233 Private method to upload the given file. |
224 Private method to upload the given file. |
234 </p> |
225 </p> |
235 <dl> |
226 <dl> |
236 |
227 |
237 <dt><i>type_</i></dt> |
228 <dt><i>type_</i> (str)</dt> |
238 <dd> |
229 <dd> |
239 type of the synchronization event (string one |
230 type of the synchronization event (one of "bookmarks", |
240 of "bookmarks", "history", "passwords", "useragents" or |
231 "history", "passwords", "useragents" or "speeddial") |
241 "speeddial") |
232 </dd> |
242 </dd> |
233 <dt><i>fileName</i> (str)</dt> |
243 <dt><i>fileName</i></dt> |
234 <dd> |
244 <dd> |
235 name of the file to be uploaded |
245 name of the file to be uploaded (string) |
|
246 </dd> |
236 </dd> |
247 </dl> |
237 </dl> |
248 <a NAME="DirectorySyncHandler.initialLoadAndCheck" ID="DirectorySyncHandler.initialLoadAndCheck"></a> |
238 <a NAME="DirectorySyncHandler.initialLoadAndCheck" ID="DirectorySyncHandler.initialLoadAndCheck"></a> |
249 <h4>DirectorySyncHandler.initialLoadAndCheck</h4> |
239 <h4>DirectorySyncHandler.initialLoadAndCheck</h4> |
250 <b>initialLoadAndCheck</b>(<i>forceUpload</i>) |
240 <b>initialLoadAndCheck</b>(<i>forceUpload</i>) |
252 <p> |
242 <p> |
253 Public method to do the initial check. |
243 Public method to do the initial check. |
254 </p> |
244 </p> |
255 <dl> |
245 <dl> |
256 |
246 |
257 <dt><i>forceUpload</i></dt> |
247 <dt><i>forceUpload</i> (bool)</dt> |
258 <dd> |
248 <dd> |
259 flag indicating a forced upload of the files |
249 flag indicating a forced upload of the files |
260 (boolean) |
|
261 </dd> |
250 </dd> |
262 </dl> |
251 </dl> |
263 <a NAME="DirectorySyncHandler.shutdown" ID="DirectorySyncHandler.shutdown"></a> |
252 <a NAME="DirectorySyncHandler.shutdown" ID="DirectorySyncHandler.shutdown"></a> |
264 <h4>DirectorySyncHandler.shutdown</h4> |
253 <h4>DirectorySyncHandler.shutdown</h4> |
265 <b>shutdown</b>(<i></i>) |
254 <b>shutdown</b>(<i></i>) |