htdigindex.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef _HTDIGINDEX_H_
00016 #define _HTDIGINDEX_H_
00017
00018 #include <kdialogbase.h>
00019
00020 class QTimer;
00021 class QLabel;
00022 class KProcess;
00023 class KProgress;
00024
00025 class ProgressDialog : public KDialogBase
00026 {
00027 Q_OBJECT
00028 public:
00029 ProgressDialog(bool index, QWidget *parent=0, const char *name=0);
00030 ~ProgressDialog();
00031
00032 void addDir(const QString &dir);
00033 void scanDirectories();
00034 bool createConfig();
00035 bool generateIndex();
00036
00037 private slots:
00038 void htdigStdout(KProcess *proc, char *buffer, int buflen);
00039 void htdigExited(KProcess *proc);
00040 void htmergeExited(KProcess *proc);
00041 void cancelClicked();
00042 void okClicked();
00043 void slotDelayedStart();
00044
00045 private:
00046 void setFilesScanned(int s);
00047 void setFilesToDig(int d);
00048 void setFilesDigged(int d);
00049 void setState(int n);
00050 void done(int r);
00051 void startHtdigProcess(bool initial);
00052 void startHtmergeProcess();
00053
00054 QLabel *filesLabel, *check1, *check2, *check3;
00055 KProgress *bar;
00056
00057 int count;
00058 bool procdone;
00059 QString databaseDir;
00060 QString indexdir;
00061 QString exe;
00062 QStringList files;
00063 KProcess *proc;
00064 volatile int filesToDig, filesDigged, filesScanned;
00065 bool htdigRunning, htmergeRunning;
00066 };
00067
00068 #endif
This file is part of the documentation for KDevelop Version 3.1.2.