android
  #1  
Old 09-15-2010, 02:45 PM
fllaim fllaim is offline
Junior Member
 
Join Date: Sep 2010
Location: Turkiye
Posts: 1
Default A MTP manager?

Hi there,
Nautilus and rhythmbox on gnome has a weak support then I decided to develop my own manager with gui. It will be make easier to send songs, albums, covers, playlists. But I see current libmtp api is not very useful.
I ask for experienced developer for libmtp. I need to find a way to list files in a folder without crash my YP-P2
I currently implemented device selector and a folder lister, but things going slow. Because it is first time I use libmtp and Qt.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 09-17-2010, 03:52 PM
meetooman's Avatar
meetooman meetooman is offline
Member
 
Join Date: Oct 2009
Posts: 488
Default

It's a great idea to create a MTP manager for Linux! Usable MTP tools are clearly missing. I do the same and it's fun.

I think that the best programmers on this forum are surely creating Lua games for the Creative Zen X-Fi2. So I may be the only one here programming with libmtp to try to help you.

I disagree with you by thinking that the libmtp documentation is really good. The official libmtp documentation provides great examples of code to learn how to use the library.
Look for the html page: libmtp-1.0.x/doc/html/examples.html.
The example sources reveal the magic.

About your present issue:
Be aware that MTP folders IDs are also part of file attributes. Study the LIBMTP_file_struct and you will see that each file has a parent_id field. That's its parent folder identification.
So once you know that the folder you want to explore has this property for example: folder_id = 1540, you just have to query for the file list (LIBMTP_Get_Filelisting_With_Callback) and filter files with the attribute parent_id = 1540 to get files from this folder.

Have fun.
Reply With Quote

  #3  
Old 11-28-2011, 04:30 PM
zeuhl zeuhl is offline
Junior Member
 
Join Date: May 2011
Posts: 1
Default

Any chance to get a feedback from your development fllaim ?
I'm pretty interested in a mtp support for my Debian
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:13 AM.