Commit 88752c6b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement plugin source info

parent b2a2bdd8
......@@ -188,6 +188,7 @@ set(kmailprivate_userfeedback_LIB_SRCS)
if (TARGET KUserFeedbackWidgets)
set(kmailprivate_userfeedback_LIB_SRCS ${kmailprivate_userfeedback_LIB_SRCS}
userfeedback/accountinfosource.cpp
userfeedback/plugininfosource.cpp
)
endif()
......
......@@ -124,6 +124,7 @@ using KMail::MailServiceImpl;
#include <KUserFeedback/UsageTimeSource>
#include <KUserFeedback/LocaleInfoSource>
#include "userfeedback/accountinfosource.h"
#include "userfeedback/plugininfosource.h"
#endif
......@@ -160,6 +161,7 @@ KMKernel::KMKernel(QObject *parent)
mUserFeedbackProvider->addDataSource(new KUserFeedback::LocaleInfoSource);
mUserFeedbackProvider->addDataSource(new AccountInfoSource);
mUserFeedbackProvider->addDataSource(new PluginInfoSource);
#endif
......
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "plugininfosource.h"
#include <QVariant>
#include <KUserFeedback/Provider>
#include <KLocalizedString>
PluginInfoSource::PluginInfoSource()
: KUserFeedback::AbstractDataSource(QStringLiteral("plugins"), KUserFeedback::Provider::DetailedSystemInformation)
{
}
//TODO add account type
QString PluginInfoSource::name() const
{
return i18n("Plugins Information");
}
QString PluginInfoSource::description() const
{
return i18n("Plugins used in KMail.");
}
QVariant PluginInfoSource::data()
{
return {};
}
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef PLUGININFOSOURCE_H
#define PLUGININFOSOURCE_H
#include <KUserFeedback/AbstractDataSource>
class PluginInfoSource : public KUserFeedback::AbstractDataSource
{
public:
PluginInfoSource();
Q_REQUIRED_RESULT QString name() const override;
Q_REQUIRED_RESULT QString description() const override;
Q_REQUIRED_RESULT QVariant data() override;
};
#endif // PLUGININFOSOURCE_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment