filternamedialog.h 607 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
  SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>

  SPDX-License-Identifier: GPL-2.0-or-later
*/

#pragma once

#include "messagelist_private_export.h"
#include <QDialog>

namespace MessageList
{
namespace Core
{
Laurent Montel's avatar
Laurent Montel committed
16
class FilterNameWidget;
Laurent Montel's avatar
Laurent Montel committed
17
18
19
20
21
22
class MESSAGELIST_TESTS_EXPORT FilterNameDialog : public QDialog
{
    Q_OBJECT
public:
    explicit FilterNameDialog(QWidget *parent = nullptr);
    ~FilterNameDialog() override;
Laurent Montel's avatar
Laurent Montel committed
23

Laurent Montel's avatar
Laurent Montel committed
24
25
    Q_REQUIRED_RESULT QString filterName() const;

26
27
    void setExistingFilterNames(const QStringList &lst);

Laurent Montel's avatar
Laurent Montel committed
28
29
private:
    FilterNameWidget *const mFilterNameWidget;
Laurent Montel's avatar
Laurent Montel committed
30
31
32
};
}
}