Messagelib

searchstatusbuttons.h
1/*
2 SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "messagelist_private_export.h"
9#include <Akonadi/MessageStatus>
10#include <QWidget>
11class QButtonGroup;
12class QHBoxLayout;
13namespace MessageList
14{
15namespace Core
16{
17class MESSAGELIST_TESTS_EXPORT SearchStatusButtons : public QWidget
18{
19 Q_OBJECT
20public:
21 explicit SearchStatusButtons(QWidget *parent = nullptr);
22 ~SearchStatusButtons() override;
23
24 void clearFilter();
25 void setFilterMessageStatus(const QList<Akonadi::MessageStatus> &newLstStatus);
26Q_SIGNALS:
27 void filterStatusChanged(const QList<Akonadi::MessageStatus> &lst);
28
29private:
30 MESSAGELIST_NO_EXPORT void createAction();
31 MESSAGELIST_NO_EXPORT void createFilterAction(const QIcon &icon, const QString &text, int value);
32 MESSAGELIST_NO_EXPORT void updateFilters();
33 QButtonGroup *const mButtonGroup;
34 QHBoxLayout *const mMainLayout;
35};
36}
37}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.