Documentation/Source/eric5.Helpviewer.Sync.SyncHandler.html

changeset 1702
870ee0fa9007
parent 1695
7b115f986d48
child 2367
78f6c8193d37
equal deleted inserted replaced
1701:9eee32bac32e 1702:870ee0fa9007
50 <dd> 50 <dd>
51 emitted for a general error with the error message (string) 51 emitted for a general error with the error message (string)
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", "useragents" or
56 boolean, boolean) 56 "speeddial", boolean, boolean)
57 </dd><dt>syncMessage(message)</dt> 57 </dd><dt>syncMessage(message)</dt>
58 <dd> 58 <dd>
59 emitted to send a message about synchronization (string) 59 emitted to send a message about synchronization (string)
60 </dd><dt>syncStatus(type_, done, message)</dt> 60 </dd><dt>syncStatus(type_, message)</dt>
61 <dd> 61 <dd>
62 emitted to indicate the synchronization 62 emitted to indicate the synchronization
63 status (string one of "bookmarks", "history", "passwords" or "useragents", 63 status (string one of "bookmarks", "history", "passwords", "useragents" or
64 boolean, string) 64 "speeddial", string)
65 </dd> 65 </dd>
66 </dl> 66 </dl>
67 <h3>Derived from</h3> 67 <h3>Derived from</h3>
68 QObject 68 QObject
69 <h3>Class Attributes</h3> 69 <h3>Class Attributes</h3>
96 <td>Public method to synchronize the history.</td> 96 <td>Public method to synchronize the history.</td>
97 </tr><tr> 97 </tr><tr>
98 <td><a href="#SyncHandler.syncPasswords">syncPasswords</a></td> 98 <td><a href="#SyncHandler.syncPasswords">syncPasswords</a></td>
99 <td>Public method to synchronize the passwords.</td> 99 <td>Public method to synchronize the passwords.</td>
100 </tr><tr> 100 </tr><tr>
101 <td><a href="#SyncHandler.syncSpeedDial">syncSpeedDial</a></td>
102 <td>Public method to synchronize the speed dial data.</td>
103 </tr><tr>
101 <td><a href="#SyncHandler.syncUserAgents">syncUserAgents</a></td> 104 <td><a href="#SyncHandler.syncUserAgents">syncUserAgents</a></td>
102 <td>Public method to synchronize the user agents.</td> 105 <td>Public method to synchronize the user agents.</td>
103 </tr><tr> 106 </tr><tr>
104 <td><a href="#SyncHandler.writeFile">writeFile</a></td> 107 <td><a href="#SyncHandler.writeFile">writeFile</a></td>
105 <td>Public method to write the data to a file.</td> 108 <td>Public method to write the data to a file.</td>
129 <dd> 132 <dd>
130 flag indicating a forced upload of the files (boolean) 133 flag indicating a forced upload of the files (boolean)
131 </dd> 134 </dd>
132 </dl><a NAME="SyncHandler.readFile" ID="SyncHandler.readFile"></a> 135 </dl><a NAME="SyncHandler.readFile" ID="SyncHandler.readFile"></a>
133 <h4>SyncHandler.readFile</h4> 136 <h4>SyncHandler.readFile</h4>
134 <b>readFile</b>(<i>fileName</i>) 137 <b>readFile</b>(<i>fileName, type_</i>)
135 <p> 138 <p>
136 Public method to read a file. 139 Public method to read a file.
137 </p><p> 140 </p><p>
138 If encrypted synchronization is enabled, the data will be encrypted using 141 If encrypted synchronization is enabled, the data will be encrypted using
139 the relevant encryption key. 142 the relevant encryption key.
140 </p><dl> 143 </p><dl>
141 <dt><i>fileName</i></dt> 144 <dt><i>fileName</i></dt>
142 <dd> 145 <dd>
143 name of the file to be read (string) 146 name of the file to be read (string)
147 </dd><dt><i>type_</i></dt>
148 <dd>
149 type of the synchronization event (string one
150 of "bookmarks", "history", "passwords", "useragents" or "speeddial")
144 </dd> 151 </dd>
145 </dl><dl> 152 </dl><dl>
146 <dt>Returns:</dt> 153 <dt>Returns:</dt>
147 <dd> 154 <dd>
148 data of the file, optionally encrypted (QByteArray) 155 data of the file, optionally encrypted (QByteArray)
165 </p><a NAME="SyncHandler.syncPasswords" ID="SyncHandler.syncPasswords"></a> 172 </p><a NAME="SyncHandler.syncPasswords" ID="SyncHandler.syncPasswords"></a>
166 <h4>SyncHandler.syncPasswords</h4> 173 <h4>SyncHandler.syncPasswords</h4>
167 <b>syncPasswords</b>(<i></i>) 174 <b>syncPasswords</b>(<i></i>)
168 <p> 175 <p>
169 Public method to synchronize the passwords. 176 Public method to synchronize the passwords.
177 </p><a NAME="SyncHandler.syncSpeedDial" ID="SyncHandler.syncSpeedDial"></a>
178 <h4>SyncHandler.syncSpeedDial</h4>
179 <b>syncSpeedDial</b>(<i></i>)
180 <p>
181 Public method to synchronize the speed dial data.
170 </p><a NAME="SyncHandler.syncUserAgents" ID="SyncHandler.syncUserAgents"></a> 182 </p><a NAME="SyncHandler.syncUserAgents" ID="SyncHandler.syncUserAgents"></a>
171 <h4>SyncHandler.syncUserAgents</h4> 183 <h4>SyncHandler.syncUserAgents</h4>
172 <b>syncUserAgents</b>(<i></i>) 184 <b>syncUserAgents</b>(<i></i>)
173 <p> 185 <p>
174 Public method to synchronize the user agents. 186 Public method to synchronize the user agents.
175 </p><a NAME="SyncHandler.writeFile" ID="SyncHandler.writeFile"></a> 187 </p><a NAME="SyncHandler.writeFile" ID="SyncHandler.writeFile"></a>
176 <h4>SyncHandler.writeFile</h4> 188 <h4>SyncHandler.writeFile</h4>
177 <b>writeFile</b>(<i>data, fileName, timestamp=0</i>) 189 <b>writeFile</b>(<i>data, fileName, type_, timestamp=0</i>)
178 <p> 190 <p>
179 Public method to write the data to a file. 191 Public method to write the data to a file.
180 </p><p> 192 </p><p>
181 If encrypted synchronization is enabled, the data will be decrypted using 193 If encrypted synchronization is enabled, the data will be decrypted using
182 the relevant encryption key. 194 the relevant encryption key.
185 <dd> 197 <dd>
186 data to be written and optionally decrypted (QByteArray) 198 data to be written and optionally decrypted (QByteArray)
187 </dd><dt><i>fileName</i></dt> 199 </dd><dt><i>fileName</i></dt>
188 <dd> 200 <dd>
189 name of the file the data is to be written to (string) 201 name of the file the data is to be written to (string)
202 </dd><dt><i>type_</i></dt>
203 <dd>
204 type of the synchronization event (string one
205 of "bookmarks", "history", "passwords", "useragents" or "speeddial")
190 </dd><dt><i>timestamp</i></dt> 206 </dd><dt><i>timestamp</i></dt>
191 <dd> 207 <dd>
192 timestamp to be given to the file (int) 208 timestamp to be given to the file (int)
193 </dd> 209 </dd>
194 </dl><dl> 210 </dl><dl>

eric ide

mercurial