File indexing completed on 2025-01-05 04:49:30
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "automaticaddcontactsconfigurewidget.h" 0008 #include "automaticaddcontactsconfiguretab.h" 0009 #include <Akonadi/Collection> 0010 #include <Akonadi/CollectionComboBox> 0011 #include <KSharedConfig> 0012 #include <QCheckBox> 0013 #include <QVBoxLayout> 0014 0015 AutomaticAddContactsConfigureWidget::AutomaticAddContactsConfigureWidget(QWidget *parent) 0016 : MessageComposer::PluginEditorConfigureBaseWidget(parent) 0017 , mConfigureTab(new AutomaticAddContactsConfigureTab(this)) 0018 { 0019 auto mainLayout = new QVBoxLayout(this); 0020 mainLayout->setContentsMargins({}); 0021 mainLayout->setObjectName(QLatin1StringView("mainlayout")); 0022 0023 mConfigureTab->setObjectName(QLatin1StringView("configuretab")); 0024 mainLayout->addWidget(mConfigureTab); 0025 connect(mConfigureTab, &AutomaticAddContactsConfigureTab::configureChanged, this, &AutomaticAddContactsConfigureWidget::configureChanged); 0026 } 0027 0028 AutomaticAddContactsConfigureWidget::~AutomaticAddContactsConfigureWidget() = default; 0029 0030 void AutomaticAddContactsConfigureWidget::loadSettings() 0031 { 0032 mConfigureTab->loadSettings(); 0033 } 0034 0035 void AutomaticAddContactsConfigureWidget::saveSettings() 0036 { 0037 mConfigureTab->saveSettings(); 0038 } 0039 0040 void AutomaticAddContactsConfigureWidget::resetSettings() 0041 { 0042 mConfigureTab->resetSettings(); 0043 } 0044 0045 #include "moc_automaticaddcontactsconfigurewidget.cpp"