https://bugs.kde.org/show_bug.cgi?id=462059

--- Comment #15 from Harald Sitter <sit...@kde.org> ---
Git commit 87aeb0d9a61cd8a7e7041dc430395ed2cbf01c66 by Harald Sitter.
Committed on 21/03/2023 at 15:03.
Pushed by sitter into branch 'master'.

mtp: use LIBMTP_Get_Children to implement async listing

LIBMTP_Get_Children returns a list of object ids within a folder, which
returns loads faster than the existing files listing API. once we have
the list of ids we can asynchronously resolve the actual file entries
for them and emit them as they appear. this allows us to enumerate
entries as they appear rather than all at once.

to facilitate this behavior a new function getFilesAndFolders2 was
introduced that returns a qdbusobjectpath. under this path a new
MTPLister object is registered that emits the listing.

M  +3    -0    CMakeLists.txt
M  +6    -0    mtp/CMakeLists.txt
M  +30   -2    mtp/kio_mtp.cpp
M  +2    -0    mtp/kiod_module/CMakeLists.txt
A  +20   -0    mtp/kiod_module/memory.h     [License: LGPL(3+eV) LGPL(v3.0)
LGPL(v2.1)]
A  +110  -0    mtp/kiod_module/mtpfile.h     [License: GPL(v2.0+)]
A  +42   -0    mtp/kiod_module/mtplister.cpp     [License: LGPL(3+eV)
LGPL(v3.0) LGPL(v2.1)]
A  +36   -0    mtp/kiod_module/mtplister.h     [License: LGPL(3+eV) LGPL(v3.0)
LGPL(v2.1)]
M  +103  -139  mtp/kiod_module/mtpstorage.cpp
M  +17   -2    mtp/kiod_module/mtpstorage.h
M  +8    -0    mtp/shared/CMakeLists.txt
A  +4    -0    mtp/shared/config-mtp.h.cmake
M  +10   -0    mtp/shared/kmtpstorageinterface.cpp
M  +1    -0    mtp/shared/kmtpstorageinterface.h
A  +22   -0    mtp/shared/org.kde.kmtp.Lister.xml
M  +5    -0    mtp/shared/org.kde.kmtp.storage.xml

https://invent.kde.org/network/kio-extras/commit/87aeb0d9a61cd8a7e7041dc430395ed2cbf01c66

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to