coreapplicationuis/SysAp/Src/sysapdefaultkeyhandler.cpp
changeset 77 b01c07dfcf84
parent 74 1505405bc645
equal deleted inserted replaced
74:1505405bc645 77:b01c07dfcf84
     1 /*
     1 /*
     2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    39 #include "sysapcallback.h"
    39 #include "sysapcallback.h"
    40 #include "SysAp.hrh"
    40 #include "SysAp.hrh"
    41 #include <AknSgcc.h>
    41 #include <AknSgcc.h>
    42 //#include "sysapappui.h"
    42 //#include "sysapappui.h"
    43 #include <w32std.h>
    43 #include <w32std.h>
       
    44 #include <avkondomainpskeys.h>
    44 
    45 
    45 
    46 
    46 const TInt KModifierMask( 0 );
    47 const TInt KModifierMask( 0 );
    47 
    48 
    48 // ======== MEMBER FUNCTIONS ========
    49 // ======== MEMBER FUNCTIONS ========
   286 TBool CSysApDefaultKeyHandler::IsDeviceLocked() const    
   287 TBool CSysApDefaultKeyHandler::IsDeviceLocked() const    
   287     {
   288     {
   288     TInt value(0);
   289     TInt value(0);
   289     TBool retval(EFalse);
   290     TBool retval(EFalse);
   290 
   291 
   291     RProperty::Get( KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, value );
   292     RProperty::Get(  KPSUidAvkonDomain, KAknKeyguardStatus, value );
   292     if ( value > EAutolockOff )
   293     if ( value > EKeyguardNotActive )
   293         {
   294         {
   294         retval = ETrue;
   295         retval = ETrue;
   295         }
   296         }
   296     
   297     
   297     TRACES( RDebug::Print( _L( "CSysApDefaultKeyHandler::IsDeviceLocked()=%d" ), retval ) );
   298     TRACES( RDebug::Print( _L( "CSysApDefaultKeyHandler::IsDeviceLocked()=%d" ), retval ) );