×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    2

    Custom Landmarks

    If I have understood correctly, the best way to implement Google API style of custom pins is to use Landmark APIs 'cause this way one would get all the QML plugins and filtering.

    However, I'm not that sure if I would like to import my custom "landmarks" into the default landmark store as there will be hundreds of thousands of them eventually.

    There is very little info about steps required in implementing your own QLandmarkManagerEngine which I suppose is needed here.

    To implement your own plugin, you need to subclass QLandmarkManagerEngine and provide the implmementations for the virtual functions, and then create a QLandmarkMangerEngineFactory subclass that will instantiate your particular engine implementation.
    http://doc.qt.nokia.com/qtmobility/l...html#landmarks

    To add more into the mix, is that I have a background application that is inserting new "landmarks" into a SQLite database, this application should be independent of the UI app. Again, if I have understood correctly there are two ways of sharing the SQLite database:
    1) placing the file into a public folder on the phone and using read-only from the UI app, while bg app is writing to it
    2) creating a QService wrapper for it

    So in the end, I'm looking into implementing a QLandmarkManagerEngine with QService as a backend, right? Any pointers to something that might be helpful, or just if this approach is feasible?

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: Custom Landmarks

    Hi

    you can can have multiple connections to one database with QSqlDatabase (that actually represents a connection)

    If you are going to share your db among several applications -- you will need to implement a db server provider that will be discovered and instantiated by your application client via mobility service framework. Otherwise implement db manager singleton class within your application -- the most cheapest and sufficient solution.

Similar Threads

  1. Map and landmarks
    By njzk2 in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-02-22, 15:46
  2. Landmarks
    By Smeebly in forum Mobile Java General
    Replies: 1
    Last Post: 2010-03-10, 15:30
  3. Landmarks API
    By esoteric in forum Symbian
    Replies: 4
    Last Post: 2009-09-16, 09:09
  4. Does N95 map use landmarks
    By danielnilsson in forum Mobile Java General
    Replies: 2
    Last Post: 2007-04-16, 06:50
  5. Landmarks
    By palak_shah_23 in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-06-10, 07:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×