Commit 52aa9203 authored by Laurent Montel's avatar Laurent Montel 😁

Start to implement it

parent 422ccd43
......@@ -2,14 +2,20 @@ add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_vcarddir_resource\")
########### next target ###############
set(vcarddirresource_common_SRCS)
kconfig_add_kcfg_files(vcarddirresource_common_SRCS
settings.kcfgc
)
set( vcarddirresource_SRCS
${vcarddirresource_common_SRCS}
vcarddirresource.cpp
dirsettingsdialog.cpp
)
ecm_qt_declare_logging_category(vcarddirresource_SRCS HEADER vcarddirresource_debug.h IDENTIFIER VCARDDIRRESOURCE_LOG CATEGORY_NAME org.kde.pim.vcarddirresource)
kconfig_add_kcfg_files(vcarddirresource_SRCS settings.kcfgc)
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/vcarddirresource.kcfg org.kde.Akonadi.VCardDirectory.Settings)
qt5_add_dbus_adaptor(vcarddirresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.VCardDirectory.Settings.xml settings.h Settings
......@@ -43,3 +49,30 @@ add_dependencies(akonadi_vcarddir_resource akonadi-singlefileresource)
add_subdirectory(wizard)
install(TARGETS akonadi_vcarddir_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
############################## Config plugin ################################
#set(contactsconfig_ui_SRCS)
#ki18n_wrap_ui(contactsconfig_ui_SRCS contactsagentsettingswidget.ui)
#set(contactsconfig_SRCS
# contactssettingswidget.cpp
# ${contactsconfig_ui_SRCS}
# ${vcarddirresource_common_SRCS}
# )
#kcoreaddons_add_plugin(contactsconfig
# SOURCES ${contactsconfig_SRCS}
# JSON "contactsconfig.json"
# INSTALL_NAMESPACE "akonadi/config"
# )
#target_link_libraries(contactsconfig
# KF5::AkonadiCore
# KF5::CalendarCore
# KF5::Codecs
# KF5::AkonadiAgentBase
# KF5::Contacts
# KF5::AkonadiWidgets
# KF5::I18n
# KF5::KIOWidgets
# )
{
"X-Akonadi-PluginType": "AgentConfig",
"X-Akonadi-Library": "vcarddirconfig",
"X-Akonadi-AgentConfig-Type": "akonadi_vcarddir_resource"
}
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