mtpfws/mtpfw/common/inc/uiklafinternalcrkeys.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 16:36:59 +0300
branchRCL_3
changeset 15 f85613f12947
parent 12 523717cdb0ad
permissions -rw-r--r--
Revision: 201020 Kit: 2010125

/*
* Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Internal Central Repository keys.
*
*/


#ifndef __UIKLAF_INTERNAL_CR_KEYS_H__
#define __UIKLAF_INTERNAL_CR_KEYS_H__

const TUid KCRUidUiklaf = { 0x101F8774 };

// Helper constants for free disk space levels.
#define DISK_SPACE_OK        0
#define DISK_SPACE_WARNING  -1
#define DISK_SPACE_CRITICAL -2

/**
 * Use KUikOODDiskFreeSpaceWarningNoteLevel instead of this!!
 * Threshold for disk space warning level (bytes).
 * Read-only key. Default value: 196608
 */
const TUint32 KUikOODDiskWarningThreshold  = 0x00000001;

/**
 * Threshold for disk space critical level (bytes).
 * Read-only key. Default value: 131072
 */
const TUint32 KUikOODDiskCriticalThreshold = 0x00000002;

/**
 * Threshold for low RAM level (bytes).
 * Read-only key. Default value: 750000
 */
const TUint32 KUikOOMRamLowThreshold       = 0x00000003;

/**
 * Threshold for good RAM level (bytes).
 * Read-only key. Default value: 1000000
 */
const TUint32 KUikOOMRamGoodThreshold      = 0x00000004;

/**
 * Timeout for application exit (milliseconds).
 * Read-only key. Default value: 1000000
 */
const TUint32 KUikOOMMaxAppExitTime        = 0x00000005;

/**
 * Threshold for disk space warning note level as percent of used disk space.
 * Read-only key. Default value: 95
 */
const TUint32 KUikOODDiskFreeSpaceWarningNoteLevel = 0x00000006;

/**
 * Threshold for disk space warning note level for mass memory.
 * Read-only key. Default value: 20971520
 */
const TUint32 KUikOODDiskFreeSpaceWarningNoteLevelMassMemory = 0x00000007;

#ifdef __MTP_NAVIENGINE_TEST
//The free size of C-Drive of NaviEngine env is less than 21M,
//it will block many ONB test cases
const TInt KFreeSpaceThreshHoldDefaultValue(0);
const TInt KFreeSpaceExtraReserved(0);

#else
//MTP should reserve some disk space to prevent OOD(Out of Disk) monitor 
//popup 'Out of memory' note.When syncing music through ovi player,
//sometimes device screen get freeze with this note
//Be default, this value is read from Central Respository, if error while
//reading, use this one
const TInt KFreeSpaceThreshHoldDefaultValue(20*1024*1024);//20M bytes

//Beside the OOD threshold value, we need to reserve extra disk space
//for harvest server do the harvest, set this as 1M
const TInt KFreeSpaceExtraReserved(1024*1024);//1M bytes

#endif

#endif __UIKLAF_INTERNAL_CR_KEYS_H__

// End of file