Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
Hi
I'm working on a program for the coding competition.
This should read the tracker db so that the user can easily select one track instead of manual typing the track name and artist name.
How can I read the tracker db in C++ w/ Qt?
I was looking at openmediaplayer's code, but wasn't able to figure out anything of this.
thanks in advance
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 415 | Thanked: 732 times | Joined on Jan 2009 @ Finland
#2
 

The Following User Says Thank You to timoph For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#3
Originally Posted by timoph View Post
Look into qt mobility's multimedia module

http://doc.qt.nokia.com/qtmobility/multimedia.html
http://doc.qt.nokia.com/qtmobility/qtmultimediakit.html
I looked at this and I'm not sure whether it's what I need
These module may be useful when it comes to playing audio or accessing the files at all.
Everything that has to be done is:
1. Show the db to the user // it's where I have the problem. I want to show the user all the tracks he has indexed.
2. The user selects the track (or tracks). Only track name and album artist (maybe track artist if album artist isn't presetn) are saved to a variable. (returned by the function)
3. After reading the base data, nothing more is done with the db / files.

So the problem is: how do programs like openmediaplayer look up the trackerdb and show it to the user?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#4
Originally Posted by marmistrz View Post

So the problem is: how do programs like openmediaplayer look up the trackerdb and show it to the user?
openmediaplayer and the builtin mediaplayer
are using the multimedia framework MAFW.
http://maemo.org/api_refs/5.0/5.0-final/mafw-shared/
 

The Following 2 Users Say Thank You to nicolai For This Useful Post:
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#5
libqttracker? You can try this for an example:
http://gitorious.org/iviapps/ivimusic

Last edited by jflatt; 2012-06-12 at 22:29.
 

The Following 2 Users Say Thank You to jflatt For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#6
marmistrz, are you trying to reinvent MussOrgsky and combine it with arename and dr14tmeter? maybe it would be faster to just pick up MussOrgsky development and add new functions to it? (renaming of files - functionality of arename, that is what is really missing ) or am I completely wrong and you want to code something different? anyway, you may see how MussOrgsky reads the data
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#7
Originally Posted by jflatt View Post
libqttracker? You can try this for an example:
http://gitorious.org/iviapps/ivimusic
Is libqttracker somewhere in the repos / on the device or does it have to be compiled? As I cant find it.

@misiak: no, I'll be doing something different.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#8
I think you'd want to compile it yourself. You might be able to find it in fremantle as a part of QtMobility, or the aforementioned MAFW. It looks like it was replaced in favor of libqtsparql in harmattan:
http://harmattan-dev.nokia.com/unsta...k_sources.html

Last edited by jflatt; 2012-06-14 at 21:23.
 

The Following User Says Thank You to jflatt For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#9
Originally Posted by jflatt View Post
I think you'd want to compile it yourself. You might be able to find it in fremantle as a part of QtMobility, or the aforementioned MAFW. It looks like it was replaced in favor of libqtsparql in harmattan:
http://harmattan-dev.nokia.com/unsta...k_sources.html
Thanks. QtTracker doesn't even compile cleanly. There are some strange dependencies missing.

Is there some library that is used in both Harmattan and Fremantle (so that the app would be suitable for apps.formeego or ovi beside extras-*)? As mafw has been removed in harmattan iirc
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#10
Did you try qdocumentgallery. Another option
would be, the tracker dbus api, but it heavily
changed from fremantle to harmattan.
 

The Following User Says Thank You to nicolai For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:55.