Hi,

XQSettingsManager is not a part of QtMobility so this mailing list is probably 
not the right forum to handle this issue. But I can answer you privately. Hold 
on.

Br,
Jaakko

>-----Original Message-----
>From: [email protected] 
>[mailto:[email protected]] On Behalf 
>Of [email protected]
>Sent: Tuesday, June 22, 2010 9:46 AM
>To: [email protected]
>Subject: [Qt-mobility-feedback] XQSettingsManager
>
>Hi,
>
>I have a question regarding XQSettingsManager use in S60 environment.
>
>I'm having problems with KSettingsDialPrefixText which is a 
>literal. In my unit test I want to set it (I read it in the 
>code that is tested) but the only type that XQSettingsManager 
>lets me set is int, not string.
>
>This doesn't work:
>    XQSettingsKey 
>dialPrefixString(XQSettingsKey::TargetCentralRepository, 
>KCRUidNetworkSettings.iUid, KSettingsDialPrefixText);
>    XQSettingsManager setManager;
>    int err = setManager.writeItemValue(dialPrefixString, 
>QString("00"));
>    qDebug() << err;
>    qDebug() << setManager.error();
>
>err is 0, setManager.error() returns 5 (BadTypeError).
>
>This doesn't give bad type error but how I'm supposed to read 
>the string out of int?
>    int err = setManager.writeItemValue(dialPrefixString, 1);
>    qDebug() << err;
>    qDebug() << setManager.error();
>
>err is 0 and setManager.error() returns 0.
>
>The value I want to write is "00". Am I using this API wrong 
>or what's going on?
>
>BR, Pasi
>_______________________________________________
>Qt-mobility-feedback mailing list
>[email protected]
>http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback
>
_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback

Reply via email to