00001 /* 00002 * ============================================================================ 00003 * Name : AknKeyLock.h 00004 * Part of : UI Framework Core / AVKON 00005 * Description : Avkon keylock client class definition. 00006 * Version : %version: % 00007 * 00008 * Copyright © 2002-2007 Nokia. All rights reserved. 00009 * This material, including documentation and any related computer 00010 * programs, is protected by copyright controlled by Nokia. All 00011 * rights are reserved. Copying, including reproducing, storing, 00012 * adapting or translating, any or all of this material requires the 00013 * prior written consent of Nokia. This material also contains 00014 * confidential information which may not be disclosed to others 00015 * without the prior written consent of Nokia. 00016 * ============================================================================ 00017 * Template version: 4.1 00018 */ 00019 00020 #ifndef __AKNKEYLOCK_H__ 00021 #define __AKNKEYLOCK_H__ 00022 00023 #include <e32base.h> 00024 #include <aknnotifystd.h> 00025 00032 class RAknKeyLock : public RNotifier 00033 { 00034 public: 00038 IMPORT_C void EnableKeyLock(); 00039 00043 IMPORT_C void DisableKeyLock(); 00044 00051 IMPORT_C TBool IsKeyLockEnabled(); 00052 00058 IMPORT_C void EnableSoftNotifications(TBool aEnable); 00059 00063 IMPORT_C void OfferKeyLock(); 00064 00068 IMPORT_C void CancelAllNotifications(); 00069 00076 IMPORT_C void EnableAutoLockEmulation(); 00077 00083 IMPORT_C void DisableWithoutNote(); 00084 00090 IMPORT_C void EnableWithoutNote(); 00091 00092 private: 00093 void SendMessage(TKeyLockNotifierReason aMessage); 00094 }; 00095 00102 class RAknKeylock2 : public RAknKeyLock 00103 { 00104 public: 00112 IMPORT_C TInt Connect(); 00113 }; 00114 00115 // __AKNKEYLOCK_H__ 00116 #endif