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

Add rules support

parent a9965c25
Pipeline #67923 passed with stage
in 52 minutes and 20 seconds
......@@ -4,6 +4,7 @@ target_sources(kmailconfirmbeforedeleting PRIVATE
confirmbeforedeletingdialog.cpp
confirmbeforedeletingwidget.cpp
confirmbeforedeletingmanager.cpp
confirmbeforedeletingrule.cpp
)
......
......@@ -14,3 +14,9 @@ ConfirmBeforeDeletingManager::ConfirmBeforeDeletingManager(QObject *parent)
ConfirmBeforeDeletingManager::~ConfirmBeforeDeletingManager()
{
}
ConfirmBeforeDeletingManager *ConfirmBeforeDeletingManager::self()
{
static ConfirmBeforeDeletingManager s_self;
return &s_self;
}
......@@ -15,4 +15,6 @@ class KMAILCONFIRMBEFOREDELETING_EXPORT ConfirmBeforeDeletingManager : public QO
public:
explicit ConfirmBeforeDeletingManager(QObject *parent = nullptr);
~ConfirmBeforeDeletingManager() override;
static ConfirmBeforeDeletingManager *self();
};
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "confirmbeforedeletingrule.h"
ConfirmBeforeDeletingRule::ConfirmBeforeDeletingRule()
{
}
ConfirmBeforeDeletingRule::~ConfirmBeforeDeletingRule()
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
class ConfirmBeforeDeletingRule
{
public:
ConfirmBeforeDeletingRule();
~ConfirmBeforeDeletingRule();
};
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