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 "automaticaddcontactsconfiguredialog.h" 0008 #include "automaticaddcontactsconfigurewidget.h" 0009 #include <KLocalizedString> 0010 0011 AutomaticAddContactsConfigureDialog::AutomaticAddContactsConfigureDialog(QWidget *parent) 0012 : PimCommon::ConfigurePluginDialog(parent) 0013 { 0014 setWindowTitle(i18nc("@title:window", "Configure \"Automatic Add Contacts\" Plugin")); 0015 initLayout(); 0016 } 0017 0018 AutomaticAddContactsConfigureDialog::~AutomaticAddContactsConfigureDialog() = default; 0019 0020 QWidget *AutomaticAddContactsConfigureDialog::createLayout() 0021 { 0022 mConfigureWidget = new AutomaticAddContactsConfigureWidget(this); 0023 return mConfigureWidget; 0024 } 0025 0026 void AutomaticAddContactsConfigureDialog::save() 0027 { 0028 mConfigureWidget->saveSettings(); 0029 } 0030 0031 void AutomaticAddContactsConfigureDialog::load() 0032 { 0033 mConfigureWidget->loadSettings(); 0034 } 0035 0036 void AutomaticAddContactsConfigureDialog::reset() 0037 { 0038 mConfigureWidget->resetSettings(); 0039 } 0040 0041 void AutomaticAddContactsConfigureDialog::help() 0042 { 0043 showHelp(QStringLiteral("kmail2"), mConfigureWidget->helpAnchor()); 0044 } 0045 0046 #include "moc_automaticaddcontactsconfiguredialog.cpp"