Commit f0609643 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement plugins

parent 959c35c2
......@@ -73,7 +73,7 @@ set(LIBKLEO_LIB_VERSION "5.17.40")
set(AKONADI_LIB_VERSION "5.17.40")
set(INCIDENCEEDITOR_LIB_VERSION "5.17.40")
set(KTNEF_LIB_VERSION "5.17.40")
set(MESSAGELIB_LIB_VERSION "5.17.50")
set(MESSAGELIB_LIB_VERSION "5.17.52")
set(AKONADICALENDAR_LIB_VERSION "5.17.40")
set(CALENDAR_UTILS_VERSION "5.17.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.17.40")
......
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
kcoreaddons_add_plugin(kmail_confirmbeforedeletingplugin JSON kmail_confirmbeforedeletingplugin.json INSTALL_NAMESPACE messageviewer/checkbeforedeleting)
target_sources(kmail_confirmbeforedeletingplugin PRIVATE
confirmbeforedeletinginterface.cpp
)
ecm_qt_declare_logging_category(kmail_confirmbeforedeletingplugin HEADER confirmbeforedeletingplugin_debug.h IDENTIFIER KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmbeforedeletingplugin
DESCRIPTION "kdepim-addons (Confirm Before Deleting email)"
OLD_CATEGORY_NAMES log_kmail_confirmbeforedeletingplugin
EXPORT KDEPIMADDONS
)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_confirmbeforedeletingplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(kmail_confirmbeforedeletingplugin
KF5::MessageViewer KF5::I18n KF5::PimCommon KF5::Libkdepim
)
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "confirmbeforedeletinginterface.h"
ConfirmBeforeDeletingInterface::ConfirmBeforeDeletingInterface(QObject *parent)
: QObject(parent)
{
}
ConfirmBeforeDeletingInterface::~ConfirmBeforeDeletingInterface()
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QObject>
class ConfirmBeforeDeletingInterface : public QObject
{
Q_OBJECT
public:
explicit ConfirmBeforeDeletingInterface(QObject *parent = nullptr);
~ConfirmBeforeDeletingInterface() override;
};
{
"KPlugin": {
"Description": "This plugin allows you to check if we want to delete specific email",
"EnabledByDefault": "false",
"Id": "kmailconfirmbeforedeleting",
"Name": "Confirm Before Deleting Emails",
"Version": "1.0"
}
}
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