| 218 | } |
| 219 | |
| 220 | void Manager::addToBackgroundParser(const QString& path, TopDUContext::Features features) |
| 221 | { |
| 222 | QFileInfo info(path); |
| 223 | |
| 224 | if (info.isFile()) { |
| 225 | qDebug() << "adding file" << path; |
| 226 | QUrl pathUrl = QUrl::fromLocalFile(info.canonicalFilePath()); |
| 227 | |
| 228 | m_waiting << pathUrl; |
| 229 | ++m_total; |
| 230 | |
| 231 | KDevelop::DUChain::self()->updateContextForUrl(KDevelop::IndexedString(pathUrl), features, this); |
| 232 | |
| 233 | } else if (info.isDir()) { |
| 234 | QDirIterator contents(path); |
| 235 | while (contents.hasNext()) { |
| 236 | QString newPath = contents.next(); |
| 237 | if (!newPath.endsWith(QLatin1Char('.'))) |
| 238 | addToBackgroundParser(newPath, features); |
| 239 | } |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | QSet<QUrl> Manager::waiting() |
| 244 | { |
nothing calls this directly
no test coverage detected