networkreply: Add is{Running,Finished} methods.
This commit is contained in:
parent
e909b1f36d
commit
7ce78bb560
@ -87,9 +87,11 @@ class FixedDataNetworkReply(QNetworkReply):
|
|||||||
return buf
|
return buf
|
||||||
|
|
||||||
def isFinished(self):
|
def isFinished(self):
|
||||||
"""Check if the reply is finished."""
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def isRunning(self):
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class ErrorNetworkReply(QNetworkReply):
|
class ErrorNetworkReply(QNetworkReply):
|
||||||
|
|
||||||
@ -128,3 +130,9 @@ class ErrorNetworkReply(QNetworkReply):
|
|||||||
def readData(self):
|
def readData(self):
|
||||||
"""No data available."""
|
"""No data available."""
|
||||||
return bytes()
|
return bytes()
|
||||||
|
|
||||||
|
def isFinished(self):
|
||||||
|
return True
|
||||||
|
|
||||||
|
def isRunning(self):
|
||||||
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user