revert nonfunctional old_battery_percent
[kdebase.git] / apps / kfind / kfinddlg.h
blob47cc202fa2ebe6505927bb7a071a91994eb9ceed
1 /***********************************************************************
3 * KfindDlg.h
5 ***********************************************************************/
7 #ifndef KFINDDLG_H
8 #define KFINDDLG_H
10 #include <kdialog.h>
11 #include <kdirlister.h>
12 #include <kdirwatch.h>
14 class QString;
15 class QDir;
17 class KQuery;
18 class KUrl;
19 class KFileItem;
20 class KfindTabWidget;
21 class KfindWindow;
22 class KStatusBar;
24 class KfindDlg: public KDialog
26 Q_OBJECT
28 public:
29 explicit KfindDlg(const KUrl & url, QWidget * parent = 0);
30 ~KfindDlg();
31 void copySelection();
33 void setStatusMsg(const QString &);
34 void setProgressMsg(const QString &);
36 private:
37 void closeEvent(QCloseEvent *);
38 /*Return a QStringList of all subdirs of d*/
39 QStringList getAllSubdirs(QDir d);
41 public Q_SLOTS:
42 void startSearch();
43 void stopSearch();
44 void newSearch();
45 void addFile(const KFileItem& item, const QString& matchingLine);
46 void setFocus();
47 void slotResult(int);
48 // void slotSearchDone();
49 void about ();
50 void slotDeleteItem(const QString&);
51 void slotNewItems( const QString& );
53 Q_SIGNALS:
54 void haveResults(bool);
55 void resultSelected(bool);
57 private:
58 KfindTabWidget *tabWidget;
59 KfindWindow * win;
61 bool isResultReported;
62 KQuery *query;
63 KStatusBar *mStatusBar;
64 KDirLister *dirlister;
65 KDirWatch *dirwatch;
68 #endif