Container for Qt signals used by HunspellDownloadTask.
More...
|
| | sigStart = QtCore.pyqtSignal(int, str, str, str) |
| | Emitted before the download starts. More...
|
| |
| | sigGetFilesize = QtCore.pyqtSignal(int, str, str, str, int) |
| | Emitted when the target file size is received. More...
|
| |
| | sigProgress = QtCore.pyqtSignal(int, str, str, str, int, int) |
| | Emitted during the download progress (for each kilobyte dowloaded). More...
|
| |
| | sigComplete = QtCore.pyqtSignal(int, str, str, str) |
| | Emitted when the download task completes. More...
|
| |
| | sigError = QtCore.pyqtSignal(int, str, str, str, str) |
| | Emitted when an exception occurs during the download. More...
|
| |
Container for Qt signals used by HunspellDownloadTask.
◆ sigComplete
| pycross.dbapi.HunspellDownloadSignals.sigComplete = QtCore.pyqtSignal(int, str, str, str) |
|
static |
Emitted when the download task completes.
- Parameters
-
| id | int ID of task in the thread pool |
| url | str URL of the downloaded file (dictionary) |
| lang | str short language name for the dictionary (e.g. 'en', 'de') |
| filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
◆ sigError
| pycross.dbapi.HunspellDownloadSignals.sigError = QtCore.pyqtSignal(int, str, str, str, str) |
|
static |
Emitted when an exception occurs during the download.
- Parameters
-
| id | int ID of task in the thread pool |
| url | str URL of the downloaded file (dictionary) |
| lang | str short language name for the dictionary (e.g. 'en', 'de') |
| filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
| message | str the error message |
◆ sigGetFilesize
| pycross.dbapi.HunspellDownloadSignals.sigGetFilesize = QtCore.pyqtSignal(int, str, str, str, int) |
|
static |
Emitted when the target file size is received.
- Parameters
-
| id | int ID of task in the thread pool |
| url | str URL of the downloaded file (dictionary) |
| lang | str short language name for the dictionary (e.g. 'en', 'de') |
| filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
| total_bytes | int length of file to be downloaded (in bytes) |
◆ sigProgress
| pycross.dbapi.HunspellDownloadSignals.sigProgress = QtCore.pyqtSignal(int, str, str, str, int, int) |
|
static |
Emitted during the download progress (for each kilobyte dowloaded).
- Parameters
-
| id | int ID of task in the thread pool |
| url | str URL of the downloaded file (dictionary) |
| lang | str short language name for the dictionary (e.g. 'en', 'de') |
| filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
| bytes_written | int number of bytes downloaded so far |
| total_bytes | int length of file to be downloaded (in bytes) |
◆ sigStart
| pycross.dbapi.HunspellDownloadSignals.sigStart = QtCore.pyqtSignal(int, str, str, str) |
|
static |
Emitted before the download starts.
- Parameters
-
| id | int ID of task in the thread pool |
| url | str URL of the downloaded file (dictionary) |
| lang | str short language name for the dictionary (e.g. 'en', 'de') |
| filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
The documentation for this class was generated from the following file: