[Qt-mobility-feedback] Example Publish&Subscribe for display settings?
Aaron McCarthy
aaron.mccarthy at nokia.com
Tue Jul 13 02:38:48 CEST 2010
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.
> 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,
--
Aaron McCarthy, Software Engineer
Nokia, Qt Development Frameworks
Level 1, 53 Brandl St,
Brisbane Technology Park, Eight Mile Plains,
QLD, Australia, 4113
http://qt.nokia.com/
More information about the Qt-mobility-feedback
mailing list