Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1710

QValueSpacePublisher::setValue doesn't work with an empty name on Symbian Settings Layer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.2.x
    • Publish & Subscribe
    • None

      QValueSpacePublisher::setValue documentation says: "If name is empty, this call will set the value of this publisher's path." This doesn't work on Symbian Settings Layer.

      Code to reproduce the problem ("/path/name" has been defined in .qcrml file as a RProperty):

          QValueSpaceSubscriber subscriber("/path/name");
      
          // This works:
          QValueSpacePublisher publisher("/path");
          publisher.setValue("name", 123);
          publisher.sync();
          QCOMPARE(subscriber.value().toInt(), 123);
          
          // But this fails:
          QValueSpacePublisher publisher2("/path/name");
          publisher2.setValue(QString(), 234);
          publisher2.sync();
          QCOMPARE(subscriber.value().toInt(), 234);
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            satu.m.makela satu makela
            ahaapane Aapo Haapanen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes