Monday, November 24, 2008

Locking and Unlocking the Keypad in symbian c++

Locking and Unlocking the Keypad in Symbian c++

HEADER
    #include <aknkeylock.h>
 
LIB  
    avkon.lib 

Code to Lock the Keypad:
RAknKeyLock objKeyLock ;
objKeyLock.Connect();
if(!objKeyLock.IsKeyLockEnabled())
objKeyLock.EnableKeyLock();
objKeyLock.Close();
Code to Unlock the Keypad
RAknKeyLock objKeyLock ;
objKeyLock.Connect();
if(objKeyLock.IsKeyLockEnabled())
objKeyLock.DisableKeyLock();
objKeyLock.Close();
Regards,
Kannabiran.

No comments: