summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-24 01:28:08 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-24 01:28:08 +0100
commitea04c11ce1fb52895449a56e862eff5448ea456a (patch)
treeb0eb5c841b082ee5777ad072d5754a67cff383fc /module/gui/connector.py
parentdownload speed limit (diff)
downloadpyload-ea04c11ce1fb52895449a56e862eff5448ea456a.tar.xz
downloads are now aborted correctly, gui: remove downloads, new icons
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 75781ebb1..4d3af0d61 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -230,3 +230,23 @@ class connector(QThread):
self.proxy.restart_file(fileid)
finally:
self.mutex.unlock()
+
+ def removePackage(self, packid):
+ """
+ remove a package
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.del_packages([packid,])
+ finally:
+ self.mutex.unlock()
+
+ def removeFile(self, fileid):
+ """
+ remove a file
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.del_links([fileid,])
+ finally:
+ self.mutex.unlock()