You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1016 B
55 lines
1016 B
/****************************************************************************
|
|
** $Id$
|
|
**
|
|
** Copyright (C) 2002 Carsten Pfeiffer <pfeiffer@kde.org>
|
|
**
|
|
****************************************************************************/
|
|
|
|
#ifndef INDEXCLEANER_H
|
|
#define INDEXCLEANER_H
|
|
|
|
#include <tqobject.h>
|
|
#include <tqstringlist.h>
|
|
|
|
class TDEProcess;
|
|
|
|
namespace KMrml
|
|
{
|
|
class Config;
|
|
}
|
|
|
|
namespace KMrmlConfig
|
|
{
|
|
class IndexCleaner : public TQObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
|
|
public:
|
|
IndexCleaner( const TQStringList& dirs, const KMrml::Config *config,
|
|
TQObject *parent = 0, const char *name = 0 );
|
|
~IndexCleaner();
|
|
|
|
void start();
|
|
|
|
signals:
|
|
void advance( int value );
|
|
void finished();
|
|
|
|
private slots:
|
|
void slotExited( TDEProcess * );
|
|
|
|
private:
|
|
int m_stepSize;
|
|
void startNext();
|
|
|
|
TQStringList m_dirs;
|
|
const KMrml::Config *m_config;
|
|
TDEProcess *m_process;
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif // INDEXCLEANER_H
|