21 #ifndef QUICKSEARCHLINE_H
22 #define QUICKSEARCHLINE_H
26 #include <akonadi/kmime/messagestatus.h>
34 namespace MessageList {
45 SearchAgainstBody = 2,
46 SearchAgainstSubject = 4,
47 SearchAgainstFrom = 8,
48 SearchAgainstBcc = 16,
53 Q_DECLARE_FLAGS(SearchOptions, SearchOption)
55 SearchOptions searchOptions() const;
57 void focusQuickSearch(const
QString &selectedText);
60 KLineEdit *searchEdit() const;
64 QList<Akonadi::MessageStatus> status() const;
66 void updateComboboxVisibility();
68 bool containsOutboundMessages() const;
69 void setContainsOutboundMessages(
bool containsOutboundMessages);
71 void changeQuicksearchVisibility(
bool show);
74 void clearButtonClicked();
75 void searchEditTextEdited(const
QString &);
76 void searchOptionChanged();
77 void statusButtonsClicked();
82 void slotLockSearchClicked(
bool locked);
83 void slotSearchOptionChanged();
84 void slotSearchEditTextEdited(const QString &text);
85 void slotClearButtonClicked();
86 void slotMoreOptionClicked(
bool b);
90 void initializeStatusSearchButton(
QLayout *quickSearchButtonLayout);
91 void createQuickSearchButton(const
QIcon &icon, const QString &text,
int value,
QLayout *quickSearchButtonLayout);
92 void changeSearchAgainstFromOrToText();
94 KLineEdit *mSearchEdit;
104 QWidget *mQuickSearchFilterWidget;
105 bool mContainsOutboundMessages;
110 #endif // QUICKSEARCHLINE_H
#define MESSAGELIST_EXPORT