[Qt-mobility-feedback] Example Publish&Subscribe for display settings?
Lorn Potter
lorn.potter at nokia.com
Tue Jul 13 02:52:07 CEST 2010
On 13/07/10 10:38 AM, Mccarthy Aaron (Nokia-MS-Qt/Brisbane) wrote:
> On Tuesday 13 July 2010 05:50:26 ext Tico Ballagas wrote:
>> I'm having difficulties wrapping my head around using P&S to control gconf
>> settings. Specifically, I'd like to change the display sleep and dim
>> timeouts on the N900 while my QML application is running (using sensors
>> for input).
>
> The P&S backend on Maemo is currently read only. Have you looked at classes
> provided by the System Information module, specifically the QSystemScreenSaver
> class.
The QSystemScreenSaver will only just inhibit the screen saver for the
life of the QSystemScreenSaver object.
>
>> I found the following example for subscribing in QML:
>>
>> http://doc.qt.nokia.com/qtmobility-1.0/battery-charge.html
>>
>> how would I modify the display sleep settings? Ideally I would do this is
>> a cross platform (maemo + symbian) way... Any tips?
>
> There isn't a shared ontology between platforms. Your application would need
> to know the path to the published settings. These are likely to be different
> on different platforms.
>
> Set the path property of the ValueSpaceSubscriber objects to the appropriate
> value. The value of the key can be accessed via the value property.
>
> Cheers,
>
--
Lorn 'ljp' Potter
Senior Software Engineer, Nokia, Qt Development Frameworks
More information about the Qt-mobility-feedback
mailing list