summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
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()