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.
36 lines
737 B
36 lines
737 B
14 years ago
|
//Author: Max Howell <max.howell@methylblue.com>, (C) 2003-4
|
||
|
//Copyright: See COPYING file that comes with this distribution
|
||
|
|
||
|
#ifndef LOCALLISTER_H
|
||
|
#define LOCALLISTER_H
|
||
|
|
||
|
#include <qthread.h>
|
||
|
|
||
|
class Directory;
|
||
|
template<class T> class Chain;
|
||
|
|
||
|
namespace Filelight
|
||
|
{
|
||
|
class LocalLister : public QThread
|
||
|
{
|
||
|
public:
|
||
|
LocalLister( const QString &path, Chain<Directory> *cachedTrees, QObject *parent );
|
||
|
|
||
|
static bool readMounts();
|
||
|
|
||
|
private:
|
||
|
QString m_path;
|
||
|
Chain<Directory> *m_trees;
|
||
|
QObject *m_parent;
|
||
|
|
||
|
private:
|
||
|
virtual void run();
|
||
|
Directory *scan( const QCString&, const QCString& );
|
||
|
|
||
|
private:
|
||
|
static QStringList s_localMounts, s_remoteMounts; //TODO namespace
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|