Song: Add rejected extensions

This commit is contained in:
Jonas Kvinge 2024-08-24 21:10:27 +02:00
parent b914d9aaba
commit 74f0f885b9
2 changed files with 13 additions and 0 deletions

View File

@ -235,6 +235,18 @@ const QStringList Song::kAcceptedExtensions = QStringList() << QStringLiteral("w
<< QStringLiteral("spc")
<< QStringLiteral("vgm");
const QStringList Song::kRejectedExtensions = QStringList() << QStringLiteral("tmp")
<< QStringLiteral("tar")
<< QStringLiteral("gz")
<< QStringLiteral("bz2")
<< QStringLiteral("xz")
<< QStringLiteral("tbz")
<< QStringLiteral("tgz")
<< QStringLiteral("z")
<< QStringLiteral("zip")
<< QStringLiteral("rar")
<< QStringLiteral("wvc");
struct Song::Private : public QSharedData {
explicit Private(Source source = Source::Unknown);

View File

@ -138,6 +138,7 @@ class Song {
static const QStringList kArticles;
static const QStringList kAcceptedExtensions;
static const QStringList kRejectedExtensions;
Song(const Source source = Source::Unknown);
Song(const Song &other);