ukui-search/libsearch/index/traverse_bfs.h

24 lines
455 B
C
Raw Normal View History

2020-12-30 15:31:36 +08:00
#ifndef TRAVERSE_BFS_H
#define TRAVERSE_BFS_H
#include <QDebug>
#include <QDir>
#include <QQueue>
class Traverse_BFS
{
public:
void Traverse();
virtual void DoSomething(const QFileInfo&) = 0;
void setPath(const QString&);
protected:
explicit Traverse_BFS(const QString&);
2020-12-30 15:31:36 +08:00
private:
Traverse_BFS(const Traverse_BFS&) = delete;
void operator=(const Traverse_BFS&) = delete;
2020-12-30 15:31:36 +08:00
QString path = "/home";
};
#endif // TRAVERSE_BFS_H