kmail

headerlistquicksearch.h
1/*
2 This file is part of KMail, the KDE mail client.
3 Copyright (c) 2004 Till Adam <adam@kde.org>
4
5 KMail is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 KMail is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
19 In addition, as a special exception, the copyright holders give
20 permission to link the code of this program with any edition of
21 the TQt library by Trolltech AS, Norway (or with modified versions
22 of TQt that use the same license as TQt), and distribute linked
23 combinations including the two. You must obey the GNU General
24 Public License in all respects for all of the code used other than
25 TQt. If you modify this file, you may extend this exception to
26 your version of the file, but you are not obligated to do so. If
27 you do not wish to do so, delete this exception statement from
28 your version.
29*/
30
31#ifndef KMAILHEADERLISQUICKSEARCH_H
32#define KMAILHEADERLISQUICKSEARCH_H
33
34#include "kmmsgbase.h" // for KMMsgStatus
35#include "kmsearchpattern.h"
36#include <tdelistviewsearchline.h>
37#include <tqvaluevector.h>
38class TQComboBox;
39class TQLabel;
40class TDEListView;
41class TDEActionCollection;
42
43namespace KMail {
44
45class HeaderListQuickSearch : public TDEListViewSearchLine
46{
47TQ_OBJECT
48
49public:
50 HeaderListQuickSearch( TQWidget *parent,
51 TDEListView *listView,
52 TDEActionCollection *actionCollection,
53 const char *name = 0 );
54 virtual ~HeaderListQuickSearch();
55
60 bool eventFilter( TQObject *watched, TQEvent *event );
61
65 TQString currentSearchTerm() const;
66
70 int currenStatus() const;
71
72public slots:
73 void reset();
74
75signals:
76 void requestFullSearch();
77
78protected:
83 virtual bool itemMatches(const TQListViewItem *item, const TQString &s) const;
84
85private slots:
90 void slotStatusChanged( int index );
91
92private:
94 void inserStatus(KMail::StatusValueTypes which);
95 TQComboBox *mStatusCombo;
96 KMMsgStatus mStatus;
97 TQValueVector<TQString> statusList;
98 mutable TQString mCurrentSearchTerm;
99};
100
101}
102
103#endif
folderdiaquotatab.h
Definition: aboutdata.cpp:40