Commit ee3176ce authored by Cyril Rossi's avatar Cyril Rossi

Expose KConfig settings to allow registration in KCM Notification

Summary: For KCM Notification, allow to register the generated settings to the ManagedConfigModule machinery

Test Plan: refactor, no change

Reviewers: #plasma, #frameworks, ervin, bport, davidedmundson, mart, meven

Subscribers: broulik, meven, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26047
parent c955931b
......@@ -38,10 +38,10 @@ ecm_qt_declare_logging_category(notificationmanager_LIB_SRCS
install(FILES libnotificationmanager.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
# Settings
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/donotdisturbsettings.kcfgc)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/notificationsettings.kcfgc)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/jobsettings.kcfgc)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/badgesettings.kcfgc)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/donotdisturbsettings.kcfgc GENERATE_MOC)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/notificationsettings.kcfgc GENERATE_MOC)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/jobsettings.kcfgc GENERATE_MOC)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/badgesettings.kcfgc GENERATE_MOC)
# DBus
# Notifications
......@@ -93,6 +93,10 @@ install(FILES
jobsmodel.h
job.h
settings.h
${CMAKE_CURRENT_BINARY_DIR}/donotdisturbsettings.h
${CMAKE_CURRENT_BINARY_DIR}/notificationsettings.h
${CMAKE_CURRENT_BINARY_DIR}/jobsettings.h
${CMAKE_CURRENT_BINARY_DIR}/badgesettings.h
${CMAKE_CURRENT_BINARY_DIR}/notificationmanager_export.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/notificationmanager COMPONENT Devel
)
......
......@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile arg="true" />
<kcfgfile name="plasmanotifyrc" />
<group name="Badges">
<entry name="InTaskManager" type="Bool">
......
File=badgesettings.kcfg
NameSpace=NotificationManager
ClassName=BadgeSettings
Singleton=true
Visibility=NOTIFICATIONMANAGER_EXPORT
IncludeFiles=\"notificationmanager_export.h\"
Mutators=true
DefaultValueGetters=true
Notifiers=true
GenerateProperties=true
ParentInConstructor=true
......@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile arg="true" />
<kcfgfile name="plasmanotifyrc" />
<group name="DoNotDisturb">
<entry name="Until" type="DateTime">
......
File=donotdisturbsettings.kcfg
NameSpace=NotificationManager
ClassName=DoNotDisturbSettings
Singleton=true
Visibility=NOTIFICATIONMANAGER_EXPORT
IncludeFiles=\"notificationmanager_export.h\"
Mutators=true
DefaultValueGetters=true
Notifiers=true
GenerateProperties=true
ParentInConstructor=true
......@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile arg="true" />
<kcfgfile name="plasmanotifyrc" />
<group name="Jobs">
<entry name="InTaskManager" type="Bool">
......
File=jobsettings.kcfg
NameSpace=NotificationManager
ClassName=JobSettings
Singleton=true
Visibility=NOTIFICATIONMANAGER_EXPORT
IncludeFiles=\"notificationmanager_export.h\"
Mutators=true
DefaultValueGetters=true
Notifiers=true
GenerateProperties=true
ParentInConstructor=true
......@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile arg="true" />
<kcfgfile name="plasmanotifyrc" />
<group name="Notifications">
<entry name="CriticalInDndMode" type="Bool">
......
File=notificationsettings.kcfg
NameSpace=NotificationManager
ClassName=NotificationSettings
Singleton=true
Visibility=NOTIFICATIONMANAGER_EXPORT
Mutators=true
DefaultValueGetters=true
Notifiers=true
GenerateProperties=true
ParentInConstructor=true
# For Settings::PopupPosition
IncludeFiles=\"settings.h\"
UseEnumTypes=true
IncludeFiles=\"settings.h\",\"notificationmanager_export.h\"
UseEnumTypes=false
This diff is collapsed.
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