phoneapp/phoneuiutils/inc/cphonestorage.h
branchRCL_3
changeset 6 38529f706030
parent 5 2a26698d78ba
child 7 544e34b3255a
equal deleted inserted replaced
5:2a26698d78ba 6:38529f706030
     1 /*
       
     2 * Copyright (c) 2008 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:  Storage of data
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONESTORAGE_H
       
    20 #define CPHONESTORAGE_H
       
    21 
       
    22 #include "mphonestorage.h"
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  Data storage.
       
    30  *
       
    31  *  @lib PhoneUIUtils.lib
       
    32  *  @since S60 v5.0
       
    33  */
       
    34 class CPhoneStorage : 
       
    35     public CBase, public MPhoneStorage
       
    36     {
       
    37 public:
       
    38 
       
    39     IMPORT_C static CPhoneStorage* NewL();
       
    40 
       
    41     IMPORT_C virtual ~CPhoneStorage();
       
    42     
       
    43     /**
       
    44      * AppendBlockedKeysListL.
       
    45      *
       
    46      * @since S60 v5.0
       
    47      */
       
    48     IMPORT_C void AppendBlockedKeysListL( TStdScanCode aScanCode );
       
    49     
       
    50     /**
       
    51      * GetBlockedKeyList.
       
    52      *
       
    53      * @since S60 v5.0
       
    54      */
       
    55     IMPORT_C const RArray<TInt>& GetBlockedKeyList() const;
       
    56 
       
    57     /**
       
    58      * ResetBlockedKeysList.
       
    59      *
       
    60      * @since S60 v5.0
       
    61      */
       
    62     IMPORT_C void ResetBlockedKeysList();
       
    63 
       
    64     /**
       
    65      * IsBlockedKeysListEmpty.
       
    66      */
       
    67     IMPORT_C TBool IsBlockedKeysListEmpty();
       
    68 
       
    69     /**
       
    70      * SetScreenLocked.
       
    71      */
       
    72     IMPORT_C void SetScreenLocked( TBool aLocked );
       
    73     
       
    74     /**
       
    75      * IsScreenLocked.
       
    76      */
       
    77     IMPORT_C TBool IsScreenLocked();
       
    78     
       
    79     /**
       
    80      * SetNeedToEnableKeylock.
       
    81      */
       
    82     IMPORT_C void SetNeedToEnableKeylock( TBool aNeedToEnableKeylock );
       
    83 
       
    84     /**
       
    85      * NeedToEnableKeylock.
       
    86      */
       
    87     IMPORT_C TBool NeedToEnableKeylock();
       
    88     
       
    89 private:
       
    90 
       
    91     CPhoneStorage();
       
    92     
       
    93     void ConstructL();
       
    94     
       
    95 private: // data
       
    96 
       
    97      // Blocked key list
       
    98      RArray<TInt> iBlockedKeysScanCode;
       
    99      
       
   100      // Is touch screen locked there is an incoming call
       
   101      TBool iIsScreenLocked;
       
   102      
       
   103      // ETrue, if keylock must enable when call ends
       
   104      TBool iNeedToEnableKeylock;
       
   105     };
       
   106 #endif // CPHONESTORAGE_H