28 lines
614 B
C++
28 lines
614 B
C++
#ifndef SEARCHDIR_H
|
|
#define SEARCHDIR_H
|
|
#include <QStringList>
|
|
class SearchDir
|
|
{
|
|
public:
|
|
enum ErrorInfo{
|
|
Successful = 0,
|
|
Duplicated,
|
|
UnderBlackList,
|
|
RepeatMount1,
|
|
RepeatMount2,
|
|
NotExists
|
|
};
|
|
SearchDir(const QString& path, bool generateBlackList = true);
|
|
ErrorInfo error();
|
|
QString errorString();
|
|
QString getPath() const;
|
|
void setBlackList(const QStringList& blackList);
|
|
QStringList getBlackList() const;
|
|
private:
|
|
QString m_path;
|
|
QStringList m_blackList;
|
|
ErrorInfo m_error = ErrorInfo::Successful;
|
|
};
|
|
|
|
#endif // SEARCHDIR_H
|