Commit 25b18a70 authored by Laurent Montel's avatar Laurent Montel 😁

Prepare to port to config agent

parent fec53b80
......@@ -8,16 +8,21 @@ endif()
set(sendlater_common_SRCS)
ecm_qt_declare_logging_category(sendlater_common_SRCS HEADER sendlateragent_debug.h IDENTIFIER SENDLATERAGENT_LOG CATEGORY_NAME org.kde.pim.sendlateragent)
set(sendlateragentconfig_SRCS
sendlaterconfiguredialog.cpp
sendlaterconfigurewidget.cpp
)
set(sendlateragent_SRCS
${sendlateragentconfig_SRCS}
${sendlater_common_SRCS}
sendlateragent.cpp
sendlaterconfiguredialog.cpp
sendlaterconfigurewidget.cpp
sendlatermanager.cpp
sendlaterjob.cpp
sendlaterremovemessagejob.cpp
)
qt5_add_dbus_adaptor(sendlateragent_SRCS org.freedesktop.Akonadi.SendLaterAgent.xml sendlateragent.h SendLaterAgent)
ki18n_wrap_ui(sendlateragent_SRCS ui/sendlaterconfigurewidget.ui)
......@@ -53,3 +58,8 @@ install(TARGETS akonadi_sendlater_agent ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(FILES sendlateragent.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents")
install(FILES akonadi_sendlater_agent.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
#kcoreaddons_add_plugin(sendlateragentconfig
# JSON sendlateragentconfig.json
# SOURCES ${sendlateragentconfig_SRCS}
# INSTALL_NAMESPACE akonadi/config
#)
{
"X-Akonadi-PluginType": "AgentConfig",
"X-Akonadi-Library": "sendlateragentconfig",
"X-Akonadi-AgentConfig-Type": "akonadi_sendlater_agent"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment