KDevelop API Documentation

ProgressDialog Class Reference

#include <htdigindex.h>

Inheritance diagram for ProgressDialog:

KDialogBase KDialog QDialog List of all members.

Public Member Functions

 ProgressDialog (QWidget *parent=0, const char *name=0)
 ~ProgressDialog ()
void addDir (const QString &dir)
void addKdocDir (FILE *f)
void addTocFile (QDomDocument &doc)
void scanDirectories ()
bool createConfig ()
bool generateIndex ()

Private Slots

void htdigStdout (KProcess *proc, char *buffer, int buflen)
void htdigExited (KProcess *proc)
void htmergeExited (KProcess *proc)
void cancelClicked ()
void slotDelayedStart ()

Private Member Functions

void setFilesScanned (int s)
void setFilesToDig (int d)
void setFilesDigged (int d)
void setState (int n)
void done (int r)
void startHtdigProcess (bool initial)
void startHtmergeProcess ()

Private Attributes

QLabelfilesLabel
QLabelcheck1
QLabelcheck2
QLabelcheck3
KProgressbar
int count
bool procdone
QString indexdir
QString exe
QStringList files
KProcessproc
volatile int filesToDig
volatile int filesDigged
volatile int filesScanned
bool htdigRunning
bool htmergeRunning

Constructor & Destructor Documentation

ProgressDialog::ProgressDialog QWidget parent = 0,
const char *  name = 0
 

Definition at line 38 of file htdigindex.cpp.

References bar, cancelClicked(), check1, check2, check3, filesLabel, indexdir, KDialogBase::plainPage(), proc, ProgressDialog(), setFilesScanned(), setState(), slotDelayedStart(), and KDialog::spacingHint().

Referenced by ProgressDialog().

ProgressDialog::~ProgressDialog  ) 
 

Definition at line 82 of file htdigindex.cpp.


Member Function Documentation

void ProgressDialog::addDir const QString dir  ) 
 

Definition at line 135 of file htdigindex.cpp.

References addDir(), endl(), files, filesScanned, kdDebug(), procdone, and setFilesScanned().

Referenced by addDir(), addKdocDir(), and scanDirectories().

void ProgressDialog::addKdocDir FILE *  f  ) 
 

Definition at line 164 of file htdigindex.cpp.

References addDir(), and addKdocDir().

Referenced by addKdocDir(), and scanDirectories().

void ProgressDialog::addTocFile QDomDocument doc  ) 
 

Definition at line 180 of file htdigindex.cpp.

References addTocFile(), endl(), files, filesScanned, kdDebug(), and setFilesScanned().

Referenced by addTocFile(), and scanDirectories().

void ProgressDialog::cancelClicked  )  [private, slot]
 

Reimplemented from KDialogBase.

Definition at line 560 of file htdigindex.cpp.

References done(), endl(), htdigRunning, htmergeRunning, KProcess::isRunning(), kdDebug(), KProcess::kill(), proc, and procdone.

Referenced by ProgressDialog().

bool ProgressDialog::createConfig  ) 
 

Definition at line 348 of file htdigindex.cpp.

References endl(), indexdir, KLocale::language(), KGlobal::locale(), and locate().

Referenced by slotDelayedStart().

void ProgressDialog::done int  r  )  [private]
 

Definition at line 98 of file htdigindex.cpp.

References done(), KProcess::kill(), and proc.

Referenced by cancelClicked(), done(), generateIndex(), htdigExited(), htmergeExited(), slotDelayedStart(), and startHtdigProcess().

bool ProgressDialog::generateIndex  ) 
 

Definition at line 437 of file htdigindex.cpp.

References config, count, done(), exe, files, filesDigged, filesToDig, procdone, KConfigBase::readPathEntry(), setFilesToDig(), KConfigBase::setGroup(), setState(), and startHtdigProcess().

Referenced by slotDelayedStart().

void ProgressDialog::htdigExited KProcess proc  )  [private, slot]
 

Definition at line 480 of file htdigindex.cpp.

References CHUNK_SIZE, config, done(), endl(), exe, KProcess::exitStatus(), filesDigged, filesToDig, htdigExited(), htdigRunning, kdDebug(), KProcess::normalExit(), procdone, KConfigBase::readPathEntry(), setFilesDigged(), KConfigBase::setGroup(), setState(), startHtdigProcess(), and startHtmergeProcess().

Referenced by htdigExited(), and startHtdigProcess().

void ProgressDialog::htdigStdout KProcess proc,
char *  buffer,
int  buflen
[private, slot]
 

Definition at line 462 of file htdigindex.cpp.

References filesDigged, htdigStdout(), len, and setFilesDigged().

Referenced by htdigStdout().

void ProgressDialog::htmergeExited KProcess proc  )  [private, slot]
 

Definition at line 538 of file htdigindex.cpp.

References done(), endl(), KProcess::exitStatus(), htmergeExited(), htmergeRunning, kdDebug(), KProcess::normalExit(), and setState().

Referenced by htmergeExited(), and startHtmergeProcess().

void ProgressDialog::scanDirectories  ) 
 

Todo:
Problem: they are in index.cache.bz2 :-(
Fixme:
Perhaps one should consider indexing the whole directory the file

Definition at line 230 of file htdigindex.cpp.

References addDir(), addKdocDir(), addTocFile(), config, KGlobal::dirs(), endl(), KConfig::entryMap(), files, filesScanned, KStandardDirs::findAllResources(), kdDebug(), KConfigBase::readBoolEntry(), KConfigBase::readPathEntry(), setFilesScanned(), and KConfigBase::setGroup().

Referenced by slotDelayedStart().

void ProgressDialog::setFilesDigged int  d  )  [private]
 

Definition at line 118 of file htdigindex.cpp.

References bar, setFilesDigged(), and KProgress::setValue().

Referenced by htdigExited(), htdigStdout(), and setFilesDigged().

void ProgressDialog::setFilesScanned int  s  )  [private]
 

Definition at line 106 of file htdigindex.cpp.

References filesLabel, and setFilesScanned().

Referenced by addDir(), addTocFile(), ProgressDialog(), scanDirectories(), and setFilesScanned().

void ProgressDialog::setFilesToDig int  d  )  [private]
 

Definition at line 112 of file htdigindex.cpp.

References bar, setFilesToDig(), and KProgress::setRange().

Referenced by generateIndex(), and setFilesToDig().

void ProgressDialog::setState int  n  )  [private]
 

Definition at line 124 of file htdigindex.cpp.

References check1, check2, check3, locate(), and setState().

Referenced by generateIndex(), htdigExited(), htmergeExited(), ProgressDialog(), and setState().

void ProgressDialog::slotDelayedStart  )  [private, slot]
 

Definition at line 85 of file htdigindex.cpp.

References createConfig(), done(), generateIndex(), procdone, and scanDirectories().

Referenced by ProgressDialog().

void ProgressDialog::startHtdigProcess bool  initial  )  [private]
 

Definition at line 400 of file htdigindex.cpp.

References CHUNK_SIZE, count, done(), endl(), exe, files, filesToDig, htdigExited(), htdigRunning, indexdir, kdDebug(), proc, procdone, KProcess::start(), and startHtdigProcess().

Referenced by generateIndex(), htdigExited(), and startHtdigProcess().

void ProgressDialog::startHtmergeProcess  )  [private]
 

Definition at line 521 of file htdigindex.cpp.

References endl(), exe, htmergeExited(), htmergeRunning, indexdir, kdDebug(), proc, and KProcess::start().

Referenced by htdigExited().


Member Data Documentation

KProgress* ProgressDialog::bar [private]
 

Definition at line 60 of file htdigindex.h.

Referenced by ProgressDialog(), setFilesDigged(), and setFilesToDig().

QLabel * ProgressDialog::check1 [private]
 

Definition at line 59 of file htdigindex.h.

Referenced by ProgressDialog(), and setState().

QLabel * ProgressDialog::check2 [private]
 

Definition at line 59 of file htdigindex.h.

Referenced by ProgressDialog(), and setState().

QLabel * ProgressDialog::check3 [private]
 

Definition at line 59 of file htdigindex.h.

Referenced by ProgressDialog(), and setState().

int ProgressDialog::count [private]
 

Definition at line 62 of file htdigindex.h.

Referenced by generateIndex(), and startHtdigProcess().

QString ProgressDialog::exe [private]
 

Definition at line 65 of file htdigindex.h.

Referenced by generateIndex(), htdigExited(), startHtdigProcess(), and startHtmergeProcess().

QStringList ProgressDialog::files [private]
 

Definition at line 66 of file htdigindex.h.

Referenced by addDir(), addTocFile(), generateIndex(), scanDirectories(), and startHtdigProcess().

volatile int ProgressDialog::filesDigged [private]
 

Definition at line 68 of file htdigindex.h.

Referenced by generateIndex(), htdigExited(), and htdigStdout().

QLabel* ProgressDialog::filesLabel [private]
 

Definition at line 59 of file htdigindex.h.

Referenced by ProgressDialog(), and setFilesScanned().

volatile int ProgressDialog::filesScanned [private]
 

Definition at line 68 of file htdigindex.h.

Referenced by addDir(), addTocFile(), and scanDirectories().

volatile int ProgressDialog::filesToDig [private]
 

Definition at line 68 of file htdigindex.h.

Referenced by generateIndex(), htdigExited(), and startHtdigProcess().

bool ProgressDialog::htdigRunning [private]
 

Definition at line 69 of file htdigindex.h.

Referenced by cancelClicked(), htdigExited(), and startHtdigProcess().

bool ProgressDialog::htmergeRunning [private]
 

Definition at line 69 of file htdigindex.h.

Referenced by cancelClicked(), htmergeExited(), and startHtmergeProcess().

QString ProgressDialog::indexdir [private]
 

Definition at line 64 of file htdigindex.h.

Referenced by createConfig(), ProgressDialog(), startHtdigProcess(), and startHtmergeProcess().

KProcess* ProgressDialog::proc [private]
 

Definition at line 67 of file htdigindex.h.

Referenced by cancelClicked(), done(), ProgressDialog(), startHtdigProcess(), and startHtmergeProcess().

bool ProgressDialog::procdone [private]
 

Definition at line 63 of file htdigindex.h.

Referenced by addDir(), cancelClicked(), generateIndex(), htdigExited(), slotDelayedStart(), and startHtdigProcess().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003