mtpfws/mtpfw/common/inc/uiklafinternalcrkeys.h
branchRCL_3
changeset 17 dbd1c5e08735
parent 15 f85613f12947
child 18 453dfc402455
equal deleted inserted replaced
15:f85613f12947 17:dbd1c5e08735
     1 /*
       
     2 * Copyright (c) 2004-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:  Internal Central Repository keys.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __UIKLAF_INTERNAL_CR_KEYS_H__
       
    20 #define __UIKLAF_INTERNAL_CR_KEYS_H__
       
    21 
       
    22 const TUid KCRUidUiklaf = { 0x101F8774 };
       
    23 
       
    24 // Helper constants for free disk space levels.
       
    25 #define DISK_SPACE_OK        0
       
    26 #define DISK_SPACE_WARNING  -1
       
    27 #define DISK_SPACE_CRITICAL -2
       
    28 
       
    29 /**
       
    30  * Use KUikOODDiskFreeSpaceWarningNoteLevel instead of this!!
       
    31  * Threshold for disk space warning level (bytes).
       
    32  * Read-only key. Default value: 196608
       
    33  */
       
    34 const TUint32 KUikOODDiskWarningThreshold  = 0x00000001;
       
    35 
       
    36 /**
       
    37  * Threshold for disk space critical level (bytes).
       
    38  * Read-only key. Default value: 131072
       
    39  */
       
    40 const TUint32 KUikOODDiskCriticalThreshold = 0x00000002;
       
    41 
       
    42 /**
       
    43  * Threshold for low RAM level (bytes).
       
    44  * Read-only key. Default value: 750000
       
    45  */
       
    46 const TUint32 KUikOOMRamLowThreshold       = 0x00000003;
       
    47 
       
    48 /**
       
    49  * Threshold for good RAM level (bytes).
       
    50  * Read-only key. Default value: 1000000
       
    51  */
       
    52 const TUint32 KUikOOMRamGoodThreshold      = 0x00000004;
       
    53 
       
    54 /**
       
    55  * Timeout for application exit (milliseconds).
       
    56  * Read-only key. Default value: 1000000
       
    57  */
       
    58 const TUint32 KUikOOMMaxAppExitTime        = 0x00000005;
       
    59 
       
    60 /**
       
    61  * Threshold for disk space warning note level as percent of used disk space.
       
    62  * Read-only key. Default value: 95
       
    63  */
       
    64 const TUint32 KUikOODDiskFreeSpaceWarningNoteLevel = 0x00000006;
       
    65 
       
    66 /**
       
    67  * Threshold for disk space warning note level for mass memory.
       
    68  * Read-only key. Default value: 20971520
       
    69  */
       
    70 const TUint32 KUikOODDiskFreeSpaceWarningNoteLevelMassMemory = 0x00000007;
       
    71 
       
    72 #ifdef __MTP_NAVIENGINE_TEST
       
    73 //The free size of C-Drive of NaviEngine env is less than 21M,
       
    74 //it will block many ONB test cases
       
    75 const TInt KFreeSpaceThreshHoldDefaultValue(0);
       
    76 const TInt KFreeSpaceExtraReserved(0);
       
    77 
       
    78 #else
       
    79 //MTP should reserve some disk space to prevent OOD(Out of Disk) monitor 
       
    80 //popup 'Out of memory' note.When syncing music through ovi player,
       
    81 //sometimes device screen get freeze with this note
       
    82 //Be default, this value is read from Central Respository, if error while
       
    83 //reading, use this one
       
    84 const TInt KFreeSpaceThreshHoldDefaultValue(20*1024*1024);//20M bytes
       
    85 
       
    86 //Beside the OOD threshold value, we need to reserve extra disk space
       
    87 //for harvest server do the harvest, set this as 1M
       
    88 const TInt KFreeSpaceExtraReserved(1024*1024);//1M bytes
       
    89 
       
    90 #endif
       
    91 
       
    92 #endif __UIKLAF_INTERNAL_CR_KEYS_H__
       
    93 
       
    94 // End of file