File indexing completed on 2024-12-22 04:52:48

0001 /*
0002    SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "abstractsettings.h"
0010 
0011 class KConfigGroup;
0012 
0013 class BalsaSettings : public AbstractSettings
0014 {
0015 public:
0016     explicit BalsaSettings(const QString &filename);
0017     ~BalsaSettings() override;
0018 
0019     void importSettings();
0020 
0021 private:
0022     void readAccount(const KConfigGroup &grp, bool autoCheck, int autoDelay);
0023     void readIdentity(const KConfigGroup &grp);
0024     void readTransport(const KConfigGroup &grp);
0025     void readGlobalSettings(const KConfig &config);
0026 
0027     QHash<QString, QString> mHashSmtp;
0028     QString mFileName;
0029 };