Commit 868160b8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to create messagebox

parent 78a7b357
Pipeline #74265 canceled with stage
......@@ -10,6 +10,7 @@ target_sources(kmailconfirmbeforedeleting PRIVATE
confirmbeforedeletingrule.cpp
confirmbeforedeletingcreateruledialog.cpp
confirmbeforedeletingcreaterulewidget.cpp
confirmbeforedeletingmessagebox.cpp
)
ecm_qt_declare_logging_category(kmailconfirmbeforedeleting HEADER confirmbeforedeletingplugin_debug.h IDENTIFIER KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmbeforedeletingplugin
DESCRIPTION "kdepim-addons (Confirm Before Deleting email)"
......
......@@ -15,3 +15,4 @@ add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingwidgettest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingruletest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingcreaterulewidgettest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingcreateruledialogtest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingmessageboxtest.cpp)
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "confirmbeforedeletingmessageboxtest.h"
#include "confirmbeforedeletingmessagebox.h"
#include <QTest>
QTEST_MAIN(ConfirmBeforeDeletingMessageBoxTest)
ConfirmBeforeDeletingMessageBoxTest::ConfirmBeforeDeletingMessageBoxTest(QObject *parent)
: QObject(parent)
{
}
void ConfirmBeforeDeletingMessageBoxTest::shouldHaveDefaultValues()
{
ConfirmBeforeDeletingMessageBox d;
// TODO
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QObject>
class ConfirmBeforeDeletingMessageBoxTest : public QObject
{
Q_OBJECT
public:
explicit ConfirmBeforeDeletingMessageBoxTest(QObject *parent = nullptr);
~ConfirmBeforeDeletingMessageBoxTest() override = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "confirmbeforedeletingmessagebox.h"
ConfirmBeforeDeletingMessageBox::ConfirmBeforeDeletingMessageBox(QWidget *parent)
: QDialog(parent)
{
}
ConfirmBeforeDeletingMessageBox::~ConfirmBeforeDeletingMessageBox()
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "confirmbeforedeleting_private_export.h"
#include <QDialog>
class KMAILCONFIRMBEFOREDELETING_TESTS_EXPORT ConfirmBeforeDeletingMessageBox : public QDialog
{
Q_OBJECT
public:
explicit ConfirmBeforeDeletingMessageBox(QWidget *parent = nullptr);
~ConfirmBeforeDeletingMessageBox() override;
};
Supports Markdown
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