maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Using the tracker db in C++ (https://talk.maemo.org/showthread.php?t=84849)

marmistrz 2012-06-12 17:35

Using the tracker db in C++
 
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

timoph 2012-06-12 17:42

Re: Using the tracker db in C++
 
Look into qt mobility's multimedia module

http://doc.qt.nokia.com/qtmobility/multimedia.html
http://doc.qt.nokia.com/qtmobility/qtmultimediakit.html

marmistrz 2012-06-12 18:26

Re: Using the tracker db in C++
 
Quote:

Originally Posted by timoph (Post 1221020)

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?

nicolai 2012-06-12 22:04

Re: Using the tracker db in C++
 
Quote:

Originally Posted by marmistrz (Post 1221044)

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/

jflatt 2012-06-12 22:12

Re: Using the tracker db in C++
 
libqttracker? You can try this for an example:
http://gitorious.org/iviapps/ivimusic

misiak 2012-06-12 23:04

Re: Using the tracker db in C++
 
marmistrz, are you trying to reinvent MussOrgsky and combine it with arename and dr14tmeter? :D 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;)

marmistrz 2012-06-13 07:22

Re: Using the tracker db in C++
 
Quote:

Originally Posted by jflatt (Post 1221112)
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.

jflatt 2012-06-14 21:20

Re: Using the tracker db in C++
 
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

marmistrz 2012-06-15 18:27

Re: Using the tracker db in C++
 
Quote:

Originally Posted by jflatt (Post 1222041)
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

nicolai 2012-06-15 19:13

Re: Using the tracker db in C++
 
Did you try qdocumentgallery. Another option
would be, the tracker dbus api, but it heavily
changed from fremantle to harmattan.


All times are GMT. The time now is 04:15.

vBulletin® Version 3.8.8