File indexing completed on 2024-11-24 04:44:38

0001 /*
0002     SPDX-FileCopyrightText: 2018 Daniel Vrátil <dvratil@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "settings.h"
0008 #include "singlefileresourceconfigbase.h"
0009 
0010 class VCardConfigBase : public SingleFileResourceConfigBase<SETTINGS_NAMESPACE::Settings>
0011 {
0012 public:
0013     VCardConfigBase(const KSharedConfigPtr &config, QWidget *parent, const QVariantList &list)
0014         : SingleFileResourceConfigBase(config, parent, list)
0015     {
0016         mWidget->setFilter(QStringLiteral("%1 (*.vcf)").arg(i18nc("Filedialog filter for *.vcf", "vCard Address Book File")));
0017     }
0018 };
0019 
0020 class VCardConfig : public VCardConfigBase
0021 {
0022     Q_OBJECT
0023 public:
0024     ~VCardConfig() override = default;
0025 
0026     using VCardConfigBase::VCardConfigBase;
0027 };
0028 
0029 AKONADI_AGENTCONFIG_FACTORY(VCardConfigFactory, "vcardconfig.json", VCardConfig)
0030 
0031 #include "vcardconfig.moc"