Add model files loading for B&W radios

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:11 +01:00
parent 3eb55af228
commit 79181d1484
9 changed files with 85 additions and 40 deletions
+10
View File
@@ -57,6 +57,16 @@ bool SdcardFormat::writeFile(const QByteArray & data, const QString & filename)
return true;
}
bool SdcardFormat::getFileList(std::list<std::string>& filelist)
{
QDir dir(filename);
QStringList ql = dir.entryList();
for (const auto& str : ql) {
filelist.push_back(str.toStdString());
}
return true;
}
bool SdcardStorageFactory::probe(const QString & path)
{
return QDir(path).exists();