22 if(!data.takeFirst().contains(
"[playlist]", Qt::CaseInsensitive))
32 for(
const QString &line :
qAsConst(data))
34 if(regx1.
match(line) > -1)
45 else if(regx2.
match(line) > -1)
81 data << QString(
"[playlist]");
84 for(
int i = 0; i < items.count(); ++i)
90 data << QString(
"File%1=%2").arg(count).arg(song.path());
91 data << QString(
"Title%1=%2").arg(count).arg(song.name());
96 data <<
"NumberOfEntries=" + QString::number(count);
virtual bool readBuffer(MusicSongItemList &items) overridefinal
QString captured(int index) const
virtual bool writeBuffer(const MusicSongItemList &items) overridefinal
TTK_MODULE_EXPORT QStringList split(const QString &value, const QString &key=TTK_DEFAULT_STR)
The class of the read write interface.
The class of the music song item.
The class of the regular expression.
The class of the music song info.
int match(const QString &str, int pos=0)
#define TTK_ERROR_STREAM(msg)
The class of the ttk file interface.
static qint64 formatDuration(const QString &time) noexcept