Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ad002add authored by Laurent Montel's avatar Laurent Montel 😁

Add gravatar configure plugin (need to implement it now :) )

parent 05b58bd7
......@@ -81,7 +81,7 @@ set(LIBKLEO_LIB_VERSION "5.9.80")
set(AKONADI_LIB_VERSION "5.9.80")
set(INCIDENCEEDITOR_LIB_VERSION "5.9.80")
set(KTNEF_LIB_VERSION "5.9.80")
set(MESSAGELIB_LIB_VERSION "5.9.80")
set(MESSAGELIB_LIB_VERSION "5.10.42")
set(AKONADICALENDAR_LIB_VERSION "5.9.80")
set(CALENDAR_UTILS_VERSION "5.9.80")
set(KPIMTEXTEDIT_LIB_VERSION "5.9.80")
......
add_definitions(-DTRANSLATION_DOMAIN=\"messageviewerconfiguresettingsplugins\")
add_subdirectory(gravatar)
set(messageviewer_gravatarconfigplugin_SRCS
gravatarconfiguresettingspluginwidget.cpp
gravatarconfiguresettingsplugin.cpp
)
kcoreaddons_add_plugin(messageviewer_gravatarconfigplugin JSON messageviewer_gravatarconfigplugin.json SOURCES
${messageviewer_gravatarconfigplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_gravatarconfigplugin
KF5::MessageViewer
KF5::I18n
)
/*
Copyright (C) 2018 Montel Laurent <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 "gravatarconfiguresettingsplugin.h"
#include <kpluginfactory.h>
K_PLUGIN_CLASS_WITH_JSON(GravatarConfigureSettingsPlugin, "messageviewer_gravatarconfigplugin.json")
GravatarConfigureSettingsPlugin::GravatarConfigureSettingsPlugin(QObject *parent, const QList<QVariant> &)
: MessageViewer::MessageViewerConfigureSettingsPlugin(parent)
{
}
GravatarConfigureSettingsPlugin::~GravatarConfigureSettingsPlugin()
{
}
void GravatarConfigureSettingsPlugin::showConfigureDialog(QWidget *parent)
{
}
#include "gravatarconfiguresettingsplugin.moc"
/*
Copyright (C) 2018 Montel Laurent <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 GRAVATARCONFIGURESETTINGSPLUGIN_H
#define GRAVATARCONFIGURESETTINGSPLUGIN_H
#include <MessageViewer/MessageViewerConfigureSettingsPlugin>
#include <QVariant>
class GravatarConfigureSettingsPlugin : public MessageViewer::MessageViewerConfigureSettingsPlugin
{
Q_OBJECT
public:
explicit GravatarConfigureSettingsPlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>());
~GravatarConfigureSettingsPlugin() override;
void showConfigureDialog(QWidget *parent) override;
};
#endif // GRAVATARCONFIGURESETTINGSPLUGIN_H
/*
Copyright (C) 2018 Montel Laurent <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 "gravatarconfiguresettingspluginwidget.h"
GravatarConfigureSettingsPluginWidget::GravatarConfigureSettingsPluginWidget(QWidget *parent)
: MessageViewer::MessageViewerConfigureSettingsPluginWidget(parent)
{
}
GravatarConfigureSettingsPluginWidget::~GravatarConfigureSettingsPluginWidget()
{
}
void GravatarConfigureSettingsPluginWidget::loadSettings()
{
}
void GravatarConfigureSettingsPluginWidget::saveSettings()
{
}
void GravatarConfigureSettingsPluginWidget::resetSettings()
{
}
/*
Copyright (C) 2018 Montel Laurent <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 GRAVATARCONFIGURESETTINGSPLUGINWIDGET_H
#define GRAVATARCONFIGURESETTINGSPLUGINWIDGET_H
#include <MessageViewer/MessageViewerConfigureSettingsPluginWidget>
class GravatarConfigureSettingsPluginWidget : public MessageViewer::MessageViewerConfigureSettingsPluginWidget
{
Q_OBJECT
public:
explicit GravatarConfigureSettingsPluginWidget(QWidget *parent = nullptr);
~GravatarConfigureSettingsPluginWidget() override;
public:
void loadSettings() override;
void saveSettings() override;
void resetSettings() override;
};
#endif // GRAVATARCONFIGURESETTINGSPLUGINWIDGET_H
{
"KPlugin": {
"Description": "This plugin allows you to configure gravatar support.",
"EnabledByDefault": "true",
"Name": "Gravatar",
"ServiceTypes": [
"MessageViewerConfigureSettingsPlugin/Plugin"
],
"Version": "1.0"
},
"X-KDE-MessageViewer-Configure-Order": "100"
}
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