Add model files loading for B&W radios
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user