diff -r 000000000000 -r 08ec8eefde2f persistentstorage/dbms/inc/D32Strings.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/persistentstorage/dbms/inc/D32Strings.h Fri Jan 22 11:06:30 2010 +0200 @@ -0,0 +1,44 @@ +// Copyright (c) 2004-2009 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: +// DBMS - Common strings +// +// + +#ifndef __D32STRINGS_H__ +#define __D32STRINGS_H__ + +#ifdef __D32STRINGS__ + #define CONST_LIT8(var, val) extern const TLitC8 var = {sizeof(val) - 1, val} + #define CONST_LIT16(var, val) extern const TLitC16 var = {sizeof(L##val)/2 - 1, L##val} + #define CONST_TTEXT(var, val) extern const TText var = val +#else + #define CONST_LIT8(var, val) extern const TLitC8 var + #define CONST_LIT16(var, val) extern const TLitC16 var + #define CONST_TTEXT(var, val) extern const TText var +#endif + +#ifdef _UNICODE + #define CONST_LIT(var, val) CONST_LIT16(var, val) +#else + #define CONST_LIT(var, val) CONST_LIT8(var, val) +#endif + +CONST_LIT(KSecure, "SECURE"); +CONST_LIT(KDbsPrefix, "DBS"); +CONST_LIT(KSecurityPolicyDir,"POLICY\\"); +CONST_LIT(KPolicyFileExtMask,"*.SPD"); + +#endif//__D32STRINGS_H__ + +