Commit 2e6568f8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return rule info

parent 2b00fdfb
Pipeline #68126 passed with stage
in 54 minutes and 3 seconds
......@@ -5,7 +5,6 @@
*/
#include "confirmbeforedeletingcreateruledialog.h"
#include "confirmbeforedeletingcreaterulewidget.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
......@@ -31,3 +30,8 @@ ConfirmBeforeDeletingCreateRuleDialog::ConfirmBeforeDeletingCreateRuleDialog(QWi
ConfirmBeforeDeletingCreateRuleDialog::~ConfirmBeforeDeletingCreateRuleDialog()
{
}
ConfirmBeforeDeletingCreateRuleWidget::ConfirmBeforeDeletingInfo ConfirmBeforeDeletingCreateRuleDialog::info() const
{
return mConfirmBeforeDeletingCreateRuleWidget->info();
}
......@@ -7,8 +7,8 @@
#pragma once
#include "confirmbeforedeleting_private_export.h"
#include "confirmbeforedeletingcreaterulewidget.h"
#include <QDialog>
class ConfirmBeforeDeletingCreateRuleWidget;
class KMAILCONFIRMBEFOREDELETING_TESTS_EXPORT ConfirmBeforeDeletingCreateRuleDialog : public QDialog
{
Q_OBJECT
......@@ -16,6 +16,8 @@ public:
explicit ConfirmBeforeDeletingCreateRuleDialog(QWidget *parent = nullptr);
~ConfirmBeforeDeletingCreateRuleDialog() override;
Q_REQUIRED_RESULT ConfirmBeforeDeletingCreateRuleWidget::ConfirmBeforeDeletingInfo info() const;
private:
ConfirmBeforeDeletingCreateRuleWidget *const mConfirmBeforeDeletingCreateRuleWidget;
};
......@@ -18,3 +18,8 @@ ConfirmBeforeDeletingCreateRuleWidget::ConfirmBeforeDeletingCreateRuleWidget(QWi
ConfirmBeforeDeletingCreateRuleWidget::~ConfirmBeforeDeletingCreateRuleWidget()
{
}
ConfirmBeforeDeletingCreateRuleWidget::ConfirmBeforeDeletingInfo ConfirmBeforeDeletingCreateRuleWidget::info() const
{
return {};
}
......@@ -14,6 +14,10 @@ class KMAILCONFIRMBEFOREDELETING_TESTS_EXPORT ConfirmBeforeDeletingCreateRuleWid
{
Q_OBJECT
public:
struct ConfirmBeforeDeletingInfo {
QString pattern;
};
explicit ConfirmBeforeDeletingCreateRuleWidget(QWidget *parent = nullptr);
~ConfirmBeforeDeletingCreateRuleWidget() override;
Q_REQUIRED_RESULT ConfirmBeforeDeletingCreateRuleWidget::ConfirmBeforeDeletingInfo info() const;
};
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