Helpviewer/Network/NetworkProtocolUnknownErrorReply.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3345
071afe8be2a1
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
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 """

eric ide

mercurial