• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messagelist

  • sources
  • kde-4.14
  • kdepim
  • messagelist
  • core
  • widgets
quicksearchline.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2014-2015 Montel Laurent <montel@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 
19 */
20 
21 #ifndef QUICKSEARCHLINE_H
22 #define QUICKSEARCHLINE_H
23 
24 #include <QWidget>
25 #include "messagelist_export.h"
26 #include <akonadi/kmime/messagestatus.h>
27 
28 class KLineEdit;
29 class KComboBox;
30 class QToolButton;
31 class QPushButton;
32 class QSignalMapper;
33 class KPushButton;
34 namespace MessageList {
35 namespace Core {
36 class MESSAGELIST_EXPORT QuickSearchLine : public QWidget
37 {
38  Q_OBJECT
39 public:
40  explicit QuickSearchLine(QWidget *parent=0);
41  ~QuickSearchLine();
42 
43  enum SearchOption {
44  SearchEveryWhere = 1,
45  SearchAgainstBody = 2,
46  SearchAgainstSubject = 4,
47  SearchAgainstFrom = 8,
48  SearchAgainstBcc = 16,
49  SearchAgainstTo = 32
50  };
51 
52  Q_ENUMS(SearchOption)
53  Q_DECLARE_FLAGS(SearchOptions, SearchOption)
54 
55  SearchOptions searchOptions() const;
56 
57  void focusQuickSearch(const QString &selectedText);
58 
59  KComboBox *tagFilterComboBox() const;
60  KLineEdit *searchEdit() const;
61  QToolButton *openFullSearchButton() const;
62  QToolButton *lockSearch() const;
63  void resetFilter();
64  QList<Akonadi::MessageStatus> status() const;
65 
66  void updateComboboxVisibility();
67 
68  bool containsOutboundMessages() const;
69  void setContainsOutboundMessages(bool containsOutboundMessages);
70 
71  void changeQuicksearchVisibility(bool show);
72 
73 Q_SIGNALS:
74  void clearButtonClicked();
75  void searchEditTextEdited(const QString &);
76  void searchOptionChanged();
77  void statusButtonsClicked();
78 
79 protected:
80  bool eventFilter(QObject *object, QEvent *e);
81 private slots:
82  void slotLockSearchClicked(bool locked);
83  void slotSearchOptionChanged();
84  void slotSearchEditTextEdited(const QString &text);
85  void slotClearButtonClicked();
86  void slotMoreOptionClicked(bool b);
87  void slotSearchBy();
88 
89 private:
90  void initializeStatusSearchButton(QLayout *quickSearchButtonLayout);
91  void createQuickSearchButton(const QIcon &icon, const QString &text, int value, QLayout *quickSearchButtonLayout);
92  void changeSearchAgainstFromOrToText();
93  QList<QToolButton *> mListStatusButton;
94  KLineEdit *mSearchEdit;
95  KComboBox *mTagFilterCombo;
96  QToolButton *mLockSearch;
97  KPushButton *mMoreOptions;
98  QPushButton *mSearchEveryWhere;
99  QPushButton *mSearchAgainstBody;
100  QPushButton *mSearchAgainstSubject;
101  QPushButton *mSearchAgainstFromOrTo;
102  QPushButton *mSearchAgainstBcc;
103  QWidget *mExtraOption;
104  QWidget *mQuickSearchFilterWidget;
105  bool mContainsOutboundMessages;
106  QSignalMapper *mFilterStatusMapper;
107 };
108 }
109 }
110 #endif // QUICKSEARCHLINE_H
KPushButton
QEvent
QWidget
messagelist_export.h
MessageList::Core::QuickSearchLine
Definition: quicksearchline.h:36
MessageList::Core::QuickSearchLine::SearchOption
SearchOption
Definition: quicksearchline.h:43
QLayout
QObject
QString
QList
QToolButton
MESSAGELIST_EXPORT
#define MESSAGELIST_EXPORT
Definition: messagelist_export.h:34
KComboBox
QPushButton
QSignalMapper
QIcon
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messagelist

Skip menu "messagelist"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal