00001 /* 00002 * ============================================================================ 00003 * Name : AknKeyLock.h 00004 * Part of : Avkon 00005 * 00006 * Description: 00007 * Version: 00008 * 00009 * Copyright © 2002-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. All rights are reserved. Copying, 00013 * including reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia Corporation. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia Corporation. 00018 * ============================================================================ 00019 */ 00020 // AKNKEYLOCK.H 00021 // 00022 // Copyright (c) 1997-2001 Symbian Ltd. All rights reserved. 00023 // 00024 00025 // Avkon KeyLock Client 00026 00027 00028 #if !defined(__AKNKEYLOCK_H__) 00029 #define __AKNKEYLOCK_H__ 00030 00031 #include <e32base.h> 00032 00033 #include <aknnotifystd.h> 00034 00039 class RAknKeyLock : public RNotifier 00040 { 00041 public: 00042 00046 IMPORT_C void EnableKeyLock(); 00047 00051 IMPORT_C void DisableKeyLock(); 00052 00058 IMPORT_C TBool IsKeyLockEnabled(); 00059 00064 IMPORT_C void EnableSoftNotifications(TBool aEnable); 00065 00069 IMPORT_C void OfferKeyLock(); 00070 00074 IMPORT_C void CancelAllNotifications(); 00080 IMPORT_C void EnableAutoLockEmulation(); 00085 IMPORT_C void DisableWithoutNote(); 00090 IMPORT_C void EnableWithoutNote(); 00091 private: 00092 void SendMessage(TKeyLockNotifierReason aMessage); 00093 }; 00094 00095 // direct client to akncapserver 00096 class RAknKeylock2 : public RAknKeyLock 00097 { 00098 public: 00099 IMPORT_C TInt Connect(); 00100 }; 00101 00102 #endif