File indexing completed on 2024-12-22 05:00:54

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "mailmergeutil.h"
0008 #include "mailmergeagentsettings.h"
0009 
0010 void MailMergeUtil::forceReparseConfiguration()
0011 {
0012     MailMergeAgentSettings::self()->save();
0013     MailMergeAgentSettings::self()->config()->reparseConfiguration();
0014 }
0015 
0016 bool MailMergeUtil::mailMergeAgentEnabled()
0017 {
0018     return MailMergeAgentSettings::self()->enabled();
0019 }
0020 
0021 QString MailMergeUtil::mailMergePattern()
0022 {
0023     return QStringLiteral("MailMergeItem %1");
0024 }