kdeconnect-kde/plugins/sms
Simon Redman 019e8d6a1c [SMS App] Make requestMoreMessages asynchronous, blocking, and caching
Summary:
The most serious change from this patch is to move the asynchronous replying to a request from the app for more messages to a newly-spawned, self-destructing thread. Within that thread, we block until the remote device replies with the requested messages.

All gotten messages are cached in the ConversationDbusInterface, so all future requests are fast and don't hit the remote device.

Test Plan: After applying this diff, the messaging app should show 10 messages every time it is opened

Reviewers: #kde_connect, nicolasfella, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, apol, nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D16475
2018-12-12 22:42:56 -07:00
..
CMakeLists.txt [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00
conversationsdbusinterface.cpp [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00
conversationsdbusinterface.h [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00
kdeconnect_sms.json SVN_SILENT made messages (.desktop file) - always resolve ours 2018-12-03 05:29:48 +01:00
requestconversationworker.cpp [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00
requestconversationworker.h [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00
smsplugin.cpp [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00
smsplugin.h [SMS App] Make requestMoreMessages asynchronous, blocking, and caching 2018-12-12 22:42:56 -07:00