From ceb59ee0739546368135b0d86a69b17c92bfbccf Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 20 Dec 2012 15:33:01 +0100 Subject: added models and collections for progress --- module/remote/ttypes.py | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'module/remote/ttypes.py') diff --git a/module/remote/ttypes.py b/module/remote/ttypes.py index 36b56d961..4368479fd 100644 --- a/module/remote/ttypes.py +++ b/module/remote/ttypes.py @@ -284,14 +284,13 @@ class ProgressInfo(BaseObject): self.download = download class ServerStatus(BaseObject): - __slots__ = ['pause', 'active', 'queue', 'total', 'speed', 'download', 'reconnect'] + __slots__ = ['queuedDownloads', 'totalDownloads', 'speed', 'pause', 'download', 'reconnect'] - def __init__(self, pause=None, active=None, queue=None, total=None, speed=None, download=None, reconnect=None): - self.pause = pause - self.active = active - self.queue = queue - self.total = total + def __init__(self, queuedDownloads=None, totalDownloads=None, speed=None, pause=None, download=None, reconnect=None): + self.queuedDownloads = queuedDownloads + self.totalDownloads = totalDownloads self.speed = speed + self.pause = pause self.download = download self.reconnect = reconnect @@ -435,6 +434,8 @@ class Iface(object): pass def getProgressInfo(self): pass + def getServerStatus(self): + pass def getServerVersion(self): pass def getUserData(self): @@ -447,12 +448,6 @@ class Iface(object): pass def isInteractionWaiting(self, mode): pass - def isTimeDownload(self): - pass - def isTimeReconnect(self): - pass - def kill(self): - pass def login(self, username, password): pass def moveFiles(self, fids, pid): @@ -499,7 +494,7 @@ class Iface(object): pass def setPassword(self, username, old_password, new_password): pass - def statusServer(self): + def stop(self): pass def stopAllDownloads(self): pass -- cgit v1.2.3