french -> French
[kdepim.git] / knode / knsearchdialog.h
blob2d5b6e70d98db4bbdbbb91e4c3539264f340b0a5
1 /*
2 KNode, the KDE newsreader
3 Copyright (c) 1999-2005 the KNode authors.
4 See file AUTHORS for details
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 You should have received a copy of the GNU General Public License
11 along with this program; if not, write to the Free Software Foundation,
12 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
15 #ifndef KNODE_KNSEARCHDIALOG_H
16 #define KNODE_KNSEARCHDIALOG_H
18 #include <kdialog.h>
20 class QCloseEvent;
21 class QCheckBox;
22 class KNFilterConfigWidget;
23 class KNArticleFilter;
25 namespace KNode {
27 /** Article search dialog. */
28 class SearchDialog : public KDialog
30 Q_OBJECT
32 public:
33 enum searchType { STfolderSearch, STgroupSearch };
34 /** Create a new article search dialog.
35 * @param parent The parent widget.
37 explicit SearchDialog( searchType t = STgroupSearch, QWidget *parent = 0 );
38 ~SearchDialog();
40 KNArticleFilter* filter() const { return f_ilter; }
42 protected:
43 void closeEvent( QCloseEvent* e );
45 KNFilterConfigWidget *fcw;
46 QCheckBox *completeThreads;
47 KNArticleFilter *f_ilter;
49 protected slots:
50 /** Search button clicked. */
51 void slotUser1();
52 /** Clear button clicked. */
53 void slotUser2();
54 void slotClose();
56 signals:
57 void doSearch(KNArticleFilter *);
58 void dialogDone();
64 #endif // KNODE_KNSEARCHDIALOG_H