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

Create confirm-address plugin

parent e412e98a
set(kmail_confirmaddresseditorplugin_SRCS
confirmaddressinterface.cpp
confirmaddressplugin.cpp
)
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME log_kmail_confirmaddressplugin)
add_library(kmail_confirmaddresseditorplugin MODULE ${kmail_confirmaddresseditorplugin_SRCS})
target_link_libraries(kmail_confirmaddresseditorplugin
KF5::IconThemes KF5::MessageComposer KF5::I18n
)
install(TARGETS kmail_confirmaddresseditorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
/*
Copyright (C) 2016 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 "confirmaddressinterface.h"
ConfirmAddressInterface::ConfirmAddressInterface(QObject *parent)
: MessageComposer::PluginEditorCheckBeforeSendInterface(parent)
{
}
ConfirmAddressInterface::~ConfirmAddressInterface()
{
}
void ConfirmAddressInterface::exec()
{
}
/*
Copyright (C) 2016 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 CONFIRMADDRESSINTERFACE_H
#define CONFIRMADDRESSINTERFACE_H
#include <MessageComposer/PluginEditorCheckBeforeSendInterface>
class ConfirmAddressInterface : public MessageComposer::PluginEditorCheckBeforeSendInterface
{
Q_OBJECT
public:
explicit ConfirmAddressInterface(QObject *parent = Q_NULLPTR);
~ConfirmAddressInterface();
void exec() Q_DECL_OVERRIDE;
};
#endif // CONFIRMADDRESSINTERFACE_H
/*
Copyright (C) 2016 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 "confirmaddressplugin.h"
ConfirmAddressPlugin::ConfirmAddressPlugin(QObject *parent)
: MessageComposer::PluginEditorCheckBeforeSend()
{
}
ConfirmAddressPlugin::~ConfirmAddressPlugin()
{
}
MessageComposer::PluginEditorCheckBeforeSendInterface *ConfirmAddressPlugin::createInterface(QWidget *parent)
{
return {};
}
/*
Copyright (C) 2016 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 CONFIRMADDRESSPLUGIN_H
#define CONFIRMADDRESSPLUGIN_H
#include <MessageComposer/PluginEditorCheckBeforeSend>
class ConfirmAddressPlugin : public MessageComposer::PluginEditorCheckBeforeSend
{
Q_OBJECT
public:
explicit ConfirmAddressPlugin(QObject *parent = Q_NULLPTR);
~ConfirmAddressPlugin();
MessageComposer::PluginEditorCheckBeforeSendInterface *createInterface(QWidget *parent) Q_DECL_OVERRIDE;
};
#endif // CONFIRMADDRESSPLUGIN_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