kmail
headerlistquicksearch.h00001
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 public:
00049 HeaderListQuickSearch( TQWidget *parent,
00050 KListView *listView,
00051 KActionCollection *actionCollection,
00052 const char *name = 0 );
00053 virtual ~HeaderListQuickSearch();
00054
00059 bool eventFilter( TQObject *watched, TQEvent *event );
00060
00064 TQString currentSearchTerm() const;
00065
00069 int currentStatus() const;
00070
00071 public slots:
00072 void reset();
00073
00074 signals:
00075 void requestFullSearch();
00076
00077 protected:
00082 virtual bool itemMatches(const TQListViewItem *item, const TQString &s) const;
00083
00084 private slots:
00089 void slotStatusChanged( int index );
00090
00091 private:
00093 void insertStatus(KMail::StatusValueTypes which);
00094 TQComboBox *mStatusCombo;
00095 KMMsgStatus mStatus;
00096 TQValueVector<TQString> statusList;
00097 mutable TQString mCurrentSearchTerm;
00098 };
00099
00100 }
00101
00102 #endif
|