Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kfind / kfind.h
blobdda373fd9d77f5b0d61b32d183763a1bcfc5fb15
1 /***********************************************************************
3 * Kfind.h
5 ***********************************************************************/
7 #ifndef KFIND_H
8 #define KFIND_H
10 #include <QtGui/QWidget>
12 class KPushButton;
14 class KQuery;
15 class KUrl;
16 class KfindTabWidget;
17 class KDirLister;
19 class Kfind: public QWidget
21 Q_OBJECT
23 public:
24 Kfind(QWidget * parent = 0);
25 ~Kfind();
27 void setURL( const KUrl &url );
29 void setQuery(KQuery * q) { query = q; }
30 void searchFinished();
32 void saveState( QDataStream *stream );
33 void restoreState( QDataStream *stream );
35 public Q_SLOTS:
36 void startSearch();
37 void stopSearch();
38 void saveResults();
40 Q_SIGNALS:
41 void haveResults(bool);
42 void resultSelected(bool);
44 void started();
45 void destroyMe();
47 private:
48 void setFocus();
49 KfindTabWidget *tabWidget;
50 KPushButton *mSearch;
51 KPushButton *mStop;
52 KPushButton *mSave;
53 KQuery *query;
55 public:
56 KDirLister *dirlister;
59 #endif