Re: [Tracker] cannot tracker the attached storage(SD card)



Hi!

On 5/13/11, yinxb <yinxb neusoft com> wrote:
Hi All

  case 2:launch the application first,and then insert the SD card,I
cannot get the attached SD card source(only tablet content can be
trackered).I am sure the SD card is mounted.

are you running the query again? or using the signals of new content?
or using any live model? If not... there is no way your application
can know something has changed in tracker.


code using to tracker:
====================
static const QString SqlGetAllVideos = "SELECT nie:url(?video)
WHERE{?video a nmm:Video}";
result = ::tracker()->rawSparqlQuery(SqlGetAllVideos);
====================

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.

Ivan

Anyone can give me a hint?
Any insight would be appreciated.






---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s)
is intended only for the use of the intended recipient and may be
confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
of this communication is
not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this
communication in error,please
immediately notify the sender by return e-mail, and delete the original
message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list




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