uiservicetabsettings/inc/vimpstsettingsstoredefinitions.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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:  Common definitions for vimpstsettings store creation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __VIMPSTSETTINGSSTOREDEFINITIONS_H
       
    20 #define __VIMPSTSETTINGSSTOREDEFINITIONS_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 // Key-Value pairs
       
    27 enum TKeyValuePairs
       
    28 	{
       
    29 	EKeyValuePairBase = 256
       
    30 	};
       
    31 	
       
    32 // Masks for bitwise operations
       
    33 //
       
    34 //Mask for finding Key-value pairs
       
    35 //bits: 111111 1111111111 1111111100000000
       
    36 const TUint32 KSAPPairsMask = 0xFFFFFF00;
       
    37 
       
    38 //Mask for checking SAP existence
       
    39 const TUint32 KSAPExistsMask = 0xFFFFFFFF;
       
    40 
       
    41 //Mask for finding SAP Uids
       
    42 //bits: 1111111111111111 0000000000000000
       
    43 const TUint32 KSAPUidMask = 0xFFFF0000;
       
    44 
       
    45 // Offsets for bitwise operations
       
    46 const TUint32 KServiceIDOffset = 16; //service id offset
       
    47 
       
    48 // field separator for flat key-valuepair structure
       
    49 _LIT( KKeyValuePairFieldSeparator, "||" );
       
    50 
       
    51 // Maximum length of TInt textual representation
       
    52 const TInt KTIntMaxLengthTextual = 10;
       
    53 
       
    54 #endif	// __VIMPSTSETTINGSSTOREDEFINITIONS_H
       
    55