diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-27 14:45:22 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-27 14:45:22 +0100 |
commit | 757f025247d77b085b6168d5f625d2bbfa7c4c0d (patch) | |
tree | 5458f45d3c45d6e7da4945a376df8433ccf1e5bf /module/gui/connector.py | |
parent | Fixed reconnect loop (easy doing) (diff) | |
download | pyload-757f025247d77b085b6168d5f625d2bbfa7c4c0d.tar.xz |
stop button works, closes #59
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r-- | module/gui/connector.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py index e52cf42ff..64c05ba8c 100644 --- a/module/gui/connector.py +++ b/module/gui/connector.py @@ -316,4 +316,28 @@ class connector(QThread): self.emit(SIGNAL("proxy_error"), "uploadContainer") finally: self.mutex.unlock() + + def getLog(self, offset): + """ + get log + """ + self.mutex.lock() + try: + return self.proxy.get_log(offset) + except: + self.emit(SIGNAL("proxy_error"), "getLog") + finally: + self.mutex.unlock() + + def stopAllDownloads(self): + """ + get log + """ + self.mutex.lock() + try: + self.proxy.stop_downloads() + except: + self.emit(SIGNAL("proxy_error"), "stopAllDownloads") + finally: + self.mutex.unlock() |