Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
4b85ab9c
Commit
4b85ab9c
authored
Jun 24, 2021
by
Laurent Montel
😁
Browse files
Add util methods
parent
0983e542
Pipeline
#67316
passed with stage
in 24 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agents/mailmergeagent/mailmergeutil.cpp
View file @
4b85ab9c
...
...
@@ -5,7 +5,20 @@
*/
#include "mailmergeutil.h"
#include "mailmergeagentsettings.h"
MailMergeUtil
::
MailMergeUtil
()
void
MailMergeUtil
::
forceReparseConfiguration
()
{
MailMergeAgentSettings
::
self
()
->
save
();
MailMergeAgentSettings
::
self
()
->
config
()
->
reparseConfiguration
();
}
bool
MailMergeUtil
::
mailMergeAgentEnabled
()
{
return
MailMergeAgentSettings
::
self
()
->
enabled
();
}
QString
MailMergeUtil
::
mailMergePattern
()
{
return
QStringLiteral
(
"MailMergeItem %1"
);
}
agents/mailmergeagent/mailmergeutil.h
View file @
4b85ab9c
...
...
@@ -5,9 +5,11 @@
*/
#pragma once
class
MailMergeUtil
#include <QString>
/** Send later utilities. */
namespace
MailMergeUtil
{
public:
MailMergeUtil
();
Q_REQUIRED_RESULT
QString
mailMergePattern
();
Q_REQUIRED_RESULT
bool
mailMergeAgentEnabled
();
void
forceReparseConfiguration
();
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment