summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-22 17:07:35 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-22 17:07:35 +0100
commited36dd5988907019cc9cc5b98265f00a52462c85 (patch)
tree855820996780a291b644d20d4424b5289b311e06 /module/gui/connector.py
parentwebserver for win (diff)
downloadpyload-ed36dd5988907019cc9cc5b98265f00a52462c85.tar.xz
more docstrings, small design changes
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r--module/gui/connector.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py
index e7a151c5e..2a1ce511e 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -37,6 +37,9 @@ class connector(QThread):
self.addr = None
def setAddr(self, addr):
+ """
+ set new address
+ """
self.mutex.lock()
self.addr = addr
self.mutex.unlock()
@@ -197,3 +200,13 @@ class connector(QThread):
self.proxy.move_file_2_package(fileid, packid)
finally:
self.mutex.unlock()
+
+ def pushPackageToQueue(self, packid):
+ """
+ push a package to queue
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.push_package_2_queue(packid)
+ finally:
+ self.mutex.unlock()