View topic - Auto logout in Photon Application

Auto logout in Photon Application

Isn't the name clear?

Auto logout in Photon Application

Postby harish » Thu Oct 14, 2010 7:10 am


I am developing an Photon GUI application which has login and logout option.

Want to implement AutoLogOff:When there is no user input (from Keyboard/Mouse) for cetain time (let say for 2 minutes).

Please suggest me on how to check from the Photon application whether the user has given the input(from Keyboard/Mouse) or not.

New Member
Posts: 4
Joined: Fri Feb 19, 2010 6:41 am

RE: Auto logout in Photon Application

Postby maschoen » Thu Oct 14, 2010 12:05 pm

There is a Photon widget called a Timer. You could set this timer for the timeout amount, and then reset it whenever you get user input. Of course you might also want to detect more subtle activity such as mouse movements. This will require a deeper understanding of how Photon works. You might want to detect such activity transparently. That is, detect it but let it pass.
QNX Master
Posts: 2679
Joined: Wed Jun 25, 2003 5:18 pm

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests