-
- Downloads
sipaccountbase: add getLastMessages()
Because a client can receives messages before a client is ready to receive it and because the daemon does not store any message, we should have, like calls or file transfers, have a method to get these messages. So, this patch introduces a new method which gives the ability to retrieve messages since the daemon has been launched. To do that, when the daemon will receives a new message, it will store this message into a queue (limited to 1000 messages) and save the related timestamp. When the client is ready it can call getLastMessages with its last known timestamp. This method will return all messages received after this timestamp. Note: the perfect way to do that is to store messages directly in the daemon not clients. We also need some synchronization processes. Change-Id: Iceb1654088a843f9be5b4a47bcc23201e9b38c01
Showing
- bin/dbus/cx.ring.Ring.ConfigurationManager.xml 7 additions, 0 deletionsbin/dbus/cx.ring.Ring.ConfigurationManager.xml
- bin/dbus/dbusconfigurationmanager.cpp 15 additions, 0 deletionsbin/dbus/dbusconfigurationmanager.cpp
- bin/dbus/dbusconfigurationmanager.h 3 additions, 0 deletionsbin/dbus/dbusconfigurationmanager.h
- bin/jni/configurationmanager.i 9 additions, 0 deletionsbin/jni/configurationmanager.i
- bin/nodejs/configurationmanager.i 8 additions, 0 deletionsbin/nodejs/configurationmanager.i
- src/account.h 6 additions, 1 deletionsrc/account.h
- src/client/configurationmanager.cpp 6 additions, 0 deletionssrc/client/configurationmanager.cpp
- src/dring/configurationmanager_interface.h 8 additions, 0 deletionssrc/dring/configurationmanager_interface.h
- src/manager.cpp 8 additions, 0 deletionssrc/manager.cpp
- src/manager.h 2 additions, 0 deletionssrc/manager.h
- src/ringdht/ringaccount.cpp 7 additions, 0 deletionssrc/ringdht/ringaccount.cpp
- src/ringdht/ringaccount.h 6 additions, 0 deletionssrc/ringdht/ringaccount.h
- src/sip/sipaccountbase.cpp 10 additions, 0 deletionssrc/sip/sipaccountbase.cpp
- src/sip/sipaccountbase.h 27 additions, 5 deletionssrc/sip/sipaccountbase.h
Loading
Please register or sign in to comment