summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-21 17:07:16 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-21 17:07:16 +0100
commitff7fa4a0d1aa1c09e563d2086704aa7e2acea716 (patch)
tree4024d973724e1243842477b3c26b95cf591d5847 /module/gui/connector.py
parentpause/start button works (diff)
downloadpyload-ff7fa4a0d1aa1c09e563d2086704aa7e2acea716.tar.xz
package creation works
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 32da29bba..e7a151c5e 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -177,3 +177,23 @@ class connector(QThread):
self.proxy.unpause_server()
finally:
self.mutex.unlock()
+
+ def newPackage(self, name):
+ """
+ create a new package and return id
+ """
+ self.mutex.lock()
+ try:
+ return self.proxy.new_package(name)
+ finally:
+ self.mutex.unlock()
+
+ def addFileToPackage(self, fileid, packid):
+ """
+ add a file from collector to package
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.move_file_2_package(fileid, packid)
+ finally:
+ self.mutex.unlock()