securitydialogs/Autolock/src/lockapp.hrh
branchRCL_3
changeset 21 09b1ac925e3f
equal deleted inserted replaced
20:63339781d179 21:09b1ac925e3f
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  General application spesific enumeration values
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __LOCKAPP_HRH__
       
    20 #define __LOCKAPP_HRH__
       
    21 
       
    22 /**
       
    23  *  LockApp panic codes
       
    24  *
       
    25  *  @lib    lockapp
       
    26  *  @since  5.0
       
    27  *  @author Joona Petrell
       
    28  *  @author Tamas Koteles
       
    29  */
       
    30 enum TLockAppPanic
       
    31 	{
       
    32 	ELockPanicGeneral,
       
    33 	ELockPanicIllegalMessage,
       
    34 	ELockUnknownValue,
       
    35 	ELockIllegalState,
       
    36 	ELockPanicOutOfRange,
       
    37 	ELockPanicObserverAlreadyExists,
       
    38 	ELockPanicObserverNotFound,
       
    39 	};
       
    40 
       
    41 /**
       
    42  *  Three possible states of LockApp: unlocked, keyguard active, devicelock active
       
    43  *
       
    44  *  @lib    lockapp
       
    45  *  @since  5.0
       
    46  *  @author Joona Petrell
       
    47  *  @author Tamas Koteles
       
    48  */
       
    49 enum TLockStatus
       
    50 	{
       
    51 	ELockNotActive = 0,
       
    52 	EKeyguardActive,
       
    53 	EDevicelockActive
       
    54 	};
       
    55 
       
    56 /**
       
    57  *  Three possible reason for devicelock: manual, remote, timer
       
    58  *
       
    59  *  @lib    lockapp
       
    60  *  @since  5.0
       
    61  *  @author Joona Petrell
       
    62  *  @author Tamas Koteles
       
    63  */
       
    64 enum TDevicelockReason
       
    65 	{
       
    66 	EDevicelockManual = 1,
       
    67 	EDevicelockRemote,
       
    68 	EDevicelockTimer
       
    69 	};
       
    70 
       
    71 /**
       
    72  *  Bit-field representing screen saver status
       
    73  */
       
    74 const TUint KLockAppEnvScreenSaverOn = 1;
       
    75 
       
    76 /**
       
    77  *  Bit-field representing phonecall status
       
    78  */
       
    79 const TUint KLockAppEnvPhonecallOngoing = 2;
       
    80 
       
    81 /**
       
    82  *  Bit-field representing idle status
       
    83  */
       
    84 const TUint KLockAppEnvIdleOnForeground = 4;
       
    85 
       
    86 /**
       
    87  *  Bit-field representing grip status
       
    88  */
       
    89 const TUint KLockAppEnvGrip = 8;
       
    90 
       
    91 /**
       
    92  *  Bit-field representing FPS status
       
    93  */
       
    94 const TUint KLockAppEnvFPS = 0x10;
       
    95 
       
    96 #endif // __LOCKAPP_HRH__