27 @param parent reference to the parent object (QObject) |
27 @param parent reference to the parent object (QObject) |
28 """ |
28 """ |
29 super(NetworkProtocolUnknownErrorReply, self).__init__(parent) |
29 super(NetworkProtocolUnknownErrorReply, self).__init__(parent) |
30 self.setError( |
30 self.setError( |
31 QNetworkReply.ProtocolUnknownError, |
31 QNetworkReply.ProtocolUnknownError, |
32 self.trUtf8("Protocol '{0}' not supported.").format(protocol)) |
32 self.tr("Protocol '{0}' not supported.").format(protocol)) |
33 QTimer.singleShot(0, self.__fireSignals) |
33 QTimer.singleShot(0, self.__fireSignals) |
34 |
34 |
35 def __fireSignals(self): |
35 def __fireSignals(self): |
36 """ |
36 """ |
37 Private method to send some signals to end the connection. |
37 Private method to send some signals to end the connection. |
38 """ |
38 """ |
39 self.error.emit(QNetworkReply.ProtocolUnknownError) |
39 self.error.emit(QNetworkReply.ProtocolUnknownError) |
40 self.finished[()].emit() |
40 self.finished.emit() |
41 |
41 |
42 def abort(self): |
42 def abort(self): |
43 """ |
43 """ |
44 Public slot to abort the operation. |
44 Public slot to abort the operation. |
45 """ |
45 """ |