2018-09-10 10:28:54 +01:00
|
|
|
set(kdeconnect_sms_SRCS
|
|
|
|
smsplugin.cpp
|
|
|
|
conversationsdbusinterface.cpp
|
[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-13 05:42:45 +00:00
|
|
|
requestconversationworker.cpp
|
2018-09-10 10:28:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_BINARY_DIR})
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../notifications/) # needed for the sendreplydialog
|
|
|
|
|
|
|
|
ki18n_wrap_ui(kdeconnect_sms_SRCS ../notifications/sendreplydialog.ui)
|
|
|
|
|
|
|
|
kdeconnect_add_plugin(kdeconnect_sms JSON kdeconnect_sms.json SOURCES ../notifications/sendreplydialog.cpp ${kdeconnect_sms_SRCS})
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(kdeconnect_sms
|
|
|
|
kdeconnectcore
|
|
|
|
kdeconnectinterfaces
|
|
|
|
Qt5::DBus
|
|
|
|
KF5::I18n
|
|
|
|
KF5::Notifications
|
|
|
|
Qt5::Widgets
|
|
|
|
)
|