pycrossword  0.4
Pure-Python implementation of a crossword puzzle generator and editor
Static Public Attributes | List of all members
pycross.dbapi.HunspellDownloadSignals Class Reference

Container for Qt signals used by HunspellDownloadTask. More...

Inheritance diagram for pycross.dbapi.HunspellDownloadSignals:

Static Public Attributes

 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...
 

Detailed Description

Container for Qt signals used by HunspellDownloadTask.

Member Data Documentation

◆ sigComplete

pycross.dbapi.HunspellDownloadSignals.sigComplete = QtCore.pyqtSignal(int, str, str, str)
static

Emitted when the download task completes.

Parameters
idint ID of task in the thread pool
urlstr URL of the downloaded file (dictionary)
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr 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
idint ID of task in the thread pool
urlstr URL of the downloaded file (dictionary)
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)
messagestr 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
idint ID of task in the thread pool
urlstr URL of the downloaded file (dictionary)
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)
total_bytesint 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
idint ID of task in the thread pool
urlstr URL of the downloaded file (dictionary)
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)
bytes_writtenint number of bytes downloaded so far
total_bytesint 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
idint ID of task in the thread pool
urlstr URL of the downloaded file (dictionary)
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)

The documentation for this class was generated from the following file: