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  *   Copyright (C) 2004 by Alexander Dymo                                  *
00007  *   cloudtemple@mksat.net                                                 *
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
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
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