[PATCH] MTP mediadevice

Andy Kelk andy at mopoke.co.uk
Mon Jul 31 12:31:13 UTC 2006


(oops, posted this to amarok-devel @ sf... reposting here)

Hello,

I've been working recently on mediadevice support for MTP devices. It's
now at a stage where I am willing for its (limited) functionality to be
tested by other MTP device owners (if they're brave enough). My test
unit is a Creative Zen Vision:M so I'd be interested to see how it
performs with other MTP devices (particularly the non Creative ones).

The attached patch-set is for an MTP mediadevice. Currently it can read
files from the device (and populate a list-view), send new files to the
device and delete existing files from the device.

Code-wise, I've based it on the existing libnjb mediadevice as the two
libraries operate in fairly similar ways.

This is my first stab at Amarok code (and my first C++ in quite some
years) so be gentle with me. I think I've covered the obvious points but
am quite happy to get (constructive) criticism.

Functionality-wise, this is a short TODO of future enhancements that I
came up with:

- Support more than just mp3/wma files (devices can, I think, tell you
what formats they support)
- Allow users to browse using the folders/files view supplied by MTP
- Allow users to define the filtering in the view (artist/album, album
only, genre/artist/album, etc)
- Playlist handling
- Create Album/Artist folders on the device when copying tracks (allow a
format-string specification)
- Copy tracks from device to the host
- Other device info like battery level, etc


Andy


-------------- next part --------------
A non-text attachment was scrubbed...
Name: amarok-mtp-mediadevice.tar.gz
Type: application/gzip
Size: 8470 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/amarok/attachments/20060731/648870b7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amarok-mtp-mediadevice.patch
Type: application/octet-stream
Size: 3445 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/amarok/attachments/20060731/648870b7/attachment.obj>


More information about the Amarok mailing list