kdeconnect-kde/plugins/sms/CMakeLists.txt
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

23 lines
613 B
CMake

set(kdeconnect_sms_SRCS
smsplugin.cpp
conversationsdbusinterface.cpp
requestconversationworker.cpp
)
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
)