Re: [Tracker] Tracker DBus API



On Thu, 2010-07-22 at 10:39 +0300, Andrei Mirestean wrote:
Hello, 

Hi,

I am a Google Summer of Code student working for Maemo on the project
"Porting Canola to Maemo 5". One of the aims of the project is to
integrate Canola with Tracker.
Most of the things are currently working, but I have some problems
making some queries. Maemo5 and N900 are using Tracker (0.6.95, the
dbus method Tracker.GetVersion() returns 695). 

OK. We would recommend you try a more recent version of Tracker but if
it is for the N900, then you have to use 0.6.9x I guess.

How can I count the number of rows that will be returned by a
Tracker.Search.Query() call? Currently I'm using

Most queries from the old API return a GPtrArray which has a ->len
available. That should be what you want.

 Tracker.Metadata.GetCount() method but it fails in some situations.
For example to get the number of images I use GetCount('Images',
'File:Name', '') but it will return a wrong number if there are files
with the same name in different folders. Is there any field that holds
the fullpath that I should use instead of File:Name? 

There is, I am trying to remember what it is now, if memory serves, you
have to concatenate File:Path and File:Name.

-- 
Regards,
Martyn




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]