diff -r 000000000000 -r 08ec8eefde2f persistentstorage/dbms/security/SC_Strings.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/persistentstorage/dbms/security/SC_Strings.h Fri Jan 22 11:06:30 2010 +0200 @@ -0,0 +1,55 @@ +// 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 Security - Common strings - used only in DbSpConv sources +// +// + +#ifndef __SC_STRINGS_H__ +#define __SC_STRINGS_H__ + +#include + +#ifdef __SC_STRINGS__ + #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(KCrLf, "\r\n"); +CONST_LIT(KDbStr, "[DATABASE]"); +CONST_LIT(KTblStr, "[TABLE]"); +CONST_LIT(KBackupStr, "[BACKUP]"); +CONST_LIT(KNameStr, "NAME"); +CONST_LIT(KEqStr, "="); +CONST_LIT(KSemiColonStr, ";"); + +CONST_LIT(KReadStr, "READ"); +CONST_LIT(KWriteStr, "WRITE"); +CONST_LIT(KSchemaStr, "SCHEMA"); + +CONST_LIT(KCapabilityStr, "CAPABILITY"); +CONST_LIT(KSIDStr, "SID"); +CONST_LIT(KVIDStr, "VID"); + +#endif//__SC_STRINGS_H__