View Single Post
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#110
foobar, that would be the perfect solution. I drifted away from that because I was unable to trigger a fake powerbutton press from within a qt application. I don't think I have any code from that early but the principle was simple. Instead of running text2screen (see timenow source) this script should be run. Unfortunately, whatever I tried, the lockscreen didn't come on.

If you can find a less hacky way to bring the lockscreen in front, it would solve all our problems. Idea: maybe studying qtlockscreen code could help.

Another idea is to have a window without any controls on it and do the following process

1. unlock
2. draw window
3. wait for timeout
4. destroy the window
5. lock

This would be very nice as the qml code would reside on device and anybody could change the code to customize the screen as much as he wants. We could also have downloadable qml files (themes) but I fear that constructing the window will take too long. Also I don't know how to launch a window from a daemon. Of course I can launch another gui application but that will definitely take too long, unless the app is already running.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 2 Users Say Thank You to qwazix For This Useful Post: