f072a0c615
Added kcm ui with global and app-specific config options. Global options affect all notifications: - Persistent only? --> Sync only notifications with timeout == 0? - Include body? --> Add body string to summary when syncing? - Minimum urgency Per-application options affect notifications sent by a specific application: - Sync it at all? - If yes, allow to define a "blacklist" pattern (QRegularExpression) to define which notifications should *not* be synced. Applications are maintained in the per-device config and added when seen the first time by the notification listener. From that moment on they can be configured in the kcm ui.
39 lines
1.1 KiB
CMake
39 lines
1.1 KiB
CMake
find_package(KF5 REQUIRED COMPONENTS Notifications KCMUtils I18n)
|
|
|
|
set(kdeconnect_notifications_SRCS
|
|
notification.cpp
|
|
notificationsplugin.cpp
|
|
notificationsdbusinterface.cpp
|
|
notificationslistener.cpp
|
|
notifyingapplication.cpp
|
|
)
|
|
|
|
kdeconnect_add_plugin(kdeconnect_notifications JSON kdeconnect_notifications.json SOURCES ${kdeconnect_notifications_SRCS})
|
|
|
|
target_link_libraries(kdeconnect_notifications
|
|
kdeconnectcore
|
|
Qt5::DBus
|
|
KF5::Notifications
|
|
KF5::I18n
|
|
)
|
|
|
|
#######################################
|
|
# Config
|
|
|
|
set( kdeconnect_notifications_config_SRCS
|
|
notifications_config.cpp
|
|
notifyingapplication.cpp
|
|
notifyingapplicationmodel.cpp
|
|
)
|
|
ki18n_wrap_ui( kdeconnect_notifications_config_SRCS notifications_config.ui )
|
|
|
|
add_library(kdeconnect_notifications_config MODULE ${kdeconnect_notifications_config_SRCS} )
|
|
target_link_libraries( kdeconnect_notifications_config
|
|
kdeconnectcore
|
|
kdeconnectpluginkcm
|
|
KF5::I18n
|
|
KF5::KCMUtils
|
|
)
|
|
|
|
install( TARGETS kdeconnect_notifications_config DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
install( FILES kdeconnect_notifications_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|