File indexing completed on 2025-01-19 04:51:28

0001 /*
0002   This file is part of Kontact.
0003 
0004   SPDX-FileCopyrightText: 2003 Tobias Koenig <tokoe@kde.org>
0005   SPDX-FileCopyrightText: 2004-2005, 2009 Allen Winter <winter@kde.org>
0006 
0007   SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
0008 */
0009 
0010 #include "specialdates_plugin.h"
0011 #include "sdsummarywidget.h"
0012 
0013 #include <KontactInterface/Core>
0014 
0015 #include <KAboutData>
0016 #include <KLocalizedString>
0017 
0018 EXPORT_KONTACT_PLUGIN_WITH_JSON(SpecialdatesPlugin, "specialdatesplugin.json")
0019 
0020 SpecialdatesPlugin::SpecialdatesPlugin(KontactInterface::Core *core, const KPluginMetaData &data, const QVariantList &)
0021     : KontactInterface::Plugin(core, core, data, nullptr)
0022 {
0023     setComponentName(QStringLiteral("korganizer"), i18n("KOrganizer"));
0024 }
0025 
0026 SpecialdatesPlugin::~SpecialdatesPlugin() = default;
0027 
0028 KontactInterface::Summary *SpecialdatesPlugin::createSummaryWidget(QWidget *parentWidget)
0029 {
0030     return new SDSummaryWidget(this, parentWidget);
0031 }
0032 
0033 const KAboutData SpecialdatesPlugin::aboutData()
0034 {
0035     KAboutData aboutData = KAboutData(QStringLiteral("specialdates"),
0036                                       i18n("Special Dates Summary"),
0037                                       QStringLiteral("1.0"),
0038                                       i18n("Kontact Special Dates Summary"),
0039                                       KAboutLicense::LGPL,
0040                                       i18n("Copyright © 2003 Tobias Koenig\n"
0041                                            "Copyright © 2004–2010 Allen Winter"));
0042     aboutData.addAuthor(i18n("Allen Winter"), i18n("Current Maintainer"), QStringLiteral("winter@kde.org"));
0043     aboutData.addAuthor(i18n("Tobias Koenig"), QString(), QStringLiteral("tokoe@kde.org"));
0044     aboutData.setProductName("kontact/specialdates");
0045     return aboutData;
0046 }
0047 
0048 #include "specialdates_plugin.moc"
0049 
0050 #include "moc_specialdates_plugin.cpp"