|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef MTPCOMMONCONST_H |
|
22 #define MTPCOMMONCONST_H |
|
23 |
|
24 #ifdef __SERIES60_ |
|
25 #include <uiklafinternalcrkeys.h> |
|
26 #else |
|
27 //Following is copied from 'UiklafInternalCRKeys.h', which is |
|
28 //exported from S60 sdk, in Symbian CBR, this file does not exist. |
|
29 const TUid KCRUidUiklaf = { 0x101F8774 }; |
|
30 const TUint32 KUikOODDiskFreeSpaceWarningNoteLevel = 0x00000006; |
|
31 const TUint32 KUikOODDiskFreeSpaceWarningNoteLevelMassMemory = 0x00000007; |
|
32 #endif |
|
33 |
|
34 #ifdef __MTP_NAVIENGINE_TEST |
|
35 //The free size of C-Drive of NaviEngine env is less than 21M, |
|
36 //it will block many ONB test cases |
|
37 const TInt KFreeSpaceThreshHoldDefaultValue(0); |
|
38 const TInt KFreeSpaceExtraReserved(0); |
|
39 |
|
40 #else |
|
41 //MTP should reserve some disk space to prevent OOD(Out of Disk) monitor |
|
42 //popup 'Out of memory' note.When syncing music through ovi player, |
|
43 //sometimes device screen get freeze with this note |
|
44 //Be default, this value is read from Central Respository, if error while |
|
45 //reading, use this one |
|
46 const TInt KFreeSpaceThreshHoldDefaultValue(20*1024*1024);//20M bytes |
|
47 |
|
48 //Beside the OOD threshold value, we need to reserve extra disk space |
|
49 //for harvest server,Thumbnail manager to store their data, set this as 7M |
|
50 const TInt KFreeSpaceExtraReserved(7*1024*1024);//7M bytes |
|
51 |
|
52 #endif |
|
53 #endif //MTPCOMMONCONST_H |