File indexing completed on 2024-12-22 04:57:55
0001 /* 0002 SPDX-FileCopyrightText: 2016 Stefan Stäglich <sstaeglich@kdemail.net> 0003 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <Akonadi/AgentConfigurationBase> 0011 class KConfigDialogManager; 0012 0013 namespace Ui 0014 { 0015 class TomboyNotesAgentConfigWidget; 0016 } 0017 0018 class TomboyNotesConfigWidget : public Akonadi::AgentConfigurationBase 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit TomboyNotesConfigWidget(const KSharedConfigPtr &config, QWidget *parent, const QVariantList &args); 0023 ~TomboyNotesConfigWidget() override; 0024 0025 void load() override; 0026 bool save() const override; 0027 QSize restoreDialogSize() const override; 0028 void saveDialogSize(const QSize &size) override; 0029 0030 private: 0031 Ui::TomboyNotesAgentConfigWidget *const ui; 0032 0033 KConfigDialogManager *mManager = nullptr; 0034 }; 0035 AKONADI_AGENTCONFIG_FACTORY(TomboyNotesConfigWidgetFactory, "tomboynotesconfig.json", TomboyNotesConfigWidget)