Re: Access D-BUS through QML/JS

2012-01-17 Thread Dario Freddi
2012/1/17 Shaun Reich : >i'll have to leave the > screensaver dbus call in, until the solid gets some api for it. For everyone's records, in 4.8 Solid::PowerManagement::beginSuppressingScreenPowerManagement also inhibits screensaver as well, so Shaun you can remove that code path confidently and h

Re: Access D-BUS through QML/JS

2012-01-16 Thread Shaun Reich
On Mon, Jan 16, 2012 at 7:34 AM, Dario Freddi wrote: > Sorry, what's your rationale for having inhibition through another > applet? We've been striving to unify inhibition handling in 4.8 and it > would be a shame if we had other things to the board. The preferred > way to inhibit remains Solid::P

Re: Access D-BUS through QML/JS

2012-01-16 Thread Dario Freddi
2012/1/14 Shaun Reich : > On Thu, Jan 12, 2012 at 5:33 AM, Aaron J. Seigo wrote: >> this absolutely should be done via a service in a DataEngine, and i'd >> recommend adding it to PowerManagementService in the powermanagement engine >> in >> kde-workspace/plasma/generic/dataengines/powermanagemen

Re: Access D-BUS through QML/JS

2012-01-13 Thread Shaun Reich
On Thu, Jan 12, 2012 at 5:33 AM, Aaron J. Seigo wrote: > this absolutely should be done via a service in a DataEngine, and i'd > recommend adding it to PowerManagementService in the powermanagement engine in > kde-workspace/plasma/generic/dataengines/powermanagement/ Done done done. (the screensa

Re: Access D-BUS through QML/JS

2012-01-12 Thread Aaron J. Seigo
On Thursday, January 12, 2012 01:50:19 Shaun Reich wrote: > was wondering if and how I could call a remote method > (org.freedesktop.screensaver) through a pure QML/JS applet. Do I need > to use a dataengine? Should I make that dataengine C++ or JS? this absolutely should be done via a service in

Re: Access D-BUS through QML/JS

2012-01-11 Thread Viranch Mehta
On Thu, Jan 12, 2012 at 12:20 PM, Shaun Reich wrote: > was wondering if and how I could call a remote method > (org.freedesktop.screensaver) through a pure QML/JS applet. Do I need > to use a dataengine? Should I make that dataengine C++ or JS? > > one obvious approach would be to implement a serv

Access D-BUS through QML/JS

2012-01-11 Thread Shaun Reich
was wondering if and how I could call a remote method (org.freedesktop.screensaver) through a pure QML/JS applet. Do I need to use a dataengine? Should I make that dataengine C++ or JS? trying to make a simple applet to inhibit the screensaver (toggling). -- Shaun Reich, KDE Software Developer (