Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/krquery.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
126 | void setRecursive(bool flag) { recurse = flag; } | 126 | void setRecursive(bool flag) { recurse = flag; } | ||
127 | // gets the recursive flag | 127 | // gets the recursive flag | ||
128 | bool isRecursive() { return recurse; } | 128 | bool isRecursive() { return recurse; } | ||
129 | // sets whether to follow symbolic links | 129 | // sets whether to follow symbolic links | ||
130 | void setFollowLinks(bool flag) { followLinksP = flag; } | 130 | void setFollowLinks(bool flag) { followLinksP = flag; } | ||
131 | // gets whether to follow symbolic links | 131 | // gets whether to follow symbolic links | ||
132 | bool followLinks() { return followLinksP; } | 132 | bool followLinks() { return followLinksP; } | ||
133 | 133 | | |||
134 | // sets the folder names which the searcher will exclude from traversing | ||||
135 | void setExcludeFolderNames(const QStringList &urls); | ||||
abika: `QStringList` here and everywhere else | |||||
136 | // gets the folder names which the searcher excludes | ||||
137 | const QStringList excludeFolderNames() { return excludedFolderNames; } | ||||
abika: better name it `ignoredPaths()` here and everywhere else | |||||
Current name is better because it's really about folder names, not whole paths. nmel: Current name is better because it's really about folder names, not whole paths. | |||||
134 | // sets the folders where the searcher will search | 138 | // sets the folders where the searcher will search | ||
135 | void setSearchInDirs(const QList<QUrl> &urls); | 139 | void setSearchInDirs(const QList<QUrl> &urls); | ||
136 | // gets the folders where the searcher searches | 140 | // gets the folders where the searcher searches | ||
137 | const QList<QUrl> &searchInDirs() { return whereToSearch; } | 141 | const QList<QUrl> &searchInDirs() { return whereToSearch; } | ||
138 | // sets the folders where search is not permitted | 142 | // sets the folders where search is not permitted | ||
139 | void setDontSearchInDirs(const QList<QUrl> &urls); | 143 | void setDontSearchInDirs(const QList<QUrl> &urls); | ||
140 | // gets the folders where search is not permitted | 144 | // gets the folders where search is not permitted | ||
141 | const QList<QUrl> &dontSearchInDirs() { return whereNotToSearch; } | 145 | const QList<QUrl> &dontSearchInDirs() { return whereNotToSearch; } | ||
Show All 39 Lines | 162 | protected: | |||
181 | 185 | | |||
182 | QString type; | 186 | QString type; | ||
183 | QStringList customType; | 187 | QStringList customType; | ||
184 | 188 | | |||
185 | bool inArchive; // if true- search in archive. | 189 | bool inArchive; // if true- search in archive. | ||
186 | bool recurse; // if true recurse ob sub-dirs... | 190 | bool recurse; // if true recurse ob sub-dirs... | ||
187 | bool followLinksP; | 191 | bool followLinksP; | ||
188 | 192 | | |||
193 | QStringList excludedFolderNames; // substrings of paths where not to search | ||||
abika: `ignoredPaths` | |||||
189 | QList<QUrl> whereToSearch; // directories to search | 194 | QList<QUrl> whereToSearch; // directories to search | ||
190 | QList<QUrl> whereNotToSearch; // directories NOT to search | 195 | QList<QUrl> whereNotToSearch; // directories NOT to search | ||
191 | 196 | | |||
192 | signals: | 197 | signals: | ||
193 | void status(const QString &name); | 198 | void status(const QString &name); | ||
194 | void processEvents(bool &stopped); | 199 | void processEvents(bool &stopped); | ||
195 | 200 | | |||
196 | private: | 201 | private: | ||
Show All 36 Lines |
QStringList here and everywhere else