file resuming support
This commit is contained in:
parent
0e103749a2
commit
81660a9ad4
3 changed files with 73 additions and 26 deletions
|
@ -12,6 +12,7 @@ TOX_FILE_TRANSFER_STATE = {
|
|||
'PAUSED': 1,
|
||||
'CANCELED': 2,
|
||||
'FINISHED': 3,
|
||||
'PAUSED_BY_FRIEND': 4
|
||||
}
|
||||
|
||||
|
||||
|
@ -67,6 +68,8 @@ class FileTransfer(QtCore.QObject):
|
|||
def pause(self, by_friend):
|
||||
if not by_friend:
|
||||
self.send_control(TOX_FILE_CONTROL['PAUSE'])
|
||||
else:
|
||||
self.state = TOX_FILE_TRANSFER_STATE['PAUSED_BY_FRIEND']
|
||||
self.signal()
|
||||
|
||||
def send_control(self, control):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue