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