File indexing completed on 2024-11-24 04:43:38
0001 /* 0002 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 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 "ui_contactsagentsettingswidget.h" 0011 #include <Akonadi/AgentConfigurationBase> 0012 0013 class KConfigDialogManager; 0014 0015 class ContactsSettingsWidget : public Akonadi::AgentConfigurationBase 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit ContactsSettingsWidget(const KSharedConfigPtr &config, QWidget *parent, const QVariantList &args); 0020 ~ContactsSettingsWidget() override; 0021 0022 void load() override; 0023 bool save() const override; 0024 QSize restoreDialogSize() const override; 0025 void saveDialogSize(const QSize &size) override; 0026 0027 private: 0028 void validate(); 0029 Ui::ContactAgentSettingsWidget ui; 0030 KConfigDialogManager *mManager = nullptr; 0031 }; 0032 AKONADI_AGENTCONFIG_FACTORY(ContactsSettingsWidgetFactory, "contactsconfig.json", ContactsSettingsWidget)