Mercurial > libervia-backend
comparison src/core/xmpp.py @ 1522:7d7e57a84792
core: progression handling improvments:
- getProgress has been renamed to progressGet to follown new naming convention
- new signals: progressStarted, progressFinished and progressError to indicate state of progressing events
- new method progressGetAll to get all progressing events of all profile (or only one profile)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 25 Sep 2015 19:19:12 +0200 |
parents | 8d61160ee4b8 |
children | 591c32dbfb0b |
comparison
equal
deleted
inserted
replaced
1521:d2ab9c62ac3a | 1522:7d7e57a84792 |
---|---|
44 self.__connected = False | 44 self.__connected = False |
45 self.profile = profile | 45 self.profile = profile |
46 self.host_app = host_app | 46 self.host_app = host_app |
47 self.conn_deferred = defer.Deferred() | 47 self.conn_deferred = defer.Deferred() |
48 self._waiting_conf = {} # callback called when a confirmation is received | 48 self._waiting_conf = {} # callback called when a confirmation is received |
49 self._progress_cb_map = {} # callback called when a progress is requested (key = progress id) | 49 self._progress_cb = {} # callback called when a progress is requested (key = progress id) |
50 | 50 |
51 def getConnectionDeferred(self): | 51 def getConnectionDeferred(self): |
52 """Return a deferred which fire when the client is connected""" | 52 """Return a deferred which fire when the client is connected""" |
53 return self.conn_deferred | 53 return self.conn_deferred |
54 | 54 |