| 26 | {} |
| 27 | |
| 28 | QString ContextManager::readFile(const QString &filePath) const |
| 29 | { |
| 30 | QFile file(filePath); |
| 31 | if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { |
| 32 | LOG_MESSAGE(QString("Failed to open file for reading: %1 - %2") |
| 33 | .arg(filePath, file.errorString())); |
| 34 | return QString(); |
| 35 | } |
| 36 | |
| 37 | QTextStream in(&file); |
| 38 | QString content = in.readAll(); |
| 39 | file.close(); |
| 40 | |
| 41 | return content; |
| 42 | } |
| 43 | |
| 44 | QList<ContentFile> ContextManager::getContentFiles(const QStringList &filePaths) const |
| 45 | { |
nothing calls this directly
no outgoing calls
no test coverage detected