1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

New FileSink channel plugin

This commit is contained in:
f4exb
2020-08-06 10:46:49 +02:00
parent 678ecc7bd0
commit 081e81e9d9
24 changed files with 3618 additions and 25 deletions
+6 -2
View File
@@ -31,9 +31,9 @@ FileRecordInterface::~FileRecordInterface()
QString FileRecordInterface::genUniqueFileName(unsigned int deviceUID, int istream)
{
if (istream < 0) {
return QString("rec%1_%2.sdriq").arg(deviceUID).arg(QDateTime::currentDateTimeUtc().toString("yyyy-MM-ddTHH_mm_ss_zzz"));
return QString("rec%1.%2.sdriq").arg(deviceUID).arg(QDateTime::currentDateTimeUtc().toString("yyyy-MM-ddTHH_mm_ss_zzz"));
} else {
return QString("rec%1_%2_%3.sdriq").arg(deviceUID).arg(istream).arg(QDateTime::currentDateTimeUtc().toString("yyyy-MM-ddTHH_mm_ss_zzz"));
return QString("rec%1_%2.%3.sdriq").arg(deviceUID).arg(istream).arg(QDateTime::currentDateTimeUtc().toString("yyyy-MM-ddTHH_mm_ss_zzz"));
}
}
@@ -48,6 +48,10 @@ FileRecordInterface::RecordType FileRecordInterface::guessTypeFromFileName(const
if (extension == "sdriq")
{
if (dotBreakout.length() > 1) {
dotBreakout.removeLast();
}
fileBase = dotBreakout.join(QLatin1Char('.'));
return RecordTypeSdrIQ;
}