File indexing completed on 2024-10-27 04:50:49

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KSharedConfig>
0010 
0011 namespace MessageComposer
0012 {
0013 class SendLaterInfo;
0014 }
0015 
0016 /** Send later utilities. */
0017 namespace SendLaterUtil
0018 {
0019 [[nodiscard]] bool compareSendLaterInfo(MessageComposer::SendLaterInfo *left, MessageComposer::SendLaterInfo *right);
0020 
0021 [[nodiscard]] KSharedConfig::Ptr defaultConfig();
0022 
0023 void writeSendLaterInfo(KSharedConfig::Ptr config, MessageComposer::SendLaterInfo *info);
0024 [[nodiscard]] MessageComposer::SendLaterInfo *readSendLaterInfo(KConfigGroup &config);
0025 
0026 [[nodiscard]] bool sentLaterAgentEnabled();
0027 
0028 void changeRecurrentDate(MessageComposer::SendLaterInfo *info);
0029 void forceReparseConfiguration();
0030 
0031 [[nodiscard]] QString sendLaterPattern();
0032 }