×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2010
    Location
    Orleans, France
    Posts
    17

    Symbian Publish & subscribe: persIstent storage?

    Hi,

    I'm using Qt SDK 1.1 beta to develop on Symbian. I wanted to use Publish & Subscribe to store my app settings. I manage to do it by using RProperty type of store but in this case my data are lost after a reboot. So I though of using CRepository instead but no data are stored at all in this case, not even between reboots.

    My qcrml file is like this:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <repository target="CRepository" uidValue="0xE3397C00">
    <key ref="/test/login" int="0x1" type="string"/>
    <key ref="/test/password" int="0x2" type="string"/>
    <key ref="/test/server" int="0x3" type="string"/>
    <key ref="/test/port" int="0x4" type="string"/>
    <key ref="/test/instance" int="0x5" type="string"/>
    </repository>
    The way I access the store is exactly the same way that works with RProperty. Should I change something to use CRepository? I've added ReadDeviceData and WriteDeviceData, just in case.

    And if that's not the correct way, how to easily store config data on Symbian?

    Thanks for your help

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Symbian Publish & subscribe: persIstent storage?

    QSettings, perhaps?

  3. #3
    Registered User
    Join Date
    May 2010
    Location
    Orleans, France
    Posts
    17

    Re: Symbian Publish & subscribe: persIstent storage?

    Yes, I can try. I thought this was only for Windows, MacOS and Unix but I can try...
    My problem is also that I wanted to use Pub&Sub for IPC, as those values can be set by one UI and read by a server...

    Thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Symbian Publish & subscribe: persIstent storage?

    I really don't see how the Central Repository scheme would work as documented in the Mobility API. Even for Symbian C++ developers the CRs are largely out of reach as the framework wasn't really designed for every application to use it. The installation process for new CRs is complicated and the definition process not documented, at least not in the SDK. Even the write methods of the CRepository API were classified as "internal technology".

    Bug report created at QTMOBILITY-1437

    By default QSettings stores its data in an unprotected location so both processes should be able to access it.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Registered User
    Join Date
    May 2010
    Location
    Orleans, France
    Posts
    17

    Re: Symbian Publish & subscribe: persIstent storage?

    Thanks! That clarifies things!

Similar Threads

  1. Symbian Publish & Subscribe: No notification of changes in SDK1.1 beta
    By hurenkam in forum [Archived] Qt Mobility Project
    Replies: 9
    Last Post: 2011-03-11, 07:50
  2. 使用Qt Mobility的发布和订阅(Publish&Subscribe)
    By Cxt_programmer in forum [Archived] Qt General ( Qt技术)
    Replies: 1
    Last Post: 2010-09-21, 09:07
  3. Publish & Subscribe problem
    By sathyanand in forum Symbian
    Replies: 7
    Last Post: 2010-06-28, 21:10
  4. Publish & Subscribe key for
    By patrickfrei in forum Symbian
    Replies: 1
    Last Post: 2007-11-01, 09:42
  5. Persistent storage & MIDlet signing
    By dima.p in forum Mobile Java General
    Replies: 9
    Last Post: 2006-11-26, 16:01

Posting Permissions

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