Commit 6c6eec30 authored by Harald Sitter's avatar Harald Sitter
Browse files

mtp: add a bunch of todos for filetype mapping improvements

parent ccad847a
Pipeline #119704 passed with stage
in 3 minutes and 3 seconds
......@@ -55,6 +55,11 @@ static LIBMTP_filetype_t getFiletype(const QString &filename)
const QString ptype = filename.split(QLatin1Char('.')).last();
// TODO: use QMimeDatabase and query the mimetype from there (still from the extension presumably)
// TODO: merge the mime mapping tables from this function and the reverse function
// TODO: map video/* and text/* and audio/* to the generic types (e.g. LIBMTP_FILETYPE_UNDEF_VIDEO) when not otherwise mapped
// (NOTE: from glancing at the libmtp code mapping a file type isn't actually all that useful TBH, it only appears used when
// no destination folder was given?)
/* This need to be kept constantly updated as new file types arrive. */
if (ptype == QLatin1String("wav")) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment