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.
filelight/src/part/scan.h

54 lines
973 B

//Author: Max Howell <max.howell@methylblue.com>, (C) 2003-4
//Copyright: See COPYING file that comes with this distribution
#ifndef SCAN_H
#define SCAN_H
#include <kurl.h>
#include <tqobject.h>
class TQThread;
class Directory;
template<class T> class Chain;
namespace Filelight
{
class ScanManager : public TQObject
{
Q_OBJECT
TQ_OBJECT
friend class LocalLister;
friend class RemoteLister;
public:
ScanManager( TQObject *tqparent );
virtual ~ScanManager();
bool start( const KURL& );
bool running() const;
static uint files() { return s_files; }
public slots:
bool abort();
void emptyCache();
signals:
void completed( Directory* );
void aboutToEmptyCache();
private:
static bool s_abort;
static uint s_files;
KURL m_url;
TQThread *m_thread;
Chain<Directory> *m_cache;
virtual void customEvent( TQCustomEvent* );
};
}
#endif