summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-23 00:04:36 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-23 00:04:36 +0100
commita5ff0482ede8bd7bd932482887f2f7cdae5039d9 (patch)
tree0d59800acd09c72ddb9c1e360d6a9c065cf184b7 /module/gui/connector.py
parentmore docstrings, small design changes (diff)
downloadpyload-a5ff0482ede8bd7bd932482887f2f7cdae5039d9.tar.xz
core: downloadlimit is not far away ;) gui: restart download action
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r--module/gui/connector.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py
index 2a1ce511e..75781ebb1 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -210,3 +210,23 @@ class connector(QThread):
self.proxy.push_package_2_queue(packid)
finally:
self.mutex.unlock()
+
+ def restartPackage(self, packid):
+ """
+ restart a package
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.restart_package(packid)
+ finally:
+ self.mutex.unlock()
+
+ def restartFile(self, fileid):
+ """
+ restart a file
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.restart_file(fileid)
+ finally:
+ self.mutex.unlock()