Hi, On Fri, May 13, 2011 at 9:43 AM, yinxb <[email protected]> wrote: > Hi Ivan > > > If USB device or SD card insert,I will get the signal of mount(new > content) and run the query again.
This is not the right solution. The very first problem you will find, is that videos downloaded with the browser (or coming via BT or by any other mean) won't appear in your application! Tracker provides a much better mechanism to handle this situation: the signals per content. Your application can receive a signal when something appears/disappears in certain content type. > Is the tracker indexing automatic if new attached device mounts? Yes > Is this indexing process costs some time? Yes, it will take some time (depending on the amount of content and if it is the first time we see that SD card). >> well, first this is libqttracker code. That library is deprecated. You >> should use qsparql (Much simpler also). Qsparql + signals or live >> models will probably solve your problem. > Yes,I work on the Meego-handset platform using libqttracker. > Would you pls tell me Where I can find some example code about the > Qsparql + signals and live models? QSparql has its doxygen documentation, but i think it is not published in any public server. You can take qsparql-doc. The code is very well documented. Here you have some examples: https://maemo.gitorious.org/maemo-af/qsparql/trees/master/examples/sparql Note that in Meego, you should use the TRACKER_DIRECT driver to get the best performance. The examples use only the TRACKER driver. QtContacts-Tracker is doing heavy use of QSparql and its signals. Probably their code can give you some ideas. About the signals, you need to use also qsparql-tracker-extensions (because it is a tracker specific feature). Again, check the documentation in the packages. Finally the Live Model, Adrian from Igalia did this presentation that is a good introduction to it: http://people.igalia.com/aperez/files/qsparql.pdf We are also available in IRC, Join the #tracker channel in GIMPnet (or #meego in Freenode) and we can help you in a more interactive fashion. Regards, Ivan _______________________________________________ tracker-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/tracker-list
