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