Commit c56e12cc authored by Cyril Rossi's avatar Cyril Rossi

libnotificationmanager : add app-specific kconfig settings

Summary: Provide a kcfg for app-specific notifications with kconfig. Require D27059 and D27133

Reviewers: ervin, broulik, bport, meven

Reviewed By: ervin, bport, meven

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27155
parent 3d949a37
......@@ -42,6 +42,7 @@ kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/donotdisturbsettings.kc
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)
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/behaviorsettings.kcfgc GENERATE_MOC)
# DBus
# Notifications
......@@ -97,6 +98,7 @@ install(FILES
${CMAKE_CURRENT_BINARY_DIR}/notificationsettings.h
${CMAKE_CURRENT_BINARY_DIR}/jobsettings.h
${CMAKE_CURRENT_BINARY_DIR}/badgesettings.h
${CMAKE_CURRENT_BINARY_DIR}/behaviorsettings.h
${CMAKE_CURRENT_BINARY_DIR}/notificationmanager_export.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/notificationmanager COMPONENT Devel
)
......
<?xml version="1.0" encoding="UTF-8" ?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
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 name="plasmanotifyrc">
<parameter name="GroupEntry" />
<parameter name="DesktopEntry"/>
</kcfgfile>
<group name="$(DesktopEntry)" parentGroupName="$(GroupEntry)">
<entry name="ShowPopups" type="Bool">
<default>true</default>
</entry>
<entry name="ShowPopupsInDndMode" type="Bool">
<default>false</default>
</entry>
<entry name="ShowInHistory" type="Bool">
<default>true</default>
</entry>
<entry name="ShowBadges" type="Bool">
<default>true</default>
</entry>
</group>
</kcfg>
File=behaviorsettings.kcfg
NameSpace=NotificationManager
ClassName=BehaviorSettings
Visibility=NOTIFICATIONMANAGER_EXPORT
IncludeFiles=\"notificationmanager_export.h\"
Mutators=true
DefaultValueGetters=true
Notifiers=true
GenerateProperties=true
ParentInConstructor=true
......@@ -17,4 +17,5 @@ ShowInHistory=false
# Non-configurable applications don't deserve to be in history by default
[Applications][@other]
ShowInHistory=false
ShowBadges=false # wouldn't work anyway
# Badges wouldn't work anyway
ShowBadges=false
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