os/persistentdata/persistentstorage/centralrepository/common/inc/srvdefs.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2004-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 #ifndef SRVDEFS_H
    17 #define SRVDEFS_H
    18 
    19 #include <e32def.h>
    20 
    21 const TUint32 KMetaBackup		= 0x01000000;
    22 const TUint32 KMetaRfsValue		= 0x02000000; // Restore Factory Settings
    23 const TUint32 KMetaDefaultValue = 0x80000000;
    24 #ifdef SYMBIAN_CENTREP_SUPPORT_MULTIROFS
    25 	const TUint32 KMetaType			= 0x30000000;
    26 	const TUint32 KMetaIndividual	= 0x40000000;
    27 	const TUint32 KMetaInternal		= 0x70000000;	
    28 #else
    29 	const TUint32 KMetaType			= 0x70000000;
    30 #endif	
    31 
    32 
    33 const TUint8 KPersistFormatVersion = 1 ;
    34 const TUint8 KPersistFormatSupportsDeletedSettings = 1 ;
    35 
    36 #ifdef SYMBIAN_CENTREP_SUPPORT_MULTIROFS
    37 	const TUint8 KPersistFormatSupportsIndMetaIndicator = 2 ;
    38 	//New internal error code to be mapped to the client panic code
    39 	//these error codes will never reach the client so will not be published
    40 	/**
    41 	@internalComponent
    42 	*/
    43 	const TInt KErrMultiRofsOldCreUsed= 			-30001;
    44 	const TInt KErrMultiRofsGlobalOverride=			-30002;
    45 	const TInt KErrMultiRofsTypeOverride=			-30003;
    46 	const TInt KErrMultiRofsIllegalRofs=			-30004;
    47 #endif
    48 namespace NCentralRepositoryResources
    49 {
    50     enum  TCentRepLocation
    51         {
    52         EPersists,
    53         EInstall,
    54         ERom
    55         };
    56     
    57     enum  TCentRepFileType
    58         {
    59         ECre,
    60         EIni,
    61         ETmp,
    62         EUnknown
    63         };
    64 }
    65 
    66 #endif // SRVDEFS_H