19 |
19 |
20 class HelpVirusTotalPage(ConfigurationPageBase, Ui_HelpVirusTotalPage): |
20 class HelpVirusTotalPage(ConfigurationPageBase, Ui_HelpVirusTotalPage): |
21 """ |
21 """ |
22 Class documentation goes here. |
22 Class documentation goes here. |
23 """ |
23 """ |
24 def __init__(self, parent = None): |
24 def __init__(self, parent=None): |
25 """ |
25 """ |
26 Constructor |
26 Constructor |
27 |
27 |
28 @param parent reference to the parent widget (QWidget) |
28 @param parent reference to the parent widget (QWidget) |
29 """ |
29 """ |
47 |
47 |
48 def save(self): |
48 def save(self): |
49 """ |
49 """ |
50 Public slot to save the VirusTotal configuration. |
50 Public slot to save the VirusTotal configuration. |
51 """ |
51 """ |
52 Preferences.setHelp("VirusTotalEnabled", |
52 Preferences.setHelp("VirusTotalEnabled", |
53 self.vtEnabledCheckBox.isChecked()) |
53 self.vtEnabledCheckBox.isChecked()) |
54 Preferences.setHelp("VirusTotalSecure", |
54 Preferences.setHelp("VirusTotalSecure", |
55 self.vtSecureCheckBox.isChecked()) |
55 self.vtSecureCheckBox.isChecked()) |
56 Preferences.setHelp("VirusTotalServiceKey", |
56 Preferences.setHelp("VirusTotalServiceKey", |
57 self.vtServiceKeyEdit.text()) |
57 self.vtServiceKeyEdit.text()) |
58 |
58 |
59 @pyqtSlot(str) |
59 @pyqtSlot(str) |
60 def on_vtServiceKeyEdit_textChanged(self, txt): |
60 def on_vtServiceKeyEdit_textChanged(self, txt): |
61 """ |
61 """ |