persistentstorage/dbms/inc/D32Strings.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     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 // DBMS - Common strings
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __D32STRINGS_H__
       
    19 #define __D32STRINGS_H__
       
    20 
       
    21 #ifdef __D32STRINGS__
       
    22 	#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var = {sizeof(val) - 1, val}
       
    23 	#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var = {sizeof(L##val)/2 - 1, L##val}
       
    24 	#define CONST_TTEXT(var, val) extern const TText var = val
       
    25 #else
       
    26 	#define CONST_LIT8(var, val) extern const TLitC8<sizeof(val)> var
       
    27 	#define CONST_LIT16(var, val) extern const TLitC16<sizeof(L##val)/2> var
       
    28 	#define CONST_TTEXT(var, val) extern const TText var
       
    29 #endif
       
    30 
       
    31 #ifdef _UNICODE
       
    32 	#define CONST_LIT(var, val) CONST_LIT16(var, val)
       
    33 #else
       
    34 	#define CONST_LIT(var, val) CONST_LIT8(var, val)
       
    35 #endif
       
    36 
       
    37 CONST_LIT(KSecure,			"SECURE");
       
    38 CONST_LIT(KDbsPrefix,		"DBS");
       
    39 CONST_LIT(KSecurityPolicyDir,"POLICY\\");
       
    40 CONST_LIT(KPolicyFileExtMask,"*.SPD");
       
    41 
       
    42 #endif//__D32STRINGS_H__
       
    43 
       
    44