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.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()