KDevelop API Documentation

htdigindex.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 1999-2001 by Matthias Hoelzer-Kluepfel                  *
00003  *   hoelzer@kde.org                                                       *
00004  *   Copyright (C) 2001 by Bernd Gehrmann                                  *
00005  *   bernd@kdevelop.org                                                    *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
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
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:55 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003