File indexing completed on 2024-12-22 04:57:33
0001 /* 0002 SPDX-FileCopyrightText: 2018 Daniel Vrátil <dvratil@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <Akonadi/AgentConfigurationBase> 0010 0011 #include "configwidget.h" 0012 #include "settings.h" 0013 0014 #include <QScopedPointer> 0015 0016 class MaildirConfig : public Akonadi::AgentConfigurationBase 0017 { 0018 Q_OBJECT 0019 public: 0020 MaildirConfig(const KSharedConfigPtr &config, QWidget *parent, const QVariantList &args); 0021 ~MaildirConfig() override; 0022 0023 void load() override; 0024 bool save() const override; 0025 0026 private: 0027 QScopedPointer<Akonadi_Maildir_Resource::MaildirSettings> mSettings; 0028 QScopedPointer<ConfigWidget> mWidget; 0029 };