00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef KMAILHEADERLISQUICKSEARCH_H
00032 #define KMAILHEADERLISQUICKSEARCH_H
00033
00034 #include "kmmsgbase.h"
00035 #include "kmsearchpattern.h"
00036 #include <klistviewsearchline.h>
00037 #include <tqvaluevector.h>
00038 class TQComboBox;
00039 class TQLabel;
00040 class KListView;
00041 class KActionCollection;
00042
00043 namespace KMail {
00044
00045 class HeaderListQuickSearch : public KListViewSearchLine
00046 {
00047 Q_OBJECT
00048 TQ_OBJECT
00049 public:
00050 HeaderListQuickSearch( TQWidget *parent,
00051 KListView *listView,
00052 KActionCollection *actionCollection,
00053 const char *name = 0 );
00054 virtual ~HeaderListQuickSearch();
00055
00060 bool eventFilter( TQObject *watched, TQEvent *event );
00061
00065 TQString currentSearchTerm() const;
00066
00070 int currenStatus() const;
00071
00072 public slots:
00073 void reset();
00074
00075 signals:
00076 void requestFullSearch();
00077
00078 protected:
00083 virtual bool itemMatches(const TQListViewItem *item, const TQString &s) const;
00084
00085 private slots:
00090 void slotStatusChanged( int index );
00091
00092 private:
00094 void inserStatus(KMail::StatusValueTypes which);
00095 TQComboBox *mStatusCombo;
00096 KMMsgStatus mStatus;
00097 TQValueVector<TQString> statusList;
00098 mutable TQString mCurrentSearchTerm;
00099 };
00100
00101 }
00102
00103 #endif