2020-05-26 17:55:47 +01:00
|
|
|
set(debug_file_SRCS)
|
|
|
|
ecm_qt_declare_logging_category(
|
|
|
|
debug_file_SRCS HEADER plugin_sms_debug.h
|
|
|
|
IDENTIFIER KDECONNECT_PLUGIN_SMS CATEGORY_NAME kdeconnect.plugin.sms
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sms)")
|
|
|
|
|
|
|
|
ecm_qt_declare_logging_category(
|
|
|
|
debug_file_SRCS HEADER kdeconnect_conversations_debug.h
|
|
|
|
IDENTIFIER KDECONNECT_CONVERSATIONS CATEGORY_NAME kdeconnect.conversations
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (conversations)")
|
|
|
|
|
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
|
2020-05-26 17:55:47 +01:00
|
|
|
${debug_file_SRCS}
|
2018-09-10 10:28:54 +01:00
|
|
|
)
|
|
|
|
|
2021-06-28 19:33:52 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_sms SOURCES ${kdeconnect_sms_SRCS})
|
2018-09-10 10:28:54 +01:00
|
|
|
|
|
|
|
target_link_libraries(kdeconnect_sms
|
|
|
|
kdeconnectcore
|
|
|
|
kdeconnectinterfaces
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::DBus
|
2023-04-15 11:57:52 +01:00
|
|
|
KF${QT_MAJOR_VERSION}::I18n
|
|
|
|
KF${QT_MAJOR_VERSION}::Notifications
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::Widgets
|
2018-09-10 10:28:54 +01:00
|
|
|
)
|