55 @pyqtSlot(str) |
55 @pyqtSlot(str) |
56 def on_vtServiceKeyEdit_textChanged(self, txt): |
56 def on_vtServiceKeyEdit_textChanged(self, txt): |
57 """ |
57 """ |
58 Private slot to handle changes of the service key. |
58 Private slot to handle changes of the service key. |
59 |
59 |
60 @param txt entered service key (string) |
60 @param txt entered service key |
|
61 @type str |
61 """ |
62 """ |
62 self.testButton.setEnabled(txt != "") |
63 self.testButton.setEnabled(txt != "") |
63 |
64 |
64 @pyqtSlot() |
65 @pyqtSlot() |
65 def on_testButton_clicked(self): |
66 def on_testButton_clicked(self): |
74 @pyqtSlot(bool, str) |
75 @pyqtSlot(bool, str) |
75 def __checkServiceKeyFinished(self, result, msg): |
76 def __checkServiceKeyFinished(self, result, msg): |
76 """ |
77 """ |
77 Private slot to receive the result of the service key check. |
78 Private slot to receive the result of the service key check. |
78 |
79 |
79 @param result flag indicating a successful check (boolean) |
80 @param result flag indicating a successful check |
80 @param msg network error message (str) |
81 @type bool |
|
82 @param msg network error message |
|
83 @type str |
81 """ |
84 """ |
82 if result: |
85 if result: |
83 self.testResultLabel.setText(self.tr("The service key is valid.")) |
86 self.testResultLabel.setText(self.tr("The service key is valid.")) |
84 else: |
87 else: |
85 if msg == "": |
88 if msg == "": |
99 def create(dlg): # noqa: U100 |
102 def create(dlg): # noqa: U100 |
100 """ |
103 """ |
101 Module function to create the configuration page. |
104 Module function to create the configuration page. |
102 |
105 |
103 @param dlg reference to the configuration dialog |
106 @param dlg reference to the configuration dialog |
104 @return reference to the instantiated page (ConfigurationPageBase) |
107 @type ConfigurationDialog |
|
108 @return reference to the instantiated page |
|
109 @rtype ConfigurationPageBase |
105 """ |
110 """ |
106 page = WebBrowserVirusTotalPage() |
111 page = WebBrowserVirusTotalPage() |
107 return page |
112 return page |