8#include "messagelist_export.h"
9#include <Akonadi/MessageStatus>
18class MESSAGELIST_EXPORT SearchMessageByButtons :
public QWidget
24 SearchAgainstBody = 2,
25 SearchAgainstSubject = 4,
26 SearchAgainstFrom = 8,
27 SearchAgainstBcc = 16,
32 Q_DECLARE_FLAGS(SearchOptions, SearchOption)
33 explicit SearchMessageByButtons(
QWidget *parent =
nullptr);
34 ~SearchMessageByButtons()
override;
36 void changeSearchAgainstFromOrToText();
38 void setContainsOutboundMessages(
bool containsOutboundMessages);
39 [[nodiscard]]
bool containsOutboundMessages()
const;
41 [[nodiscard]] SearchMessageByButtons::SearchOptions searchOptions()
const;
42 void setSearchOptions(SearchMessageByButtons::SearchOptions opts);
46 void searchOptionChanged();
49 MESSAGELIST_NO_EXPORT
QToolButton *createFilterButton(
const QString &text, SearchOption option);
50 MESSAGELIST_NO_EXPORT
void createButtons();
53 QToolButton *mSearchAgainstFromOrToButton =
nullptr;
54 bool mContainsOutboundMessages =
false;
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.