Helpviewer/VirusTotalApi.py

changeset 992
566e87428fc8
parent 979
0ae0c8852d31
child 1131
7781e396c903
equal deleted inserted replaced
991:5ec5e707dfa5 992:566e87428fc8
13 from PyQt4.QtNetwork import QNetworkRequest, QNetworkReply, QNetworkAccessManager 13 from PyQt4.QtNetwork import QNetworkRequest, QNetworkReply, QNetworkAccessManager
14 14
15 import Helpviewer.HelpWindow 15 import Helpviewer.HelpWindow
16 16
17 import Preferences 17 import Preferences
18
18 19
19 class VirusTotalAPI(QObject): 20 class VirusTotalAPI(QObject):
20 """ 21 """
21 Class implementing the <a href="http://www.virustotal.com">VirusTotal</a> API. 22 Class implementing the <a href="http://www.virustotal.com">VirusTotal</a> API.
22 23
23 @signal checkServiceKeyFinished(bool, str) emitted after the service key check 24 @signal checkServiceKeyFinished(bool, str) emitted after the service key check
24 has been performed. It gives a flag indicating validity (boolean) and 25 has been performed. It gives a flag indicating validity (boolean) and
25 an error message in case of a network error (string). 26 an error message in case of a network error (string).
26 @signal submitUrlError(str) emitted with the error string, if the URL scan 27 @signal submitUrlError(str) emitted with the error string, if the URL scan
27 submission returned an error. 28 submission returned an error.
28 @signal urlScanReport(str) emitted with the URL of the URL scan report page 29 @signal urlScanReport(str) emitted with the URL of the URL scan report page
29 @signal fileScanReport(str) emitted with the URL of the file scan report page 30 @signal fileScanReport(str) emitted with the URL of the file scan report page
30 """ 31 """
31 checkServiceKeyFinished = pyqtSignal(bool, str) 32 checkServiceKeyFinished = pyqtSignal(bool, str)
32 submitUrlError = pyqtSignal(str) 33 submitUrlError = pyqtSignal(str)

eric ide

mercurial